Skip to main content

lium up

Rent a pod. With no node given, it picks the best match for your filters and asks once before renting.

Usage

lium up [NODE] [OPTIONS]

NODE is a node huid or id, or a row number from your last lium ls.

Flags

Pick a node​

FlagWhat it does
--gpu TYPEGPU type, e.g. H200
-c, --count NNumber of GPUs
--country CODEISO country code, e.g. US
--min-cpus NMinimum CPU threads
-p, --ports NMinimum number of free ports
-y, --yesRent without asking

Set up the pod​

FlagWhat it does
-n, --name NAMEPod name
-t, --template_id IDTemplate to use (see lium templates)
--image IMAGEDocker image to run instead of a template
--dockerfile PATHBuild the image on the node from a Dockerfile; files its COPY/ADD lines read are uploaded from the Dockerfile's folder. The build must finish within 20 minutes; on a timeout the error shows the last build lines
-e, --env KEY=VALUEEnvironment variable (repeatable)
--internal-ports LISTPorts to expose, e.g. 22,8000
--entrypoint CMDContainer entrypoint
--cmd CMDCommand that keeps the container running
--jupyterInstall Jupyter
--ssh-name NAMEName for a newly registered SSH key
--no-sshReturn when the pod is ready instead of opening SSH
--jsonPrint the ready pod as JSON (implies --no-ssh)

Storage​

FlagWhat it does
-v, --volume SPECAttach id:<HUID> or create new:name=<NAME>[,desc=<DESC>]
--volume-encryption / --no-volume-encryptionEncrypt the local volume (on by default)
--restore-backup IDRestore this backup after the pod starts
--restore-to PATHEmpty folder to restore into (use with --restore-backup)
--no-backupDo not back up the pod's volume (backups are on by default)

Stop automatically​

FlagWhat it does
--ttl DURATIONRemove the pod after this long, e.g. 6h
--until TIMERemove the pod at this local time, e.g. "tomorrow 09:00"
--budget USDRemove the pod once it has spent this much

Wait for the pod​

FlagWhat it does
--timeout SECONDSTime limit for the whole command (default 900)
--ready-timeout SECONDSTime limit for the pod to become ready
--verify-gpusCheck the GPU count with nvidia-smi inside the pod
--strict-gpusRemove the pod if its GPU count is wrong

A pod that is still starting when time runs out keeps starting. It is charged once it turns RUNNING, as billing describes. Remove it with lium rm.

Example

lium up --gpu H100 --count 8 --ttl 6h -y