Why a tiny model can make your local model faster
A short breakdown from Adam Rosler, AI engineer. The one you commented FAST for.
What's happening
When a language model writes, it makes one token (a word or a piece of a word) at a time. For every single token, your GPU has to read the whole model out of memory. A 7-billion-parameter model squeezed to 4.7 GB means reading 4.7 GB for each token. The GPU's maths units are fast enough to do far more; they spend most of their time waiting for that memory.
Speculative decoding uses that waiting time. A much smaller "draft" model from the same family (mine was 15 times smaller) quickly guesses the next few tokens. Then the big model checks all of those guesses in one pass, which costs about the same as making one token, because the expensive part (reading the model) happens once.
- Every guess that matches what the big model would have written is kept.
- At the first wrong guess, the rest are thrown away and the big model writes its own token there.
So the big model still decides every word. When the guesses are good, you get several tokens for the price of one.
Why it matters
- It's free speed on hardware you already own. On my GPU (one RTX 5070 Ti), a 7B coding model (Qwen2.5-Coder) went from about 150 to about 230 tokens a second on a coding prompt: about 50% faster. Same model, nothing retrained.
- The original research (Leviathan, Kalman and Matias, 2022) measured 2 to 3 times faster on a bigger model.
- It isn't magic. It only pays when the next words are easy to predict. Code, boilerplate, structured answers: yes. On a short creative story, my draft kept guessing wrong and the model got slower (about 8%).
What to do
-
Pick a draft from the same family as your model (they must share a vocabulary), about 10-20 times smaller: Qwen2.5-Coder 7B with Qwen2.5-Coder 0.5B, Qwen3-8B with Qwen3-0.6B, Llama 3.1 8B with Llama 3.2 1B.
-
In llama.cpp, load it with
-md(--model-draft) and switch it on with--spec-type draft-simple:llama-server -m your-model.gguf -md small-draft.gguf --spec-type draft-simpleOn recent builds,
-mdalone loads the draft and does nothing with it. Look for "draft acceptance" in the log to confirm it's working. -
In vLLM, add
--speculative-config '{"model": "<draft>", "num_speculative_tokens": 5, "method": "draft_model"}'. -
Measure it on your own prompts. If you mostly write prose, it may not help, or may cost you.
The details, if you want them
- The text can differ slightly from a run without the draft, even at temperature 0: checking several tokens at once on a GPU rounds a tiny bit differently, so a near tie can go the other way ("calculates" vs "returns"). The quality is still the big model's.
- My full numbers: code 153 → 230 tokens a second with 3 guesses per step (1.5x); a short story 152 → 141 (0.92x). More guesses per step helped code a little and hurt the story more.
Sources: Leviathan, Kalman, Matias, "Fast Inference from Transformers via Speculative Decoding" (arXiv 2211.17192); llama.cpp docs (docs/speculative.md, tools/server/README.md); vLLM docs (speculative decoding, draft models). Numbers: my own runs on 23 Nov 2026, llama.cpp build 12651.
Unlock the full FAST breakdown
Drop your email once to read the complete step-by-step guide, grab the files, and unlock all 96 Reel breakdowns on this device forever.