Module 17 · Lesson 2 of 11Pro
Data parallel training: same model, many GPUs
- Level
- Intermediate
- Reading time
- 17 min
When you finish this page you can
- Trace one data parallel training step, from splitting the batch to the all-reduce of gradients and the optimizer step.
- Explain why every replica stays identical without ever sending its weights.
- Work out the effective batch size, step time and run time of a data parallel job, and adjust the learning rate for the bigger batch.
- Set up PyTorch DistributedDataParallel and check its result against one process: same start, same data split, same averaged gradient.
Builds on 3 lessons
Start with lesson 116 minVideo lesson · coming soon
A nightly retrain that would take 154 hours
Our biggest sale ever · Black Friday
Flat 50% Off
Pro
Continue reading
Unlock every course, now and later
- System Design, live
- AI Engineering, live
- Data Engineering, live
- Machine Learning Engineering, live
- Inference Engineering, coming soon
- AI Research, coming soon
- Performance Engineering, coming soon
- Agent & Harness Engineering, coming soon
- LLM Fine-tuning, coming soon
- LLM Pre-training & Post-training, coming soon
- Reinforcement Learning, coming soon
- AI Infrastructure & Platform Engineering, coming soon
- AI Evaluation & Safety, coming soon
- Forward Deployed Engineering, coming soon
- Cloud Computing, coming soon
- DevOps, coming soon
50% off · Annual and Lifetime
BLACKFRIDAY50Applied at checkout
View all plansAlready Pro? Sign in