
mcore-run-on-slurm
How to launch distributed Megatron-LM training jobs on a SLURM cluster
by nvidiaFree
Description
Run Megatron-LM on SLURM is an agent skill that explains how to launch distributed Megatron-LM training jobs on a SLURM cluster. It is aimed at engineers who have the model code and want to start multi-node training without working out the launch details from scratch. The skill covers a minimal sbatch script, the environment variables needed to start torch.distributed.run across the nodes of a job, and the constants that a launch depends on. For a text-only question about SLURM setup, the skill answers with those constants first and only then gives the full script, so the most important values are visible before the detail. It is written for the Megatron-LM project, so its examples assume that project's layout and launch conventions. It is published in the nvidia/skills repository on skills.sh and is listed as free.…
Highlights
- Minimal sbatch script for a training job
- Environment variables for torch.distributed.run
- Answer-first constants for quick setup questions
Ratings & Reviews
No ratings yet
Be the first to rate mcore-run-on-slurm.
People also visit

nemo-mbridge-multi-node-slurm
Convert single-node scripts to multi-node Slurm sbatch jobs

nemo-mbridge-mlm-bridge-training
Run Megatron-LM (MLM) and Megatron Bridge training with mock or real data

nemo-mbridge-perf-megatron-fsdp
Operational guide for enabling Megatron FSDP in Megatron-Bridge

nemo-automodel-distributed-training
Guide for selecting and configuring distributed training strategies in NeMo

nemo-automodel-launcher-config
Configure NeMo AutoModel job launches for interactive runs, Slurm clusters
mcore-run-on-slurm FAQ
What does this skill help with?
Launching distributed Megatron-LM training on a SLURM cluster, including a minimal batch script and the environment setup for torch.distributed.run.
How do I install it?
Run npx skills add https://github.com/nvidia/skills --skill mcore-run-on-slurm in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
How are answers ordered?
For text-only setup questions the skill gives its key constants first, then the full script if it is needed.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best mcore-run-on-slurm alternatives?
Popular alternatives to mcore-run-on-slurm include nemo-mbridge-multi-node-slurm, tao-run-on-slurm and nemo-mbridge-mlm-bridge-training. See all mcore-run-on-slurm alternatives


