In short.
Together AI's Slurm startup scripts guide helps administrators automate cluster setup and job hooks, but it requires Slinky v1.0 and worker hook updates need pod restarts. It documents six shell hooks and an additional configuration block, including failures that drain workers or requeue jobs. Clearing script fields does not remove installed scripts. Pricing, licensing and operational performance are not established by the page, and nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at https://docs.together.ai/docs/slurm-startup-scripts.md, including compatibility notices, all hook types, examples, configuration instructions, update and removal constraints, failure handling, troubleshooting, references and the hosting notice. Linked pages and the documentation index are excluded. Nothing was executed; runtime behavior, performance, pricing and licensing remain unverified or unknown where the page supplies no evidence.
The overview
Identity
This is Together AI documentation for configuring startup and job lifecycle scripts on its Slurm clusters [https://docs.together.ai/docs/slurm-startup-scripts.md]. Slurm schedules cluster jobs; workers execute them, the login node supports interactive SSH sessions, and the controller coordinates scheduling.
The resource is a feature guide containing examples and operating instructions. Its seven configuration fields comprise six shell scripts and one raw Slurm configuration block.
Assessment
The guide is useful for administrators who need repeatable package installation, per-job scratch storage, cleanup or centralized job logging. It provides concrete configuration steps and explains consequences that matter when operating a shared cluster.
Its main operational constraints are compatibility with Slinky v1.0, delayed activation of worker hook changes and limited removal options. The examples establish intended usage, but successful execution, reliability and scheduling overhead were not assessed.
Users
The primary audience is cluster administrators and infrastructure engineers managing Together Slurm environments. Teams running jobs that need local input data, shared tools or consistent cleanup may benefit from the documented hooks.
Beginners can use the guide to distinguish startup scripts from scripts that run for every job. Applying it requires shell scripting and cluster administration knowledge; it does not teach Slurm, Linux permissions or Kubernetes from the beginning.
Capabilities
Worker and login init scripts prepare their respective nodes at startup. Documented uses include installing packages and command-line tools, pulling container images and configuring interactive environments.
Worker prolog and epilog scripts prepare and clean up each allocation. Controller prolog and epilog scripts provide centralized logging, validation, notifications or downstream automation. Extra slurm.conf appends scheduler settings verbatim on all nodes, with examples covering array limits and scheduler parameters.
Using it
Requirements
Startup scripts require a Together Slurm cluster running Slinky v1.0. Each script can be up to 64 KB and must begin with one of four accepted interpreter lines: #!/bin/bash, #!/usr/bin/env bash, #!/bin/sh or #!/usr/bin/env sh. The raw Extra slurm.conf block does not require an interpreter line.
Configuration requires access to the cluster console or update API. The documented worker rollout procedure also requires Kubernetes access, while resuming a drained node is described as a project-admin operation. Worker prolog and epilog scripts run as root, making their ownership changes and cleanup commands consequential.
The examples use apt-get and pip, but the page does not provide a complete operating-system, package-manager or dependency compatibility matrix.
Mechanism
Init scripts run when worker or login nodes start. A prolog is a hook before a job, and an epilog is a hook after it. Worker hooks run on allocated workers; controller hooks run centrally at allocation and completion. The worker epilog runs after user processes have terminated.
The default PrologFlags=Contain setting implies Alloc, so the worker prolog runs at allocation. Adding a PrologFlags line through Extra slurm.conf replaces that default rather than extending it; the guide says to retain Contain, for example with PrologFlags=Alloc,Contain.
Workers fetch their prolog and epilog scripts through Slurm's configless mechanism at pod startup. Updating the underlying ConfigMaps therefore does not immediately change the hooks used by jobs on existing worker pods.
Setup
For a new cluster, open the GPU clusters console [https://api.together.ai/clusters], choose Create cluster, select Slurm orchestration and enable Startup Scripts under Cluster add-ons. Enter the required scripts and configuration, then complete cluster creation. Configured files can subsequently be inspected through read-only dialogs on the cluster details page.
For an existing cluster, use Edit Configuration and Save. API updates place scripts in cluster_config.slurm_startup_scripts and must also include cluster_config.load_balancer; the linked API reference is outside the supplied evidence.
Extra slurm.conf changes use a live reconfiguration that the page says does not interrupt running jobs. Worker hook updates require worker pod restarts; the documented approach is to drain workers, wait for jobs to finish and then restart their pods. Init changes apply at the next relevant worker or login pod startup.
Example
The worker prolog example creates /scratch/job_${SLURM_JOB_ID} and assigns ownership to SLURM_JOB_USER. The corresponding epilog removes that per-job directory. This illustrates preparing local scratch storage before work begins and reclaiming it afterward; neither script was executed.
The sample epilog also uses pkill -u "$SLURM_JOB_USER". Because this selects processes by user rather than job, it could affect other jobs belonging to the same user. That is an inference from the command, not an observed result, and deserves review before adapting the example to a shared cluster.
Assessment & evidence
Limitations
Clearing a prolog, epilog or init field in the console does not remove the script: the page says it continues running until the cluster is recreated. Clearing Extra slurm.conf in the console does remove those custom lines. The API ignores empty fields, so it cannot clear either scripts or the extra configuration.
A worker prolog failure drains the node and requeues batch jobs or cancels interactive jobs. A worker epilog failure also drains the node. A controller prolog failure requeues or cancels the job without affecting the node; a controller epilog failure is logged without further effect on the job or node.
The page does not separately explain controller-hook update timing, full init-failure recovery behavior or how the suggested environment-variable exports reach job processes. It warns that Slurm commands inside prolog or epilog scripts can cause deadlocks and degrade scheduler performance.
Reasoning
The event timing determines which hook fits a task. Installing a tool needed by every job belongs in worker initialization; creating a job-specific scratch directory belongs in a worker prolog; recording one central completion event belongs in a controller epilog. These placements follow the documented execution locations and timing.
The restart and failure rules make these hooks operational configuration changes. A short script can still drain a worker when it fails, while a saved correction may remain inactive on an existing worker pod. Suitability therefore depends on having a controlled rollout and recovery process.
Alternatives
For general hook behavior, the page links to the upstream Slurm prolog and epilog guide [https://slurm.schedmd.com/prolog_epilog.html]. It also links to Together's Slurm configuration guide [https://docs.together.ai/docs/slurm-configuration.md] for checking the cluster version. Neither linked page was assessed.
The supplied page does not compare competing cluster services or automation tools, so their relative capabilities, costs and suitability remain unknown.
Evidence
The evidence is the complete captured documentation page at [https://docs.together.ai/docs/slurm-startup-scripts.md]. It includes hook descriptions, shell examples, console instructions, update semantics, failure handling and troubleshooting.
These are documented claims and illustrative examples. No commands, API requests, cluster changes or jobs were executed, and no operational behavior or performance was independently verified. Linked documentation was excluded.
Access & freshness
Costs
The page provides no pricing for startup scripts, cluster capacity, storage or data transfer. Whether enabling Startup Scripts carries a separate charge is unknown.
Long scripts are documented to delay job scheduling, but the page supplies no timing measurements or cost estimates.
Rights
The captured page states no license or redistribution permission for its documentation or embedded shell examples. Rights to redistribute the page, package its examples or reuse them commercially are therefore unknown.
The footer identifies Mintlify as the documentation hosting platform; it does not establish licensing terms for this material.
Freshness
The page was captured on 15 November 2026 at 07:05:24 UTC. The supplied text contains no publication date, revision date or changelog.
Slinky v1.0 compatibility, script limits and update behavior are stated for this captured version. Subsequent documentation changes and current service behavior are unverified.
Actions
Confirm the cluster runs Slinky v1.0, choose the hook matching the task's timing and location, and review root-level commands before deployment. Keep scripts short, use job identifiers to scope resources and follow the guide's advice to use set -e in init scripts.
Validate intended behavior and failure handling on a nonproduction cluster before rollout. For worker hook updates, plan draining and pod restarts, then confirm the intended script is active. Review whether user-wide process termination is appropriate for concurrent jobs.
If a worker drains after a hook failure, the guide directs administrators to inspect sinfo -R and /var/log/slurm/slurmd.log, correct the script and resume the node with project-admin privileges. Account for script activation timing before resuming it, and establish pricing and reuse terms separately because this page does not provide them.
