experiment-queue
What it does
This skill manages large groups of machine learning jobs on remote GPU servers over SSH. It is for researchers who run many seeds or settings and need them to finish without constant checking.
When to use it
- โWhen you have ten or more experiment jobs that need to run in batches.
- โWhen you want a multi-seed sweep across several settings on remote GPUs.
- โWhen some runs fail from memory limits and need to be retried automatically.
Skill link
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/experiment-queue/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentโs skills folder.
Example of what to ask your AI
โI need my 21-seed experiment grid queued on the remote GPU server, with any out-of-memory runs retried.โ
5 new skills a week. 1 minute to read.
How it works
The agent sets up a background scheduler on the server that tracks each job, waits for dependencies, retries out-of-memory failures, and moves on to the next wave. It reports progress on request.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Experiment Queue
โฑ External cadence: visibility only. This skill already runs its own detached server-side scheduler (60s poll +
depends_on+ wave transitions). Use its status output for overnight visibility (N done / N running / N pending); do not wrap it in a second/loop/CronCreatepoll โ that duplicates the scheduler on an uncoordinated clock and races the wave-transition logic it was built to prevent. Seeshared-references/external-cadence.md("don't duplicate an existing scheduler").
Orchestrate large batches of ML experiments on SSH remote GPU servers with proper state tracking, OOM retry, stale cleanup, and wave transitions.
When to Use This Skill
Use when /run-experiment is insufficient:
- โฅ10 jobs that need batching across GPUs
- Multi-seed sweeps (e.g., 21 seeds ร 12 cells)
- Wave transitions (run wave 1, wait, run wave 2, wait, run wave 3...)
- Teacher+student chains (train teacher then distill; auto-trigger student after teacher done)
- OOM-prone configs where you need to retry with different GPU or wait
- Mixed seed grids where failed cells need re-running
Do NOT use for:
- Single ad-hoc experiment (use
/run-experiment) - Modal/Vast.ai deployments (those have their own orchestration)
- Experiments that need manual inspection between runs
Why This Exists
Based on session audit (2026-04-16), the major wall-clock sinks in multi-seed grid experiments are:
- Stale screens โ python finishes, wandb uploads, screen hangs, next wave blocked
- OOM on shared GPU โ previous job's memory not yet released
- Wave race โ new wave launches before previous wave fully settles
- Missing checkpoints โ student launches before teacher saved
- Parser duplication โ rewriting multi-seed analysis python every batch
All of these are pure engineering friction that can be orchestrated.
Core Concepts
Environment contract: queue jobs assume the target env is already built and validated per
../shared-references/compute-env-contract.md(spec-hash ledger + kernel witness). A wave of jobs dying at import time = the env contract was skipped, not a queue bug; check the provider's.aris/compute/<provider>.mdledger before re-queueing.
Job Manifest
A manifest lists jobs with explicit state:
project: my_grid_experiment
cwd: /home/user/your_project
conda: my_env
# Optional: override conda hook path if conda is not at a standard location.
# Can be a bare path (wrapped automatically) or a full `eval "$(... shell.bash hook)"` string.
# Falls back to auto-detect of ~/anaconda3, ~/miniconda3, /opt/anaconda3, etc.,
# or the ARIS_CONDA_HOOK environment variable.
# conda_hook: /custom/path/to/conda
ssh: gpu-server
default_cmd: >
python run_distill.py --backbone softmax --lam 0.5
--K 500 --L 96 --W 16 --n_steps 30000 --batch_size 128 --lr 1e-4
preconditions:
- type: checkpoint_exists
path: checkpoints/transformer/teacher_L96_K500_N{N}.pt
gpus: [0, 1, 2, 3, 4, 5, 6, 7]
max_parallel: 8
gpu_free_threshold_mib: 500 # optional, default 500; raise for shared servers, lower for tight packing
oom_retry:
delay: 120
max_attempts: 3
jobs:
- id: s200_N64_n50K
args: {seed: 200, n_hidden: 64, n_train_subset: 50000, subset_seed: 2024}
- id: s200_N128_n50K
args: {seed: 200, n_hidden: 128, n_train_subset: 50000, subset_seed: 2024}
# ... 14 more
Job State Machine
pending โ running โ completed
โ failed_oom โ pending (after delay) [retry up to N]
โ failed_other โ stuck (needs manual inspection)
stale screen (process gone, screen lingering) โ failed_other โ stuck
Operator note on
stuck(the agent's move, not the queue's): the queue deterministically parksfailed_otherjobs asstuckโ that part is code and unchanged. Before handing astuckbatch to the human, the OPERATING AGENT should check: if the same failure repeats across jobs, try ONE clean reimplement of the agent-generated wrapper/attempt script only โ never user/project source (run_*.pyyou didn't write), the manifest, queue state, logs, or results (seeshared-references/external-cadence.mdยง Let a broken attempt restart, not just patch). Reserve the human handoff for contract/environment doubts, not merely broken attempt code.
Wave Orchestration
A "wave" is a batch of jobs that fit available GPUs. Next w
FAQ
When should I not use it?
For a single ad hoc experiment, the simpler run-experiment skill is enough. It is also not meant for Modal or Vast.ai jobs.
Can I check progress while it runs?
Yes. The status output shows how many jobs are done, running, and pending.
Do I need to put it on a timer?
No. The skill already runs its own scheduler, so a second timer would duplicate it.
Details
Original description by the author
SSH job queue for multi-seed/multi-config ML experiments with OOM-aware retry, stale-screen cleanup, and wave-transition race prevention. Use when user says "batch experiments", "้ๅๅฎ้ช", "run grid", "multi-seed sweep", "auto-chain experiments", or when /run-experiment is insufficient for 10+ jobs that need orchestration.
Popularity
- GitHub stars
- 18k
- Ranking position
- #10535
- License
- MIT
- Updated
- 11/2/2026
Comments
- โฆ
More skills from this repository
ablation-planner
18kHelps your agent plan ablation studies for a paper, choosing the tests reviewers are likely to ask for once the main results look good.
alphaxiv
18kLets your agent quickly read one research paper using AlphaXiv summaries, with full text or LaTeX source as backup, from an arXiv link or ID.
analyze-results
18kHelps your agent analyze machine learning experiment results, compare runs against a baseline, and turn the numbers into clear findings and next steps.
arxiv
18kLets your agent search arXiv for academic papers, read their details, and save PDFs to your library for a research topic.
Similar skills
pytorch-patterns
280kHelps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
evm-token-decimals
280kHelps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
ito-inference
280kLets your agent check the availability of AI models for use. It connects the compute request with the ready model service.