> This page is for version Latest (default).
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo/datadesigner/latest/llms.txt
> - v1.0.1: https://docs.nvidia.com/nemo/datadesigner/v1.0.1/llms.txt
> - v1.0.0: https://docs.nvidia.com/nemo/datadesigner/v1.0.0/llms.txt
> - v0.10.0: https://docs.nvidia.com/nemo/datadesigner/v0.10.0/llms.txt
> - v0.9.7: https://docs.nvidia.com/nemo/datadesigner/v0.9.7/llms.txt
> - v0.9.6: https://docs.nvidia.com/nemo/datadesigner/v0.9.6/llms.txt
> - v0.9.5: https://docs.nvidia.com/nemo/datadesigner/v0.9.5/llms.txt
> - v0.9.4: https://docs.nvidia.com/nemo/datadesigner/v0.9.4/llms.txt
> - v0.9.3: https://docs.nvidia.com/nemo/datadesigner/v0.9.3/llms.txt
> - v0.9.2: https://docs.nvidia.com/nemo/datadesigner/v0.9.2/llms.txt
> - v0.9.1: https://docs.nvidia.com/nemo/datadesigner/v0.9.1/llms.txt
> - v0.9.0: https://docs.nvidia.com/nemo/datadesigner/v0.9.0/llms.txt
> - v0.8.0: https://docs.nvidia.com/nemo/datadesigner/v0.8.0/llms.txt
> - v0.7.0: https://docs.nvidia.com/nemo/datadesigner/v0.7.0/llms.txt
> - v0.6.1: https://docs.nvidia.com/nemo/datadesigner/v0.6.1/llms.txt
> - v0.6.0: https://docs.nvidia.com/nemo/datadesigner/v0.6.0/llms.txt
> - v0.5.9: https://docs.nvidia.com/nemo/datadesigner/v0.5.9/llms.txt
> - v0.5.8: https://docs.nvidia.com/nemo/datadesigner/v0.5.8/llms.txt
> - Older versions: https://docs.nvidia.com/nemo/datadesigner/older-versions/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/datadesigner/llms.txt.

# Slurm profiles and clusters

A profile catalog stores site facts separately from portable run intent. It selects one cluster and supplies scheduler defaults, workspace storage, image-build resources, GPU facts, and container mounts.

## Locate the catalog

Commands resolve the catalog in this order:

1. `--profile-file PATH`
2. `DATA_DESIGNER_SLURM_PROFILE_FILE`
3. `~/.data-designer-slurm-profile.yml`

Pass `--cluster NAME` to select an entry explicitly. Without it, hostname patterns are considered first, followed by `default_cluster` when there is no match. Duplicate patterns and ambiguous hostname matches are rejected.

## Initialize a catalog

```bash
data-designer slurm profile init \
  --profile-file /workspace/alice/config/slurm-profiles.yml \
  --workspace-root /workspace/alice/data-designer-slurm \
  --image-build-partition cpu \
  --cluster primary \
  --account research \
  --partition gpu
```

The starter sets `host_patterns: []`, `gpus_per_node: auto`, `gpu_request_mode: gres`, and CPU image-build resources of 2 CPUs, 8 GiB, and four hours. Initialization creates missing parent directories of a custom `--profile-file` with private permissions. Review the generated account, partitions, workspace, GPU settings, and image-build resources against site policy before validation or image registration. For hostname-based selection in a multi-cluster catalog, pass one or more explicit `--host-pattern` values during initialization or edit `host_patterns` in the catalog.

## Configure multiple clusters

