internalsGet Pro

Module 09 · Lesson 8 of 11Pro

Learning rate schedules and warmup

Level
Intermediate
Topic
Neural networks
Reading time
17 min

When you finish this page you can

  1. Compute the learning rate at any step of a warmup-plus-cosine schedule, and explain why the rate should fall near the end even with Adam.
  2. Explain why warmup helps early in training, and say when it matters most.
  3. Attach a PyTorch scheduler to a training loop, calling step() in the right place and at the right frequency.
  4. Run a learning rate range test to choose the peak rate for a new model.
  1. Learning rate: step size and stability14 min
  2. Stochastic and mini-batch gradient descent17 min
  3. Momentum, Adam and modern optimizers17 min
  4. Building a neural network in PyTorch14 min
  5. Batch and layer normalization16 min

Accuracy that won’t sit still

is our example online store. Sellers pick each product’s category themselves, and about 70 in every 1,000 new listings get it wrong. A coat filed as a pullover never shows up in the “similar coats” row that Joseph’s growth team owns. So Farah, an ML engineer, is training a network that suggests the category from the photo.

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