- 1Linear warmup: learning rate climbs from near zero while the batch size ramp completes
- 2Final checkpoint: the fully decayed model is evaluated and handed to post-training
- 3Anneal trigger: the data mixture shifts toward scarce high quality sources (textbooks, curated code, exam style data)
- 4Stable phase: long plateau at constant peak learning rate over the bulk of the token budget
- 5Decay phase: learning rate drops rapidly toward zero while the model digests the premium mix
Warmup ramps the LR up, the stable phase holds peak LR over most of the budget, an anneal trigger swaps in premium data, the decay phase ramps LR down, then the final checkpoint goes to post-training.
Think of training a long-distance runner over several months. You start with easy jogs that get harder week by week so the runner adapts; that is warmup. Then comes the long block of full-intensity training at a steady pace; that is the stable phase. As the big race approaches you switch from generic miles to race-specific drills and quality workouts; that is the anneal data swap. In the final weeks you taper down the intensity to let the body absorb the work; that is the decay phase. Race day is the final checkpoint where you hand the runner off to the event. The order is fixed because each phase prepares the body for the next, and rearranging them would either burn the runner out or leave them undertrained.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
WSD, short for warmup-stable-decay, is the LR schedule that displaced cosine as the default at frontier scale. The recipe is named after its three LR phases, but in practice a complete WSD run has five visible phases: warmup, stable, anneal trigger, decay, and final checkpoint handoff. The ordering is not arbitrary; each transition is timed to a specific change in the optimization regime, and reordering breaks the recipe in predictable ways.
The question asks for the order. The answer is warmup, then stable, then anneal trigger, then decay, then final checkpoint. The two non-obvious points are that batch-size ramps live inside warmup rather than at the start of stable, and that the premium data swap is timed to the decay transition rather than to the start of the run or the start of stable.
This deep dive walks through each phase, what it does, why it is where it is, and what goes wrong if it is moved.
Warmup: get out of the chaotic init region safely
The first phase ramps LR linearly from near zero to peak over the first few thousand steps. Batch size is often ramped during this same window: the run starts at a smaller global batch and grows to the target batch as the LR rises.
Both ramps exist for the same reason. At initialization, the loss surface is high-curvature and Adam's moment estimates have not converged. Large updates at this stage push the weights outside the optimizer's trust region and the run diverges. Holding LR small until the weights move into a better-conditioned basin keeps the trajectory stable.
The warmup phase is short, typically 2000 to 8000 steps depending on model scale, but it is load-bearing. Compressing it (the bug in the warmup-bug question) reliably produces gradient explosion within the first few hundred steps.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- MiniCPM from MBZUAI publishes a WSD recipe with explicit anneal-phase data-mixture changes
- OLMo 2 from AI2 uses a WSD-style schedule with a documented anneal data swap into decay
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy is the anneal data swap timed to the decay transition specifically?
Discuss consolidation regime, scarcity of premium data, and the empirical finding that quality-data impact compounds when LR is dropping rather than at peak LR.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Placing the anneal data swap at the start of the stable phase rather than at the transition into decay, missing the point that the premium mix is consumed while LR is dropping.
60 second bullets to scan on the way to the call.
What each WSD phase is responsible for
Why batch-size ramps live in warmup rather than stable
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.