internalsGet Pro

Module 13 · Lesson 6 of 8Pro

Checkpoints, mixed precision and gradient accumulation

Level
Advanced
Topic
Tuning and efficient training
Reading time
17 min

When you finish this page you can

  1. Save a checkpoint that resumes a run exactly, with model, optimizer, schedule, scaler, progress and random state, written so a crash mid-save can’t destroy it.
  2. Choose how often to save from the write time and how often runs die.
  3. Say what mixed precision adds to a checkpoint, and why it doesn’t shrink the weights, gradients and optimizer state.
  4. Combine gradient accumulation with a gradient scaler, clipping and a learning rate schedule without changing the update.
  1. Training on GPUs: memory, precision and speed18 min
  2. Learning rate schedules and warmup17 min
  3. Momentum, Adam and modern optimizers17 min

Video lesson · coming soon

The run that came back worse

is our example online store. Sellers pick each product’s category themselves, and some pick wrong. Farah, an ML engineer, is fine-tuning ResNet-50 to suggest the category from the product photo, on the 83,000 training photos from the photo classifier design. This run uses the photos at 448 pixels a side, twice the usual, so small print on packaging shows. Joseph’s growth team wants the model for next Monday’s catalogue clean-up.

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