This is a comprehensive PyTorch training reference that covers everything from optimizer selection (Muon vs AdamW for different parameter types) to domain-specific patterns for LLMs, vision, diffusion, and biomedical applications. It includes actual code snippets for training loops, learning rate schedules, and mixed precision setup, plus decision tables for architecture selection based on data scale. The scaling laws section gives you Chinchilla-optimal token counts, and there's practical debugging advice for loss spikes and OOM errors. What makes this useful is the specificity: it tells you to use lr * (d_model / 768)^(-0.5) for dimension scaling and eps=1e-10 for AdamW in bfloat16, not just "tune your hyperparameters." If you're setting up training from scratch or debugging why your loss won't converge, this beats hunting through papers and GitHub issues.

skills.sh installs
996
GitHub stars
14.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill ml-training-recipes --agent claude-code

Installs into .claude/skills of the current project.

Files

ML Training Recipes

Battle-tested patterns for PyTorch training across domains. Drawn from production codebases (Karpathy's autoresearch/nanochat, torchvision, HuggingFace) and modern training practice.

Reference files (read when needed)

  • references/architecture.md — Transformer/LLM architecture code patterns, weight init
  • references/optimizers.md — Muon, AdamW hybrid, per-group LR, compiled optimizer steps
  • references/domain-specific.md — Vision, diffusion, contrastive, distributed, checkpointing, data loading
  • references/scaling-and-selection.md — Scaling laws, compute budget tables, decision trees, DGX Spark
  • references/biomedical.md — Drug discovery, protein models, medical imaging, genomics, clinical NLP
  • references/experiment-loop.md — Autonomous experiment loop (autoresearch keep/discard/revert)

Architecture Selection

Pick the right model by data type and data scale:

Data Type< 10K samples10K-100K> 100K
ImagesPretrained CNN + fine-tuneFine-tune ViT or CNNViT from scratch

Sponsors

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI & Agent Building, Data Science & ML, Debugging, Sales & Marketing, Generative Media
First seen
Jun 3, 2026

More from orchestra-research/ai-research-skills

All 95
1jwynia avatardocument-to-narrationjwynia/agent-skillsConvert written documents to narrated video scripts with TTS audio and word-level timing. Use when preparing essays, blog posts, or articles for video narration994skills.sh installs
2github avatarreact19-source-patternsgithub/awesome-copilotReference for React 19 source-file migration patterns, including API changes, ref handling, and context updates.993skills.sh installs
3orchestra-research avatarpresenting-conference-talksorchestra-research/ai-research-skillsGenerates conference presentation slides (Beamer LaTeX PDF and editable PPTX) from a compiled paper with speaker notes and talk script. Use when preparing oral 993skills.sh installs
4ailabs-393 avatarresume-managerailabs-393/ai-labs-claude-skillsThis skill should be used whenever users need help with resume creation, updating professional profiles, tracking career experiences, managing projects portfoli991skills.sh installs
5orchestra-research avatarsystems-paper-writingorchestra-research/ai-research-skillsComprehensive guide for writing systems papers targeting OSDI, SOSP, ASPLOS, NSDI, and EuroSys. Provides paragraph-level structural blueprints, writing patterns990skills.sh installs
6ailabs-393 avatartech-debt-analyzerailabs-393/ai-labs-claude-skillsThis skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code mai988skills.sh installs