Workload Specs
Workloads are declared using a clean, Kubernetes-like specification. All fields except image are optional, with sensible system defaults applied.
Full Workload Specification
# ==============================================================================
# Job Identity & Metadata
# ==============================================================================
name: pytorch-train-run-1 # Optional unique name (per project)
namePrefix: train-run # Optional prefix (generates: <prefix>-<suffix>)
# If neither is set, auto-generates a human-friendly
# Notion-like name (e.g., 'tidal-star-1234')
# ==============================================================================
# Container Execution
# ==============================================================================
image: pytorch/pytorch:2.2.1-cuda12.1-cudnn8-runtime # Required container image URI
command: ["python3"] # Optional entrypoint override
args: # Optional command arguments
- "/mnt/r2/train.py"
- "--epochs"
- "50"
- "--batch-size"
- "128"
env: # Optional environment variables
TORCH_OMP_NUM_THREADS: "8"
PYTHONUNBUFFERED: "1"
timeout: "1h30m" # Optional: runtime bound as a Kubernetes-style duration string
# ('90s', '45m', '1h30m'; also accepted: timeoutSeconds: 5400);
# omitted = UNLIMITED — the task-manager enforces the bound from
# container start: SIGTERM, ~30s grace, then SIGKILL, and the job
# finishes 'failed' with the "Runtime timeout exceeded" marker
# ==============================================================================
# Storage Volumes (FUSE Mounts)
# ==============================================================================
volumes: # Map keyed by volume name (keys must be unique)
datasets: # Volume name — the map key
bucket: my-ml-datasets # Required: target cloud storage bucket
mountPath: /mnt/r2 # Required: container mount path
connection: my-cloudflare-r2 # Optional: defaults to first accessible connection
prefix: "models/checkpoints" # Optional: subpath prefix (defaults to bucket root)
# ==============================================================================
# Hardware Resources
# ==============================================================================
resources: # Optional: defaults to { cpu: 1, memory: 4Gi }
cpu: 8 # vCPU count (or fractional e.g. 0.5)
memory: 32Gi # Memory string (e.g. 512Mi, 4Gi, 64Gi)
storage: 100Gi # Optional: boot/root disk size (integer GiB or Mi/Gi quantity string; 10–16384 GiB)
gpu: 24Gi # Minimum aggregate GPU VRAM (shorthand for gpu: { vram: 24Gi })
# ==============================================================================
# Placement & Resilience Constraints
# ==============================================================================
cloud: ["aws", "gcp"] # Optional: restrict to specific providers ('aws', 'gcp', 'azure')
# (constraints apply in both routing modes — BYOC and Serverless)
region: "americas" # Optional: specific region, array, or macro-region
# ('americas', 'europe', 'apac', 'africa', 'middle-east')
maxRetries: 3 # Optional: container retries inside VM on failure
runAfter: "2026-11-25T02:00:00Z" # Optional: RFC 3339 datetime WITH timezone — hold the job
# in `queued` (no VM, no cost) until this instant, then provision
# normally. Past/now = start immediately. Naive datetimes (no offset)
# are rejected; immutable after submission; rejected inside cronjob
# job_definition (periodic chains belong to cron_spec or a workflow).
# ==============================================================================
# Organization & Filtering
# ==============================================================================
labels: # Optional: key-value labels for filtering & billing
environment: production
team: ml-engineering
tags: # Optional: searchable tags
- pytorch
- training
- v2
Submit the file with the CLI (or POST it to the Jobs API):
solti job run -f workload.yaml
Timeout
Every workload accepts an optional runtime bound — timeout, a Kubernetes-style duration string ("90s", "45m", "1h30m"):
image: pytorch/pytorch:2.2.1
timeout: "6h" # give up after six hours of wall-clock run time
args: ["train.py"]
- The clock starts at container start — time spent queued or booting the VM is never consumed.
- At expiry the container receives SIGTERM with a ~30 s grace period, then SIGKILL. The job finishes
failedwith the explicit "Runtime timeout exceeded" marker in its status/error and logs; the VM is torn down and cost accounting proceeds exactly like any failure. - Omitted = unlimited — this is an explicit spec decision: a job without a
timeoutruns until it exits or is cancelled (so a hung job keeps burning VM cost; set a bound on long-running or unattended work). - The raw-seconds spelling
timeoutSeconds: 5400is also accepted;timeoutandtimeoutSecondsare mutually exclusive. - Cronjobs accept
timeoutinside theirjob_definition— every spawn inherits it.
Job Naming Strategy
Solti guarantees that every job has a unique, URL-safe name within its project workspace:
- Explicit Name (
name) — if supplied, must be unique within the project. Duplicate names return a409 Conflict. - Prefix-Generated Name (
namePrefix) — ifnamePrefixis supplied (e.g.train-run), Solti appends a random alphanumeric suffix (e.g.train-run-x7k9). - Automatic Notion-like Name — if neither
namenornamePrefixis provided, Solti automatically generates a memorable two-word identifier (e.g.tidal-star-1234,sunny-moon-5678).