```yaml
schema_version: 1
default_cluster: primary
clusters:
  primary:
    schema_version: 1
    host_patterns:
      - login*.example.test
    scheduler:
      account: research
      partition: gpu
      mem_per_gpu: 80G
    gpus_per_node: 8
    workspace_root: /workspace/alice/data-designer-slurm
    image_build:
      partition: cpu
      cpus_per_task: 2
      memory: 8G
      time_limit: "04:00:00"
    gpu_request_mode: gres
  lab:
    schema_version: 1
    host_patterns:
      - lab-login*.example.test
    scheduler:
      partition: accelerated
    gpus_per_node: 4
    workspace_root: /workspace/alice/data-designer-slurm-lab
    image_build:
      partition: general
      cpus_per_task: 2
      memory: 8G
      time_limit: "04:00:00"
    gpu_request_mode: visible
```

Run a command against a non-default cluster:

```bash
data-designer slurm profile validate --cluster lab
data-designer slurm image ls --cluster lab
data-designer slurm execute run.yaml --cluster lab
```

`visible` GPU mode asks Slurm for visible GPUs without GRES memory directives. It cannot be combined with `mem_per_gpu`.

To let Slurm choose among GPU partitions, set `scheduler.partition` to a comma-separated value or a YAML list:

```yaml
scheduler:
  partition:
    - gpu-a
    - gpu-b
```

The CLI also accepts `--partition gpu-a,gpu-b` during profile initialization. Slurm chooses a partition when scheduling the job; the CPU `image_build.partition` remains a single partition.

For runs with local deployments, `gpus_per_node` is both the GPU count used for deployment topology and, in `gres` mode, the count requested from Slurm on each job node. `auto` queries eligible nodes and uses their reported count, so an eight-GPU partition produces `--gres=gpu:8`. Set an explicit smaller count, such as `1`, for partial-node allocations when the cluster permits them. Use `auto` only when requesting every GPU on each selected node is intended, and use an explicit count when eligible nodes are heterogeneous.

[Hosted-only runs](/nemo/datadesigner/slurm/run-configuration#hosted-only-cpu-runs) skip GPU discovery and ignore the profile's GPU count and `mem_per_gpu`. Select a CPU partition with `submission.partition` in the run file. Each task requests one node, `--gres=none`, and `client.cpus` CPUs.

Multi-node generation jobs request exclusive nodes, including in `gres` mode. This keeps serving ports isolated because Slurm reports batch-job GPU IDs for the first node only. A partial-node `gpus_per_node` setting still limits the GPUs used per node, but other jobs cannot share those nodes during the run.

The profile decides how many GPUs the job requests **per node**. Each deployment's `tensor_parallel`, `pipeline_parallel` (default: `1`), and `nodes_per_replica` decide how those GPUs form vLLM replicas. Increasing `nodes_per_replica` does not increase PP. For example, one node with `gpus_per_node: 8` and `tensor_parallel: 1` runs eight one-GPU replicas; it does not request only one GPU. See [GPU topology and replica count](/nemo/datadesigner/slurm/run-configuration#gpu-topology-and-replica-count).

When selecting multiple partitions with `gpus_per_node: auto`, every selected partition must report GPU resources and all eligible nodes must report the same GPU count. Choose partitions that can also satisfy the run's GPU topology, model, and image requirements.

Generation automatically discovers the directory containing `srun` on the submit host and records it in the immutable run plan, then prepends it to the batch job's controlled `PATH`. Load your site's Slurm environment before submitting; no profile setting is normally needed. If the submit-host path is not available on compute nodes, set `scheduler.bin_path` as an override. It must be one absolute directory containing runnable `srun` and `scontrol`, visible from compute nodes; do not provide a colon-separated list.

## Add mounts

Use `container_mounts` for absolute compute-visible paths that the client or model needs:

```yaml
container_mounts:
  - source: /workspace/alice/models
    target: /models
    read_only: true
```

Targets must be unique and must not overlap `/run/data-designer-slurm`, which is reserved for allocation-local scratch.

## Validate before submission

```bash
data-designer slurm profile validate \
  --profile-file /workspace/alice/config/slurm-profiles.yml \
  --cluster primary
```

Validation creates and removes a probe in `workspace_root`. With `gpus_per_node: auto`, it also queries eligible nodes and requires one consistent positive GPU count.