A big model writes one token per slow step. Speculative decoding lets a small model guess ahead, then the big model checks all the guesses in a single pass — same output, far fewer slow steps. Play with the guessing and watch the speed-up.
From the KV-cache lesson you know decode runs one token per forward pass. Here's the twist that makes it slow — and the exact gap speculative decoding exploits.
A small, fast draft model guesses the next few tokens. The big model then reads all of them at once and keeps the longest run it agrees with — so most tokens skip the slow model entirely.
k tokens, cheaply and quickly.k in one pass and accepts the correct prefix; the first wrong guess is dropped, and the big model always supplies one correct token itself.Running a separate draft model works, but it's a second model to host and keep aligned. Medusa and EAGLE fold the drafting into the big model itself.
That's the last stop in Stage 0. You've followed an LLM from raw web text through training to a served, sped-up model. Head back to the roadmap to pick where you go next.