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:
--profile-file PATHDATA_DESIGNER_SLURM_PROFILE_FILE~/.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
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
Run a command against a non-default cluster:
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:
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 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.
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:
Targets must be unique and must not overlap /run/data-designer-slurm, which is reserved for allocation-local scratch.
Validate before submission
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.