Requirements
- The
kubectlCLI installed and configured. - Your cluster’s kubeconfig, downloaded with
tg clusters get-credentials. Only project admins can download it. - Access to your cluster’s
slurmnamespace.
Slinky v1.0 clusters
New Slurm clusters run Slinky v1.0. Clusters created or booked as scheduled capacity before September 2026 can still run Slinky v0.1, which ignores startup scripts. To move a v0.1 cluster to v1.0, contact your account team. To check your cluster’s Slinky version, runsinfo on the login node. On Slinky v1.0 clusters, it lists nodes named slinky-0, slinky-1, and so on, in a partition named slinky. Other Slurm clusters run Slinky v0.1.
To change slurm.conf on a Slinky v1.0 cluster, add your settings in Extra slurm.conf:
- On the cluster details page in the Together AI console, select Edit Configuration.
- Add your lines to Extra slurm.conf, and then select Save.
slurm.conf, so a setting you repeat overrides the default. The change takes effect through a live scontrol reconfigure, without a restart. To confirm it, run scontrol show config on the login node.
Don’t edit the slurm-config ConfigMap directly. The operator generates slurm.conf into it and overwrites any edit you make there.
Slinky v0.1 clusters
On Slinky v0.1 clusters, edit theslurm ConfigMap with kubectl, then restart the Slurm components to apply the change.
View the configuration
Theslurm ConfigMap in the slurm namespace holds your cluster’s Slurm configuration in four main files:
View a file’s current contents before you change it:
Edit the configuration
To edit the ConfigMap in place, open it in your default editor:Restart components
Whichever file you changed, restart the controller first:Verify changes
Confirm that the restart finished and the new configuration is live:Configuration examples
Putslurm.conf lines in Extra slurm.conf on Slinky v1.0 clusters, or in the slurm ConfigMap on Slinky v0.1 clusters.
Configure GPU resources
Thegres.conf file declares each node’s GPUs. If you edit it, keep the default type and device range, which match each node’s Gres=gpu:8 definition:
Modify partitions
Add a partition inslurm.conf:
Nodes=ALL includes every compute node. To limit a partition to specific nodes, set Nodes to the node names that sinfo lists.
Tune the scheduler
Adjust scheduler parameters inslurm.conf:
Update resource allocation
Slinky v1.0 clusters setDefMemPerNode=0, so a job that doesn’t set --mem has no default memory limit. To change that default, set a new DefMemPerNode value in megabytes:
DefMemPerCPU for this, because it’s mutually exclusive with DefMemPerNode.
Enable cgroup limits
Slinky v1.0 clusters already confine jobs with cgroups (ProctrackType=proctrack/cgroup and TaskPlugin=task/cgroup,task/affinity). On Slinky v0.1 clusters, edit cgroup.conf to choose which limits to enforce:
slurm.conf:
Troubleshooting
- Configuration not applied: On Slinky v1.0 clusters, check that
scontrol show configlists your setting. On Slinky v0.1 clusters, confirm the ConfigMap holds your edit withkubectl get configmap slurm -n slurm -o yaml, and check that the pod ages reset after the restart withkubectl get pods -n slurm. Then view the controller logs withkubectl logs slurm-controller-0 -n slurm. - Syntax errors: Search the controller logs for errors with
kubectl logs slurm-controller-0 -n slurm | grep -i error, and view recent events withkubectl get events -n slurm --sort-by='.lastTimestamp'. - Pods not restarting: Check the controller’s rollout status with
kubectl rollout status statefulset slurm-controller -n slurm, then delete the controller pod withkubectl delete pod slurm-controller-0 -n slurmto force Kubernetes to recreate it. - Jobs failing after changes: Check node status with
kubectl exec -it slurm-controller-0 -n slurm -- sinfo. Then, with the samekubectl execprefix, inspect a node withscontrol show node <NODE_NAME>and view job errors withscontrol show job <JOB_ID>.
Additional resources
- Slurm configuration tool: Interactive configuration generator.
- Slurm configuration reference: Complete parameter documentation.
- GRES configuration: GPU and resource configuration guide.
- Scheduling configuration: Scheduler tuning guide.