Skills

Ml Training Recipes

Battle-tested PyTorch training recipes for all domains, LLMs, vision, diffusion...

Install

npx skills add Orchestra-Research/AI-Research-SKILLs --skill ml-training-recipes -g -a claude-code -y
Category
Testing
Updated
25d ago
License
MIT
Context cost
Mediumabout 2,690 tokens
Runs scripts
No, instructions only

What it does

Battle-tested PyTorch training recipes for all domains, LLMs, vision, diffusion, medical imaging, protein/drug discovery, spatial omics, genomics. Covers training loops, optimizer selection (AdamW, Muon), LR scheduling, mixed precision, debugging, and systematic experimentation. Use when training or fine-tuning neural networks, debugging loss spikes or OOM, choosing architectures, or optimizing GPU throughput.

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
Text (gen)Few-shot promptingFine-tune GPT/LLaMA (LoRA)Pretrain from scratch
TabularXGBoost/LightGBMStill XGBoostNeural viable
AudioPretrained WhisperFine-tune ASTTrain from scratch
MoleculesPretrained GNNFine-tune molecular LMTrain GNN from scratch
ProteinsESM-2 embeddings + headFine-tune ESM-2Train protein LM
Medical imgPretrained CNNnnU-Net (auto-config)Swin-UNETR / MedSAM

Key principle: architecture matters less than training recipe at equal compute. A well-tuned ResNet beats a poorly-tuned ViT (ref: "ResNet Strikes Back", Wightman 2021).

For biomedical domains, see references/biomedical.md. For sequence model selection and compute planning, see references/scaling-and-selection.md.


Scaling Laws

Chinchilla

Read the whole SKILL.md on GitHub

More in Testing