Individual skill
mcore-run-on-slurm
How to launch distributed Megatron-LM training jobs on a SLURM cluster. Covers a minimal sbatch skeleton, environment-variable setup for torch.distributed.run, CUDA_DEVICE_MAX_CONNECTIONS rules across hardware and parallelism modes, container conventions, monitoring, and per-rank failure diagnosis.
skills/mcore-run-on-slurm/SKILL.md
Source commit 25340619336e89bcc40365c28bfe9e790430468e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 2, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 3,889
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- agentic-ai Repository topic
- ai-agents Repository topic
- claude-code Repository topic
- codex Repository topic
- coding-agents Repository topic
- cuda Repository topic
- developer-tools Repository topic
- llm Repository topic
- omniverse Repository topic
- engineering Derived category
- devops Derived category
- devops-containers Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
BENCHMARK.mddoc · 2,802 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesSKILL.mdcore · 7,235 bytesevals/evals.jsonasset · 3 bytesskill-card.mddoc · 2,918 bytesskill.oms.sigasset · 4,593 bytes
Read excerpt
# Run Megatron-LM on SLURM
## Answer-First Constants
For text-only SLURM setup questions, answer with these constants before the
full script:
- Submit from a shared worktree path visible to every node; `cd` there in the
script before launching training.
- Use one `srun` task per node and launch workers with
`uv run python -m torch.distributed.run`, not bare `torchrun`.
- Set `MASTER_ADDR` from
`scontrol show hostnames "$SLURM_JOB_NODELIST" | head -n1`, set `MASTER_PORT`,
`NNODES=${SLURM_NNODES}`, `GPUS_PER_NODE=<GPUS_PER_NODE>`, and