slurm
Help write, debug, and manage SLURM jobs. Use when the user asks about sbatch, salloc, squeue, job scripts, or cluster resource allocation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Help write, debug, and manage SLURM jobs. Use when the user asks about sbatch, salloc, squeue, job scripts, or cluster resource allocation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Apply Michael's academic writing style when drafting or editing text. Use when writing LaTeX prose, paper sections, abstracts, or any academic text for Michael.
Review code for bugs, style issues, and correctness. Use when the user asks for a code review, review, or CR.
Help write, debug, or improve bash/shell scripts. Use when the user asks for help with shell scripting, bash, or sh.
Help scaffold, configure, and launch ML experiments. Use when the user wants to set up a new experiment, training run, or evaluation.
Help with git operations — branching, rebasing, cherry-picking, history inspection, and conflict resolution. Use when the user asks for git help beyond simple commits.
Help with LaTeX writing, formatting, and debugging. Use when the user asks about LaTeX, papers, equations, TikZ, Beamer, or BibTeX.
| name | slurm |
| description | Help write, debug, and manage SLURM jobs. Use when the user asks about sbatch, salloc, squeue, job scripts, or cluster resource allocation. |
Help the user write job scripts, debug failed jobs, and manage cluster resources.
--job-name, --output, --error, --time, --mem, --gres (for GPUs), --cpus-per-taskscripts/)set -euo pipefail in the bash portionnvidia-smi), date, git commit hash--gres=gpu:<type>:N)You can also request GPUs by memory, architecture, or feature:
--gres=gpu:48gb:1 (any 48GB GPU: RTX8000, A6000, L40S)--gres=gpu:ampere:1 (A100, A6000, L40S)--gres=gpu:nvlink:1--gres=gpu:dgx:112gb, 32gb, 40gb, 48gb, 80gbvolta, turing, ampere| Nodes | Count | GPUs | CPUs | RAM |
|---|---|---|---|---|
| cn-l[001-091] | 91 | 4x L40S (48GB) | 48 | 1024GB |
| cn-c[001-040] | 40 | 8x RTX8000 (48GB) | 64 | 384GB |
| cn-g[001-029] | 29 | 4x A100 (80GB) | 64 | 1024GB |
| cn-a[001-011] | 11 | 8x RTX8000 (48GB) | 40 | 384GB |
| cn-b[001-005] | 5 | 8x V100 (32GB) | 40 | 384GB |
| cn-k[001-004] | 4 | 4x A100 (40GB) | 48 | 512GB |
| cn-n[001-002] | 2 | 8x H100 (80GB) | 192 | 2048GB |
| cn-d[001-004] (DGX) | 4 | 8x A100 (40/80GB) | 128 | 1024-2048GB |
| cn-j001 | 1 | 8x A6000 (48GB) | 64 | 1024GB |
GPUs per node is either 4 or 8 — don't request more than the node type has.
| Partition | Time Limit | Per-User Limits |
|---|---|---|
long (default) | 7 days | No per-user GPU cap |
main | 5 days | 2 GPUs, 8 CPUs, 48GB |
short | 3 hours | 4 GPUs, 1TB mem |
unkillable | 2 days | 1 GPU, 6 CPUs, 32GB |
Preemption hierarchy: unkillable > main > long. Once preempted, jobs are killed and auto-requeued. main jobs do NOT preempt other main jobs. -grace variants give a SIGTERM grace period before kill. Checkpoint frequently on long partition.
| Path | Quota | Key Policy |
|---|---|---|
$HOME | 100GB / 1M files | Daily backup, low I/O — don't write logs here |
$SCRATCH | 5TB / unlimited | Files unused >90 days deleted |
$SLURM_TMPDIR | No quota | Fastest I/O, cleared after job |
/network/projects/<group>/ | 1TB / 1M files | Shared project storage |
$ARCHIVE | 5TB | No backup, not on GPU nodes |
Always copy data to $SLURM_TMPDIR at job start for performance. Write logs/outputs to $SCRATCH, not $HOME. Check usage with disk-quota.
module load python/3.10 — required before creating venvs on clustermodule load miniconda/3 — for conda environmentsmodule avail / module spider <term> — search available modulesCONDA_OVERRIDE_CUDA=11.8 before conda commands.err files first — experiment logs go to stderrsacct -j <jobid> --format=JobID,State,ExitCode,MaxRSS,Elapsed,NodeList for completed jobs--mem was sufficienttorch.autograd.set_detect_anomaly(True) causes extreme filesystem IOPS — never leave on in batch jobs, admins will flag itdisk-quota — check storage usagesqueue -u $USER — your active jobsecho $SLURM_JOB_GPUS — which GPU(s) your job got<node>.server.mila.quebec:19999 (requires Mila wifi or SSH tunnel)dashboard.server.mila.quebecsbatch) without explicit user confirmation$ARGUMENTS