internalsGet Pro

Module 17 · Lesson 6 of 11Pro

Fault tolerance and checkpoints at scale

Level
Advanced
Topic
Distributed training and scalable ML systems
Reading time
17 min

When you finish this page you can

  1. Estimate how often a synchronous training job is interrupted from a per-GPU failure rate, and explain why the rate grows with the number of GPUs.
  2. List what a distributed checkpoint must hold, size it from the parameter count, and say which GPU writes each part.
  3. Choose a checkpoint interval and a write path from the write time, the failure rate and the job’s deadline.
  4. Describe what torchrun does when a machine dies, and what the training script must do so the job can restart on fewer machines.
  1. Checkpoints, mixed precision and gradient accumulation17 min
  2. Data parallel training: same model, many GPUs17 min
  3. Model, pipeline and expert parallel training18 min

Video lesson · coming soon

One GPU fails at 3:50 a.m.

is the online store this course uses as its example. Every night Farah’s team retrains the recommender that picks products for each customer’s home page, on 40 , 5 machines of 8, and takes about 4.8 hours. It must finish between midnight and 6 a.m., so Joseph’s growth team has fresh recommendations by morning. These are the Module 17 scenario numbers.

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

Choose a plan