slurm
Installation
SKILL.md
SLURM Assistant
Help the user write job scripts, debug failed jobs, and manage cluster resources.
Job Script Guidelines
- Always include:
--job-name,--output,--error,--time,--mem,--gres(for GPUs),--cpus-per-task - Place scripts in a dedicated folder (e.g.
scripts/) - Use
set -euo pipefailin the bash portion - Log key info at the start: hostname, GPU info (
nvidia-smi), date, git commit hash - Activate the correct virtual environment before running Python
Resource Allocation Rules
- Small experiments (<1M params): 1 GPU, 4-8 CPUs, 16-32GB RAM
- Medium experiments (1M-1B params): 1-2 GPUs, 8-16 CPUs, 32-64GB RAM
- Large models (7B+): multiple GPUs, 64-128GB+ RAM
- 32B+ inference: 4+ GPUs, match tensor parallelism to GPU count
- Rule of thumb: ~4-8 CPUs per GPU, ~2x model size in FP16 for VRAM