Supercomputer
Core Concepts

Jobs

Run a command or a script on a GPU with exec and run; /workspace persists.

What is a job?

A job is one command run on a GPU host. Two commands start one:

CommandWhat it does
super exec [--sku SKU] <cmd...>Run a command on a GPU host
super run <file|dir> [--sku SKU] [--script NAME] [-- args...]Upload a file or directory, then run it
super exec --sku gpu_1x_l4 nvidia-smi -L        # one-off command
super run train.py --sku gpu_1x_l4              # upload + run one file
super run . --script train.py -- --epochs 50    # upload a dir, pass args

Both wait in the foreground, print stdout/stderr, and exit with the remote return code. A command that outlives the wait budget (default 30s; set with --wait 10m) is not killed: exec detaches and prints a process id you can super logs/super wait on. Flags before -- belong to supercomputer; flags after it belong to your program.

/workspace persists

Every job runs from /workspace, which is where super run and super upload put your files. Relative writes land there and are saved when the job finishes, so results are downloadable afterwards:

super run train.py --sku gpu_1x_l4       # prints s-abc123 when it starts
super download s-abc123 model.pt         # works after the job has ended

The s-... id names the job's session: the persistent filesystem behind it, not a held GPU. The GPU is released when the command ends; the files are not. Target the same session again with --on <sid> (or a bare positional s-... argument) and the next command sees everything the last one left:

super exec --on s-abc123 pip install transformers   # brings the host online
super exec --on s-abc123 python train.py            # the install is still there
super stop s-abc123                                 # spend stops, files stay

Without --on, exec and run create a fresh session, do the work, and release it automatically.

What survives

/workspace survives stops, host changes, and days of inactivity, as of its last completed save. Saves run periodically while a session is up and once more when it stops; a host that dies without warning loses what changed since the last completed one. Changes outside it (e.g. pip install into the image's site-packages) survive an ordinary resume but are reset when the image spec changes. For packages that must survive unconditionally, install into a venv under the workspace, or put them in the image spec so every resume rebuilds from the content-addressed cache (see Projects & config).

Host loss

A host can be lost mid-run. When that happens, supercomputer by default restarts the job: /workspace is restored on a new host and your command re-runs; running processes are lost. --no-restart (SDK restart=False) turns automatic recovery off. --checkpoint (SDK checkpoint=True) is an experimental opt-in that first tries to live-migrate the running process. See Host loss.

Session lifecycle

A session moves between these states, reported by super sessions:

StateMeaning
hotRunning on a host and spending.
warmIdle but holding its host, still spending.
stoppingFinishing teardown.
coldStopped: no host and no compute charge. Resumes automatically when next used.
preparingComing online (allocating a host / restoring state). Free while waiting for a host; billed while the image builds.

A session is cold and costs nothing for compute until a command targets it. There is no explicit resume step, even hours or days later, even after the original host is long gone: the session is rebuilt on a fresh host with /workspace restored from cloud storage. super stop (or s.close() from the SDK) halts compute spend immediately. A session with no running process and no attached client also stops on its own after about five minutes; a process that is still running keeps it billing.

super sessions              # active sessions
super sessions --all        # include cold/closed
super history s-abc123      # lifecycle timeline for one session
super stop s-abc123 --wait  # stop, wait for teardown; exits 1 if the final file save failed

For creation retries, reuse the same idempotency_key for the same request. The SDK generates one per create unless you supply it. See session creation retries.

Background processes

Start long-running work without blocking, then follow it by process id:

super spawn --on s-abc123 python train.py --epochs=100   # prints proc-456
super logs s-abc123 proc-456 --follow
super wait s-abc123 proc-456        # blocks; exits with the process's exit code
super kill s-abc123 proc-456

The SDK mirrors this:

s = project.session(sku="gpu_1x_l4")
proc = s.spawn(["python", "train.py", "--epochs=100"])
proc.poll()        # check status
print(proc.output) # read output
proc.wait()        # block until done
s.close()

On this page