ML Training Recipes

•
9.1k
•

Provides battle-tested PyTorch training patterns and optimization strategies for LLMs, vision, and biomedical models.

ML Training Recipes is a specialized skill for AI researchers and engineers that offers a comprehensive library of production-grade PyTorch implementation patterns. It covers the entire training lifecycle, from architecture selection and scaling laws to advanced optimizer configurations like Muon and AdamW. This skill is particularly useful when training or fine-tuning neural networks, as it provides standardized guidance on mixed precision, gradient accumulation, and memory management, alongside systematic debugging workflows to resolve common issues like loss spikes, NaNs, and Out-of-Memory (OOM) errors.

主要功能

01Advanced memory management strategies to prevent and solve OOM errors
02Modern optimizer configurations including Muon, AdamW, and per-group LR scaling
03Domain-specific recipes for LLMs, Vision, Diffusion, and Biomedical imaging
04Systematic debugging checklists for loss divergence and silent failures
05Performance optimization tools for BF16, Torch Compile, and MFU tracking
069,148 GitHub stars

使用场景

01Debugging complex training loops to identify data leakage or gradient instabilities
02Fine-tuning large language models using compute-optimal scaling laws and LoRA
03Optimizing GPU throughput and memory utilization in multi-GPU training environments