Skip to main content

GPU Workloads

GPU Workloads lets the members of a tenant run batch jobs on the GPUs of the Forge: training a model, running an inference over a dataset, a benchmark, anything that fits in a container and ends on its own.

You describe a workload on the GPU Portal: a container image, the command to run, a GPU type and count, and how long it may run. The platform queues it until your tenant has free GPUs, runs it, and keeps its logs and output files.

  • Getting started walks you through a first workload, from uploading a script to fetching its results.
  • Submitting a workload details every field of the form and the environment your container runs in.
  • Following a workload explains the statuses, the queue, the logs and what to do when a workload fails.
  • Storage explains the tenant storage mounted in every workload and how to transfer files to and from it.
note

This service is recent and still evolving. If something does not behave as described here, contact the Forge.

Key concepts​

ConceptDescription
WorkloadOne run of a container image with one or more GPUs. It runs until its command exits or its maximum duration is reached. A failed workload is not retried.
TenantEvery workload belongs to a tenant. The tenant's GPU provisioning decides which GPU types its members can use, and how many.
QuotaThe GPUs guaranteed to a tenant, per GPU type. Above it, a workload waits in a queue until GPUs free up.
Per-user capAn optional limit on the GPUs one member may use at the same time in a tenant. Workloads above it wait their turn instead of being rejected.
Tenant storageA shared directory, mounted at /data in every workload of the tenant, and reachable over sftp to upload inputs and fetch outputs.
Output directory/data/outputs/<workload-id>/, created for each workload before it starts.

Getting access​

GPU access is given per tenant, in two steps.

  1. Your tenant must be provisioned for GPUs by the Forge team: GPU types and quota, optional limits per workload and per user, the images it may run, and the size of its storage. This is not part of tenant.yml; contact the Forge to request it.
  2. You must have one of the GPU permissions on that tenant, granted in the groups of its tenant.yml:
PermissionWhat it allows
GPU_WORKLOAD_READSee all the workloads of the tenant and read their logs. The portal shows the tenant as "Read only".
GPU_WORKLOAD_MANAGEEverything above, plus submit, duplicate and cancel workloads — any workload of the tenant, not only yours — and access the tenant storage.
tenant.yml
groups:
- slug: gpu-users
permissions:
- GPU_WORKLOAD_MANAGE
members: [xavier.login]
- slug: gpu-viewers
permissions:
- GPU_WORKLOAD_READ
members: [jane.login]
Access takes up to an hour, then log out and back in

Members with GPU_WORKLOAD_MANAGE are added to the Unix group of the tenant (gpuwl-<tenant slug> on Forge ID), which owns its storage. This membership can take up to an hour to be taken into account. After that delay, log out of the GPU Portal and log back in: your workloads only get the group with a new session. Until then, your workloads cannot write to /data and the storage answers "permission denied".

Platform limits​

These limits apply to every tenant. Your tenant's provisioning can be stricter; the submit form always shows the limits that apply to you.

LimitValue
GPUs per workload1
Maximum duration72 hours (at least 1 minute)
CPU and memoryFixed per GPU, depending on the GPU type (see the form)
Shared memory (/dev/shm)25 % of the workload's memory by default
command and args64 items each, 16 KiB each in total
Environment variables64 variables, 32 KiB in total
Logs kept after the end90 days, up to 50 MB per workload (the end of the output is kept)
Output files in /dataKept, never deleted by the platform