Skip to navigation

Slurm CLI reference

View as MarkdownOpen in Claude

Install the extension with python -m pip install "data-designer[slurm]", verify it with python -m pip show data-designer-slurm, then use data-designer slurm COMMAND --help for the authoritative option list.

All commands accept --profile-file PATH and --cluster NAME where cluster selection is required.

CommandPurpose
profile initCreate a restrictive starter profile catalog without overwriting.
profile validateValidate catalog selection, shared workspace access, and scheduler facts.
image addResolve an official versioned vLLM tag, or import/inspect a pinned OCI or SQSH image through a CPU Slurm job, then publish a verified alias.
image lsList aliases in the selected profile workspace.
image info NAMEShow one registered alias and immutable image facts.
image rm NAMERemove an alias and retain its SQSH artifact. Use --delete-artifact to also remove an unshared, package-owned OCI artifact.
execute RUN_FILEResolve and submit a run. Add --dry-run to render without submission.
status RUN_IDReconcile scheduler observations with durable managed state.
cancel RUN_IDCancel active jobs owned by a managed run.
retry RUN_OR_JOB_IDPreview or submit a sparse retry. Repeat --task-id to select shards.
merge RUN_IDSubmit a zero-GPU winner collection job for a managed run.
benchmark run BENCHMARK_FILEExpand benchmark cases into ordinary child runs and submit them.
benchmark analyze BENCHMARKWrite a report from persisted child state.

Common options

OptionCommandsMeaning
--output FORMATslurm group, before a subcommandUse human (default) or json for automation.
--follow-logs / --no-follow-logsimage addFollow bounded image-job logs by default in an interactive terminal; override either way.
--profile-file PATHMost commandsUse a catalog other than the default or environment-selected file.
--cluster NAMEMost commandsSelect one catalog entry explicitly.
--dry-runexecute, retryPerform resolution and render a batch script without submission.
--input-path PATHmergeSelect a managed run directory instead of passing RUN_ID.
--output-path PATHmergeSelect an authorized compute-visible collection directory instead of <workspace_root>/runs/<run-id>/merge-output.
--num-partitions NmergeWrite N Parquet files; defaults to 1 for a new collection.
--forceretry, benchmark runSkip retry confirmation or resume a safely recoverable benchmark submission. It does not overwrite immutable evidence.
--refresh-statebenchmark analyzeReconcile each child with the scheduler before analysis.
--fail-if-incompletebenchmark analyzePersist the report, then return a conflict if any case is incomplete.

Output and errors

Success is readable text on stdout by default; failure is readable text on stderr. For automation, use data-designer slurm --output json COMMAND or set DATA_DESIGNER_SLURM_OUTPUT=json. JSON mode keeps the existing canonical success value on stdout and error object on stderr:

{"error":{"code":"invalid_request","message":"...","operation":"execute_run"}}

Exit codes are 1 for internal errors, 2 for invalid requests, 3 for missing managed resources, 4 for conflicts, and 5 for unavailable external systems. Error messages are bounded and sanitized; inspect durable logs for operational detail.