Module 13 · Lesson 5 of 8Pro
Batch size, memory and training speed
- Level
- Intermediate
- Reading time
- 17 min
When you finish this page you can
- Split a training run’s time into epochs to reach a target and time per epoch, and say how batch size moves each one.
- Measure throughput at several batch sizes and explain why it levels off.
- Estimate the critical batch size from two runs and pick the batch that reaches a target quality fastest.
- Find the largest batch that fits in GPU memory and treat it as a ceiling, not a choice.
Builds on 3 lessons
Start with Module 04, lesson 617 minVideo lesson · coming soon
A bigger batch made the run slower
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