Skip to main content

Coming from another GPU cloud

Run the job you already have on Lium. Every command here is the lium CLI. If you have not signed up yet, start with Your first hour.

What maps to what​

ElsewhereOn Lium
Instance, VMPod: a container on one node, with SSH.
Instance typeNode: one provider machine. lium ls --gpu H100 lists them.
Spot instanceThe spot tier (may be reclaimed). Each Spot node shows its provider's average Spot uptime. secure is dedicated.
Machine imageTemplate: a Docker image and its settings. See Templates.
Persistent diskVolume: mounted at /mnt, survives the pod. See Volumes.
Stopped instanceNo Stop. Delete the pod to end billing.
Auto-shutdownlium up --ttl 6h. See Scheduled termination.
API tokenAn API key.

A pod is charged per second, with no minimum, until you remove it. Charging begins once it turns RUNNING: on the node's default image (Fast deploy) from that moment, so setup is free; on any other image from the deploy request, starting time included. See When a pod is charged.

Steps​

1. Start a pod with your environment.

Use the default template and install your requirements:

lium up --gpu H100 --name job --ttl 6h -y --no-ssh
lium rsync job ./requirements.txt /workspace/
lium exec job "pip install -r /workspace/requirements.txt"

Or use your own image:

lium up --gpu H100 --name job --image <registry>/<image>:<tag> --ttl 6h -y --no-ssh

2. Move code and data in.

lium rsync job ./data /workspace/data

/workspace is the fast local disk and is gone when the pod is removed. /mnt is your Volume and survives the pod.

Never copy cloud credentials files to a pod.

3. Run the job.

Run it detached, with a log file on the pod:

lium exec job -d --log /workspace/train.log "cd /workspace && python train.py"
lium exec job "tail -n 50 /workspace/train.log"

4. Get results out.

lium scp job /workspace/out/model.pt ./ -d

For large results, push from the pod to your own storage or Hugging Face.

5. Check what it cost.

lium billing history

See Pod statements and Billing.

6. Remove the pod.

lium rm job -y
lium ps

Volumes outlive pods and are billed separately. Remove them with lium volumes rm when you are done.

Next​