Loading Larkspur mini
Chapter 5 of 7
Guess ahead
Each decode pass writes one token and reads every weight. Larkspur has a much smaller student model. What if it guessed ahead, and the big model only checked?
This chapter: How can a small model make a big one faster without changing a word of its reply?
About this chapter
You will learn
- Speculative decoding: a draft model guesses, the target model checks every guess in one pass
- Why the reply is exactly what the target would have written alone
- Acceptance rate and tokens per check, and why longer guesses stop paying
Words you’ll meet
- Draft model
- A small, fast model that guesses the next few tokens.
- Target model
- The model whose reply you want; it checks the draft.
- Speculative decoding
- Drafting k tokens with a small model and checking them with the target in one pass, keeping the ones it agrees with.
- Acceptance rate
- The share of drafted tokens the target agrees with.
Step 1 of 5
First the plain way: one decode pass per token.
Write 12 tokens.
Loading Larkspur mini