ai-distributed-training

Featured

Guides multi-GPU pre-training: DDP, FSDP2, ZeRO, tensor/pipeline/expert parallelism, fp8/Muon. Use when scaling a run, training MoE, or reproducing GPT-2 on rented GPUs.

AI & Automation 80 stars 17 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
64
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Distributed Training - Systems Performance Skill **Operational focus**: picking and implementing the right parallelism strategy, not the theory. Covers data parallelism through FSDP/ZeRO/tensor+pipeline parallelism, memory-efficient attention, mixed precision at scale, activation checkpointing, rented-GPU cost discipline, and reproducing GPT-2 124M as the canonical sanity check. Profile before you scale. Debug on the smallest GPU that fits. Stop the instance when done. ## ASCII Flow ```text single GPU (debug/prototype) └─ DDP: replicate model, all-reduce gradients — linear scale up to ~8 GPUs └─ FSDP2 / ZeRO: shard optimizer state, gradients, params across GPUs └─ tensor parallelism: split weight matrices across GPUs (intra-node) └─ pipeline parallelism: split layers across nodes (inter-node) └─ context parallelism: shard the sequence dim (long context) └─ expert parallelism: route MoE experts across GPUs (all-to-all) └─ N-D parallelism: DP + TP + PP + CP + EP (frontier MoE) profile-before-scale └─ nsys / torch.profiler → find bottleneck (compute? memory? dataloader?) └─ fix bottleneck at small scale, then scale ``` ## When to Use This Skill Activate when the user asks about: - Choosing between DDP, FSDP2, DeepSpeed ZeRO stages 1/2/3, or Megatron-LM - Training Mixture-of-Experts (MoE) models: expert parallelism, all-to-all, load balancing - OOM errors on multi-G...

Details

Author
vasilyu1983
Repository
vasilyu1983/AI-Agents-public
Created
9 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

distributed-training

Multi-GPU and distributed training patterns with PyTorch DDP. Use when scaling training across GPUs.

1 Updated 2 days ago
thada2402
AI & Automation Listed

remote-gpu-trainer

Use whenever the user deploys, trains, monitors, or troubleshoots a long-running GPU job on a RENTED or remote instance they do not own — training, eval, ablation sweeps, batch inference, or large data processing — on AutoDL, RunPod, vast.ai, Lambda, Paperspace, Chinese platforms (恒源云/矩池云/Featurize/揽睿星舟), a bare SSH box, Slurm, or Kubernetes; single OR multi-instance. Triggers (multilingual): "远程 GPU 训练", "GPU 租赁", "GPU rental", "租卡", "spot 抢占", "spot preemption", "断点续训", "resumable training", "tmux 训练守护", "防 SSH 断线", "scp/rsync 上传", "多实例 ablation", "远程 GPU 监控", "省钱关机/销毁实例", "stop vs terminate billing", "checkpoint 磁盘满", "CUDA OOM/显存不足", "loss NaN/loss spike", "loss 不下降/不收敛", "overfit 单 batch", "FSDP/DeepSpeed 配置", "多卡训练 hang", "dataloader worker/数据增广 bug". NOT for purely local single-GPU training, in-instance multi-GPU DDP (use torchrun/accelerate), managed multi-cloud price-shopping (use SkyPilot's skill), or zero-ops serverless (use Modal).

0 Updated today
Udalefourfold471
AI & Automation Listed

distributed-gpu-engineer

Expert in scaling ML training across multiple GPUs and nodes. Masters SLURM, PyTorch Distributed Data Parallel (DDP), Ray, and CUDA OOM debugging. Authored by João P. M. Silva.

0 Updated 1 weeks ago
jpmsilva1