launch-with-slurm

Official

Launch jobs on SLURM clusters from AI tooling.

Authormlc-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Dispatching work inside a SLURM allocation using srun to efficiently utilize reserved compute on single-node or multi-node clusters.

Core Features & Use Cases

  • Context-aware dispatch: prefer srun over raw torchrun or bash when $SLURM_JOB_ID is set to preserve environment and IO behavior across ranks.
  • Allocation reading: read AllocTRES and NodeList via scontrol to tailor commands to the allocation.
  • Logging and robustness: use -o with --open-mode to capture distributed logs and support resumed runs.
  • Use Case: launching a training job or validation step inside an existing SLURM allocation, possibly across multiple nodes.

Quick Start

Invoke srun with the appropriate flags inside the current SLURM allocation to start your job.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: launch-with-slurm
Download link: https://github.com/mlc-ai/pith-train/archive/main.zip#launch-with-slurm

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.