Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dsi-slurm

БесплатноБез исполняемых скриптовНе проверен

Use the University of Chicago Data Science Institute Slurm cluster, called dsi-cluster here, for NeuriCo training, evaluation, sweeps, and batch jobs. Use…

ChicagoHAIот ChicagoHAI★ 164 звезды на GitHub

Об этом скилле

dsi-slurm

Use dsi-cluster only when NeuriCo is run with:

--compute-backend dsi-slurm

The official cluster reference is https://cluster-policy.ds.uchicago.edu/.

When to Use

Use this skill for experiment, evaluation, sweep, or batch execution only when NeuriCo was started with --compute-backend dsi-slurm.

Do not use this skill for local runs, Modal runs, paper writing, or lightweight analysis that can safely finish inside the local NeuriCo workspace.

Prerequisites

Before submitting cluster work, verify:

  • .neurico/dsi_slurm_remote_workspace.json exists in the local workspace;
  • login.ds works as a configured SSH alias without asking the agent for a username;
  • rsync can copy files through login.ds;
  • Slurm commands such as sbatch, squeue, sacct, and scancel are available on login.ds;
  • the job script requests an account, partition, time, memory, CPU count, and any GPU or storage profile required by the job that the user is allowed to use.

If any prerequisite is missing, report the blocker instead of guessing.

Contract

The local NeuriCo workspace is the source of truth for scoring, reporting, and paper/comment writing. dsi-cluster is compute, not artifact storage.

NeuriCo runtime owns:

  • creating the remote workspace;
  • recording its location in .neurico/dsi_slurm_remote_workspace.json;
  • archiving local dsi-slurm-artifacts/ after the stage;
  • removing the remote workspace after the stage.

You own:

  • reading .neurico/dsi_slurm_remote_workspace.json;
  • syncing code/data needed for the job into that remote workspace;
  • submitting and monitoring Slurm jobs safely;
  • copying required outputs back to the same relative paths in the local workspace;
  • copying each completed job bundle back to local dsi-slurm-artifacts/<JOB_ID>/.

Do not create, choose, reuse, or remove a different remote root.

Core Rules

  • The local workspace is for orchestration and reporting only. Do not run experiment workload locally.
  • Training, evaluation, selection, benchmarking, scored-output generation, and any result-changing command must run through Slurm in the runtime-provided remote workspace.
  • Local commands may inspect files, prepare scripts, edit code, and verify copied-back results only.
  • If really needed, run a very small Slurm smoke job before the full job. It must use sbatch, srun, or salloc and write logs under dsi-slurm-artifacts/<JOB_ID>/.
  • Use login.ds for SSH. Do not SSH directly to compute nodes.
  • Use Slurm (sbatch, srun, or salloc) for compute-node work.
  • Do not run training, heavy preprocessing, code agents, or IDE backends on login nodes.
  • Do not use Modal, local GPU fallback, or another backend unless the user reruns NeuriCo with a different --compute-backend.
  • Do not leave the only copy of important outputs in node-local scratch or the remote workspace.
  • Do not report success until all files required by scoring/interface.md are local and local scoring/reporting can use them.

Workspace Layout

Remote execution should mirror local execution. Keep the same relative paths for code, configs, metrics, predictions, checkpoints, and final artifacts.

Each Slurm job must have this bundle, both remotely while the job runs and locally before you finish:

dsi-slurm-artifacts/
  <JOB_ID>/
    slurm_<JOB_ID>.out
    slurm_<JOB_ID>.err
    job.json

For job arrays, use the array job ID:

dsi-slurm-artifacts/
  <ARRAY_JOB_ID>/
    slurm_<ARRAY_JOB_ID>_<TASK_ID>.out
    slurm_<ARRAY_JOB_ID>_<TASK_ID>.err
    job.json

job.json schema:

{
  "job_id": "Slurm job or array ID returned by sbatch --parsable",
  "status": "completed, failed, cancelled, timeout, preempted, or unknown",
  "slurm_state": "raw Slurm accounting state such as COMPLETED",
  "exit_code": "raw Slurm exit code such as 0:0",
  "script": "sbatch script path relative to the workspace root",
  "description": "short purpose of this job",
  "submitted_at_utc": "UTC timestamp recorded after submission",
  "recorded_at_utc": "UTC timestamp recorded after final state lookup"
}

job.json is audit and postmortem metadata. It helps humans and runtime cleanup understand what ran; scoring and paper writing should use the normal local files required by scoring/interface.md.

One experiment may submit multiple jobs. Use one directory per job or array ID.

Cluster Facts

  • Login host: login.ds.
  • general is the default partition for unattended batch work and can preempt.
  • interactive is for active debugging or Jupyter-style work.
  • protected is for short jobs that must avoid preemption.
  • Request GPUs with options such as --gres=gpu:1.
  • Request node-local scratch with --gres=local:<SIZE>; it appears as /local/scratch/<CNetID>_<JOBID>/ and is deleted when the job releases it.
  • Probe actual storage paths. Do not assume /project, /scratch, or a lab partition exists.

Workflow

Полный SKILL.md на GitHub

Установить dsi-slurm в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dsi-slurm?

Use the University of Chicago Data Science Institute Slurm cluster, called dsi-cluster here, for NeuriCo training, evaluation, sweeps, and batch jobs. Use only when NeuriCo is run with --compute-backend dsi-slurm. Run jobs in the runtime-provided remote workspace, monitor Slurm safely, and copy required outputs back to the local NeuriCo workspace.

Как установить скилл dsi-slurm?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dsi-slurm запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dsi-slurm с