Submitting a workload
Workloads are submitted from the
Submit Workload page of the GPU
Portal. It requires GPU_WORKLOAD_MANAGE on the tenant. This page details each
field of the form and the environment your container runs in.
The form
Target
| Field | Description |
|---|---|
| Tenant | The tenant the workload belongs to. Only the tenants where you can submit are listed. |
| Display name | Optional, up to 100 characters. Shown in the list instead of the workload's short ID. |
Image
The image must be a fully qualified reference: registry host, path, and tag
or digest, e.g. docker.io/library/ubuntu:24.04. Short forms such as
ubuntu:24.04 are rejected.
An image is accepted if it matches your tenant's allowed image pattern, set by the Forge team in the tenant's GPU provisioning. The form shows this pattern and tells you whether the image you typed matches it. A tenant without a pattern cannot run its own images. If the Forge provides ready-to-use images, they are listed as buttons under the field and are allowed for every tenant.
Every workload runs as your own Unix user, non-root, with your Unix groups
(see Runtime environment). Images that expect to run as
root or as a specific user, or that write to their own directories at startup,
may not start as-is. Write to /data or /tmp instead.
Command
Command and Arguments work like command and args in Kubernetes:
| Field | Replaces the image's | Example |
|---|---|---|
| Command | ENTRYPOINT | python |
| Arguments | CMD | /data/scripts/train.py, --epochs, 20 |
Leave both empty to run the image's own ENTRYPOINT and CMD. The form shows
the resulting command line under Runs as.
Each item is passed as-is, without a shell: no pipes, no &&, no $VAR
expansion, no ~. To use shell features, run a shell explicitly:
| Command | Arguments |
|---|---|
bash | -c |
cd /data/scripts && python train.py > $GPUWL_OUTPUT_DIR/train.log |
Use sh instead of bash if the image has no bash. Paste command as JSON
fills both fields from a JSON array, e.g.
["python", "/data/scripts/train.py", "--epochs", "20"].
Resources
| Field | Description |
|---|---|
| GPU type | The GPU types your tenant may use. |
| GPU count | Limited by the platform, by your tenant (per workload) and by your per-user cap. The form shows the maximum and how many GPUs you already use. |
| Max duration | At least 1 minute, at most 72 hours. When it is reached, the workload is stopped and ends in Failed. |
| CPU, Memory | Set by the platform, per GPU of the chosen type: you cannot change them. They are guaranteed, and also the limit: a process above the memory limit is killed. |
| Shared memory | Size of /dev/shm, e.g. 16Gi. By default 25 % of the memory. It counts against the memory of the workload, so it must stay below it. |
PyTorch DataLoaders with num_workers > 0 exchange batches through
/dev/shm. If they crash with a "bus error" or a shared memory error, increase
Shared memory.
A workload above your tenant's free quota or above your per-user cap is not rejected: it waits in the queue. See The queue.
Environment
Up to 64 variables, with literal values only. They are stored and shown in plain text to everyone who can see the workload: do not put secrets in them.
Names starting with GPUWL_, NVIDIA_ or KUBERNETES_, and
CUDA_VISIBLE_DEVICES, are reserved by the platform and rejected.
Advanced
| Field | Description |
|---|---|
| Working directory | Absolute path the command starts in. Defaults to /data. |
Summary and request preview
The Summary recaps the workload before you submit it, including how many GPUs you will use against your cap and whether the workload will be held. The Request Preview shows the JSON body sent to the API, which you can copy.
If the platform rejects the workload, the form shows the field at fault and the
reason, e.g. the image is not allowed for this tenant.
Runtime environment
What your container gets, whatever the image:
| Item | Value |
|---|---|
| User | Your Unix UID and primary GID, never root. The privileges of the container cannot be raised (no sudo, no capabilities). |
| Groups | All your Unix groups, including the group of the tenant (gpuwl-<tenant slug>), which owns the tenant storage. |
/data | The tenant storage, shared by all the workloads of the tenant. |
| Output directory | /data/outputs/<workload-id>/, created before your command starts. |
/dev/shm | In-memory, of the size set in Shared memory. |
| GPUs | The requested GPUs only, on a node of the chosen type. |
| Working directory | /data, unless set otherwise. |
The platform also sets these environment variables:
| Variable | Value |
|---|---|
GPUWL_ID | ID of the workload |
GPUWL_TENANT | Slug of the tenant |
GPUWL_DATA_DIR | /data |
GPUWL_OUTPUT_DIR | /data/outputs/<workload-id> |
Anything written outside /data is lost when the workload ends. Write results,
checkpoints and anything you want to keep under $GPUWL_OUTPUT_DIR or elsewhere
in /data.
Duplicating a workload
The Duplicate Workload button of a workload's page opens the form filled with its spec. This is the way to run a workload again, since a failed workload is never retried automatically.
Using the API
The portal is a client of the repo-gpu-workload API, at
https://repo-gpu-workload.api.forge.epita.fr:
| Endpoint | Purpose |
|---|---|
GET /api/gpu-tenants | Platform limits, and your tenants with their GPU provisioning and your usage |
GET /api/gpu-workloads | List the workloads of your tenants, newest first: tenantSlug, status (repeatable), submitterLogin, pageNum, pageSize (30 by default, 100 at most) |
POST /api/gpu-workloads | Submit a workload (the body is the Request Preview of the form) |
GET /api/gpu-workloads/{id} | Read a workload |
GET /api/gpu-workloads/{id}/logs | Its output as plain text: tail lines (500 by default, 5000 at most), download=true for the whole archive of an ended workload |
POST /api/gpu-workloads/{id}/cancel | Cancel a workload |
Calls are authenticated with a Forge ID token. To
submit, the token must also carry your Unix identity (uid, gid and the
groups claim with their GIDs), as the portal's does: a submit without it is
rejected with 403.