Key takeaways
- With standard rejection sampling, speculative decoding keeps the model’s output distribution and only changes speed.
- Acceptance length sets the gain, and temperature, task and drafter quality all move it.
- Gains are largest at low concurrency and shrink, or reverse, as batches use up spare GPU compute.
- Try a drafter bundled with the model first, then EAGLE-3, then n-gram for copy-heavy output.
- vLLM cut Mistral Large 4’s time per output token from 8.84 ms to 3.50 ms at one request.
Speculative decoding speeds up generation by letting a cheap drafter guess the next few tokens and having the full model check every guess in one forward pass. With the standard acceptance rule, what comes out follows the same distribution the model would produce on its own, so the speed costs nothing in quality.12 The gain is biggest when few requests share a GPU. In vLLM’s launch tests of Mistral Large 4 on eight GPUs, the drafter that ships inside the checkpoint cut time per output token from 8.84 ms to 3.50 ms for a single request.3
The speed comes from GPU compute that sits idle while decoding waits on memory, and every step spends some of it on guesses that get thrown away. As batches grow, the spare compute runs out. The gain shrinks, and on some setups throughput drops below running without speculation.45 Sampling temperature, the kind of text and the drafter’s quality all change how many guesses survive.
This post is for engineers serving open models on their own GPUs. It covers the mechanism, six kinds of drafter, published results by concurrency, the settings in vLLM, SGLang and TensorRT-LLM as of 5 November 2026, and what to measure. We haven’t run these benchmarks ourselves, so every number says who measured it.
How speculative decoding works, and why the output stays the same
Producing each token means reading the model’s weights from GPU memory, and at small batch sizes that read takes longer than the arithmetic. Leviathan and colleagues at Google noted that large-model inference is often limited by memory bandwidth and communication, which leaves compute to spare.1 A DeepMind team developed the same idea independently and tested it on Chinchilla 70B.2
A drafter proposes k tokens. The target model scores all of them in one forward pass, which costs about as much as generating a single token because the weights are read once. Going left to right, it accepts each draft token with probability equal to its own probability for that token divided by the drafter’s, capped at 1. At the first rejection it samples a replacement from a corrected distribution and drops the rest. If every token passes, the same pass adds one more, so each step yields 1 to k+1 tokens.2
Both papers prove that this rule leaves the output distribution exactly as the target model alone would produce it.12 With greedy decoding the accepted tokens are the ones the model would have picked anyway. In practice the verification pass runs different kernels, so floating-point differences can flip a near-tie. The DeepMind authors note that numerics rule out identical samples, so they compared benchmark scores, which matched.2 vLLM calls its implementation lossless up to hardware numerics and tests that greedy output is the same with and without speculation.6
Acceptance length decides the speed-up
Acceptance length is the average number of tokens a verification step produces. vLLM counts it as 1 plus the accepted draft tokens per step, so with k draft tokens it runs from 1 to k+1.7 A speculative step never costs less than a plain decoding step, so acceptance length also caps the speed-up.
If each draft token were accepted independently with probability a, a step would yield (1 − a^(k+1)) / (1 − a) tokens on average.1 The table applies that formula (our arithmetic). Real acceptance falls with position in the draft, so read it as an upper bound.8
| Acceptance per token | k = 1 | k = 3 | k = 5 | k = 7 |
|---|---|---|---|---|
| 0.6 | 1.60 | 2.18 | 2.38 | 2.46 |
| 0.8 | 1.80 | 2.95 | 3.69 | 4.16 |
| 0.9 | 1.90 | 3.44 | 4.69 | 5.70 |
A weak drafter gains little from longer drafts. At 0.6, going from three draft tokens to seven adds 0.28 tokens per step and more than doubles the drafting work. Speed matters as much as accuracy. In the Google paper, a 77M-parameter T5-small drafting for the 11B T5-XXL was accepted less often than an 800M T5-large, 0.75 against 0.82, but ran so much faster that it gave 3.4 times against 1.7 times.1
Acceptance length also shows what a step costs. vLLM’s Mistral Large 4 drafter produced 2.90 tokens per step at one request and cut time per output token 2.53 times, so each step took about 15% longer than a plain one (2.90 ÷ 2.53, our arithmetic).3
Temperature lowers acceptance. In the Google paper, T5-small’s acceptance on translation fell from 0.75 at temperature 0 to 0.62 at temperature 1, and the speed-up from 3.4 to 2.6 times.1 vLLM’s Mistral Large 4 drafter held about 2.8 tokens per step at temperature 1.0 but fell to 2.04 at 1.5. Setting draft_sample_method to probabilistic lifted it to 2.36 to 2.53 and throughput by 12% to 22%, and vLLM says both modes stay lossless.3
The kind of text matters too. DeepMind’s drafter gave 2.46 times on HumanEval code and 1.9 to 2.0 times on XSum summaries.2 Prompt lookup, which copies guesses from the prompt, ranged from 1.16 times on Alpaca instructions to 2.42 times on CNN/Daily Mail summaries in the EAGLE-3 authors’ tests on Vicuna 13B.4
Draft models, n-gram, EAGLE-3 and multi-token prediction compared
Every method keeps the same verification step and differs in where the guesses come from. The results come from different models, hardware and settings, mostly at one request, so they can’t be ranked against each other.
| Drafter | What it needs | Published result (who measured) | Name in vLLM / SGLang / TensorRT-LLM |
|---|---|---|---|
| Separate draft model | A smaller model with the same tokenizer, plus GPU memory for its weights and KV cache | 1.9x to 2.5x on Chinchilla 70B with a 4B draft, batch 1 (DeepMind) | draft_model / STANDALONE / DraftTarget |
| N-gram or prompt lookup | Nothing to train; output that repeats the prompt or earlier output | 1.16x to 2.42x, mean 1.74x, on Vicuna 13B (EAGLE-3 authors) | ngram or suffix / NGRAM / SA |
| Medusa heads | Extra decoding heads trained on the model; Medusa-2 also fine-tunes the model | 2.18x (Medusa-1) and 2.83x (Medusa-2) on Vicuna 7B, batch 1 (Medusa authors) | Not in any of the three engines’ docs |
| EAGLE-3 head | A small draft head trained for the exact target model | 4.12x mean, acceptance length 5.88, Llama 3.3 70B at temperature 0 (EAGLE-3 authors) | eagle3 / EAGLE3 / Eagle3 |
| Multi-token prediction | A model trained with MTP modules, which ship in its checkpoint | 85% to 90% second-token acceptance, 1.8x tokens per second, DeepSeek-V3 (DeepSeek) | mtp / EAGLE on the model’s own MTP layers / MTP |
| Drafter bundled by the model maker | A checkpoint that includes its drafter | About 2.9 tokens per step and 2.5x lower time per output token at one request, Mistral Large 4 with DSpark (vLLM) | dspark / loaded from the checkpoint / not listed |
Sources: the papers and engine docs cited below, with engine names as of 5 November 2026.2491036111213
A separate draft model has to share the target’s tokenizer. TensorRT-LLM warns that otherwise acceptance is extremely low and performance regresses, and vLLM’s cross-vocabulary option supports only greedy draft sampling.136
N-gram and suffix drafting copy guesses from text the request has already seen, so there is nothing to train or load. vLLM’s docs rate the gain as modest, with no extra load at peak traffic, and suggest suffix decoding for repetitive work such as code editing and agent loops.614 TensorRT-LLM is dropping its NGram option in January 2027 for a suffix automaton.13
Medusa adds output heads, each a single feed-forward layer on the last hidden state, and verifies a tree of candidates at once.9 Medusa-2 also fine-tunes the model, and its typical acceptance scheme isn’t lossless when sampling.4 None of the three engines lists Medusa in its current docs.
EAGLE drafts from the target’s own second-to-top-layer features with one trained decoder layer, which for a 70B model had 0.99B parameters and trained in one to two days on four A100s.15 EAGLE-3 predicts tokens directly from low, middle and high-layer features, and its authors report decoding 3.0 to 6.5 times faster than plain generation.4 A head works only with the model it was trained for. vLLM’s docs list published heads from Red Hat AI and the EAGLE authors, and its speculators project for training new ones.166
Multi-token prediction modules are trained with the model. DeepSeek-V3 adds one, a transformer block sharing the main model’s embedding and output head, mainly to improve training, and it can be reused as a drafter.10 With one extra token, 85% to 90% acceptance gives 1.85 to 1.9 tokens per step by our arithmetic, close to the reported 1.8 times. As of 5 November 2026, TensorRT-LLM lists MTP for DeepSeek, Qwen3.8 MoE, Qwen3.5 MoE and Step-3.x models, and vLLM runs Gemma 4’s assistant checkpoints through its MTP path.1317
Bundled drafters ship inside the checkpoint. Mistral Large 4’s DSpark is a small non-causal transformer with three sliding-window attention layers that drafts a whole block in one pass from hidden states of five target layers.3 vLLM’s docs also show DSpark and DFlash drafters for DeepSeek-V4-Flash and MiMo-V2.5-Pro.8 Our Mistral Large 4 post covers that model’s hardware and cost per token.
Why the gain shrinks as concurrency rises
At one request the GPU spends most of each step reading weights, so verifying four tokens costs little more than generating one. In a batch, each request adds its draft tokens to the step. vLLM’s docs call this an effective batch of batch size times draft length, and past a critical size it makes time per output token worse.5 The EAGLE-3 authors give the same explanation.4
| Setup | Measured by | Metric | 1 or 2 requests | 8 | 24 and 32 | 48 to 64 |
|---|---|---|---|---|---|---|
| Mistral Large 4 FP8, 8 GPUs, DSpark | vLLM | Time per output token | 2.5x | 2.2x | 2.6x at 32 | Not reported |
| Mistral Large 4, 4 AMD MI350X, DSpark | vLLM | Time per output token | 2.7x | 1.9x | 1.8x at 32 | Not reported |
| Llama 3.1 8B, 1 H100, SGLang, EAGLE-3 | SGLang team | Throughput | 1.81x | 1.62x | 1.39x, 1.32x | 1.38x at 48 and 64 |
| Same, original EAGLE | SGLang team | Throughput | 1.40x | 1.23x | 0.93x, 0.94x | 0.88x at 48, 0.99x at 64 |
| Llama 3.1 8B, vLLM, EAGLE-3 (A100 per the paper’s table, RTX 3090 per its text) | EAGLE-3 authors | Throughput | 1.75x | 1.58x | 1.42x, 1.36x | 1.21x at 48, 1.01x at 56 |
| Same, original EAGLE | EAGLE-3 authors | Throughput | 1.30x | 1.21x | 1.03x, 0.93x | 0.82x at 48, 0.71x at 56 |
Each cell compares the same setup with and without speculation, so values below 1x are losses. Sources: vLLM’s Mistral Large 4 post and the EAGLE-3 paper.34 The first row is our arithmetic from vLLM’s milliseconds.
On the 8B model the original EAGLE fell below plain decoding from batch 24 in SGLang and lost 29% of throughput at batch 56 in vLLM, while EAGLE-3 stayed ahead at every batch size tested, by 1% at batch 56.4 On AMD’s MI350X, DSpark’s gain on Mistral Large 4 fell from 2.7 times at one request to 1.8 times at 32. On vLLM’s eight-GPU runs it stayed between 2.2 and 2.6 times up to 32 requests, where the published table stops.3
Mixture-of-experts models can gain less. Verifying several tokens can touch more experts than decoding one, which the EAGLE authors give as part of the reason EAGLE reached only 1.5 times on Mixtral 8x7B.15 Mistral Large 4 is a mixture-of-experts model too, and DSpark still more than halved its time per output token.3
SGLang’s Mistral Large 4 cookbook offers a low-latency recipe with DSpark for chat and a high-throughput recipe without speculation for batch jobs. With speculation on, it caps running requests at 48 by default.12 TensorRT-LLM’s docs say speculation can’t yet be switched off dynamically, so its speed-ups show only at low batch sizes.13
vLLM and SGLang can scale speculation with load. vLLM’s dynamic speculative decoding maps batch-size ranges to draft lengths, such as three tokens up to 64 requests, one up to 128 and none above, but not with data parallelism.5 Its adaptive verification, off by default, sizes each step’s verification from a cost model.8 SGLang’s --speculative-adaptive tunes draft steps from recent acceptance for EAGLE and EAGLE-3 with a top-k of 1.18
Settings that do change the output
The lossless guarantee belongs to the standard rejection sampler. Each engine also has settings that accept more draft tokens by relaxing it, and with those on, the output can change.
- vLLM’s FLy verification can defer a rejection at a high-entropy position. vLLM calls it intentionally lossy and warns that it may degrade outputs.19
- SGLang’s
--speculative-accept-threshold-singleand--speculative-accept-threshold-accdefault to 1.0, and lower values accept more aggressively.11 - TensorRT-LLM’s
use_relaxed_acceptance_for_thinkinglets MTP accept a draft token during a reasoning model’s thinking phase if it falls in a set of the target’s top candidates.13
With the standard sampler, vLLM checked that DSpark doesn’t change what Mistral Large 4 writes. The base model agreed with DSpark’s outputs as often as with its own, and the FP8 model scored 0.909 on GSM8K without DSpark and 0.918 with it.3
Turning on speculative decoding in vLLM, SGLang and TensorRT-LLM
The settings below come from each project’s docs on 5 November 2026, when the newest releases were vLLM 0.33.0, SGLang 0.5.23 and TensorRT-LLM 1.4.0rc2, a pre-release (its latest stable release is 1.2.1).20 Each example serves Llama 3.1 8B Instruct with an EAGLE-3 head and three draft tokens per step.
# <eagle3-head>: an EAGLE-3 head trained for this exact target model
# vLLM
vllm serve meta-llama/Llama-3.1-8B-Instruct \
--speculative-config '{"method": "eagle3", "model": "<eagle3-head>", "num_speculative_tokens": 3}'
# SGLang (with top-k 1, draft tokens = steps + 1)
python3 -m sglang.launch_server --model meta-llama/Llama-3.1-8B-Instruct \
--speculative-algorithm EAGLE3 --speculative-draft-model-path <eagle3-head> \
--speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4
# TensorRT-LLM, with the YAML below saved as spec.yaml
trtllm-serve meta-llama/Llama-3.1-8B-Instruct --config spec.yaml
speculative_config:
decoding_type: Eagle3
max_draft_len: 3
speculative_model: <eagle3-head>
vLLM’s method names include eagle3, mtp, draft_model, ngram and suffix, and the older --speculative-model flag is deprecated.621 For MTP it suggests starting with one speculative token.17 SGLang auto-tunes the three draft-size flags if you leave all of them unset, and its default overlap scheduler needs a top-k of 1 set explicitly.11 TensorRT-LLM’s server takes speculation settings only from the YAML file, where decoding_type can also be MTP, DraftTarget, PARD, DFlash or SA.13
Speculation needs memory beyond the drafter’s weights. SGLang’s docs name the draft tree, CUDA graphs and verification buffers, and suggest a smaller draft, --mem-fraction-static or --cuda-graph-max-bs-decode if you run out.11 In the EAGLE paper, Llama 2 Chat 70B on four 40 GB A100s fit a batch of four with EAGLE and five without.15
What to measure on your own traffic
Published acceptance figures come from other people’s prompts. vLLM measured Mistral Large 4’s drafter at about 2.9 tokens per step on 200 real prompts, while SGLang’s cookbook reports 3.71 per four-token step for the same drafter on 1,024-token random prompts.312 Measure on your own requests at your production temperature, with and without speculation.
- Acceptance length. In vLLM it is 1 plus
vllm:spec_decode_num_accepted_tokens_totaldivided byvllm:spec_decode_num_drafts_total, and an experimental--per-request-spec-decode-metricsoption reports it per request.7 SGLang’s benchmark output prints an accept length.22 - Time per output token, median and p99, at one request, at typical concurrency and at peak.
- Output throughput at peak concurrency, with and without speculation.
- Memory headroom, as the largest batch and KV cache that still fit with the drafter loaded.
vllm bench serve takes --max-concurrency, a temperature and your own prompts through --dataset-name custom, and its default dataset is random tokens.23 vLLM pitches speculative decoding at the latency between tokens, so it won’t shorten the wait for the first one.6 Our field note on an assistant’s time to first word covers that wait.
OpenAI’s Predicted Outputs for hosted models
OpenAI’s Predicted Outputs lets you supply the guess yourself on a hosted model. It adds a prediction parameter to Chat Completions for text you expect the answer to repeat, such as a file the model is editing.24 The usage object counts accepted and rejected prediction tokens, though OpenAI doesn’t describe the mechanism, and rejected tokens are billed at completion-token rates.
As of 5 November 2026, OpenAI’s guide lists only the GPT-4o and GPT-4.1 families. Predicted Outputs doesn’t work with tools, logprobs, n above 1, audio or max_completion_tokens, or with presence and frequency penalties above zero.24 On your own servers, n-gram drafting does a similar job by finding the repeated text in the prompt.
Where these numbers come from
We haven’t run speculative decoding for this post. The speed-ups come from the papers’ authors, the SGLang team and vLLM, each on its own models, hardware and prompts, and the paper results are mostly at a single request. The tokens-per-step table, the 15% step cost and the MTP cross-check are our arithmetic. Engine flags were read on 5 November 2026 and change with most releases.
A decision rule for turning it on
- If most traffic is batch work at high concurrency, start with speculation off, as SGLang’s high-throughput recipe for Mistral Large 4 does.
- If per-user speed matters, as in chat, agents and coding tools, and typical concurrency is low or moderate, turn it on.
- Use a drafter bundled with the checkpoint if there is one. Otherwise use a published EAGLE-3 head for your exact model, n-gram or suffix drafting when outputs repeat the input, and a small same-tokenizer model as the last resort.
- Start near the defaults. The DSpark recipes and SGLang’s auto-tuning use three draft tokens for many models, and vLLM suggests one for MTP.
- Measure acceptance length, time per output token, peak throughput and memory headroom on your own prompts, at one request, typical load and peak.
- Keep it if time per output token falls at typical load and peak throughput holds. If peak throughput drops, cap the draft length by batch size or switch speculation off above that load.
- Leave relaxed acceptance settings off unless a before-and-after quality evaluation passes with them on.
- Replace the EAGLE-3 head whenever you change the target checkpoint, because it was trained on the old model’s hidden states.
-
Leviathan, Kalman and Matias (Google Research), “Fast Inference from Transformers via Speculative Decoding”, arXiv 2211.17192, 30 November 2022, https://arxiv.org/abs/2211.17192 ↩↩↩↩↩↩
-
Chen et al. (DeepMind), “Accelerating Large Language Model Decoding with Speculative Sampling”, arXiv 2302.01318, 2 February 2023, https://arxiv.org/abs/2302.01318 ↩↩↩↩↩↩↩
-
vLLM, “Day 0 support for Mistral Large 4 on vLLM”, 29 October 2026, https://vllm.ai/blog/2026-10-29-mistral-large-4 ↩↩↩↩↩↩↩↩↩↩
-
Li et al., “EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test”, arXiv 2503.01840, 3 March 2025, https://arxiv.org/abs/2503.01840 ↩↩↩↩↩↩↩↩
-
vLLM docs, “Dynamic Speculative Decoding”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/dynamic_speculative_decoding/ ↩↩↩
-
vLLM docs, “Speculative Decoding”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/ ↩↩↩↩↩↩↩
-
vLLM docs, “Per-Request Acceptance Metrics”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/acceptance_metrics/ ↩↩
-
vLLM docs, “Adaptive Verification”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/adaptive_verification/ ↩↩↩
-
Cai et al., “Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads”, arXiv 2401.10774, 19 January 2024, https://arxiv.org/abs/2401.10774 ↩↩
-
DeepSeek-AI, “DeepSeek-V3 Technical Report”, arXiv 2412.19437, 27 December 2024, https://arxiv.org/abs/2412.19437 ↩↩
-
SGLang docs, “Speculative Decoding”, read 5 November 2026, https://docs.sglang.io/docs/advanced_features/speculative_decoding ↩↩↩↩
-
SGLang, Mistral Large 4 cookbook, read 5 November 2026, https://docs.sglang.io/cookbook/autoregressive/Mistral/Mistral-Large-4 ↩↩↩
-
NVIDIA, TensorRT-LLM docs (1.4.0rc2), “Speculative Decoding”, read 5 November 2026, https://nvidia.github.io/TensorRT-LLM/features/speculative-decoding.html ↩↩↩↩↩↩↩
-
vLLM docs, “Suffix Decoding”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/suffix/ ↩
-
Li et al., “EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty”, arXiv 2401.15077, 26 January 2024, https://arxiv.org/abs/2401.15077 ↩↩↩
-
vLLM docs, “EAGLE Draft Models”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/eagle/ ↩
-
vLLM docs, “MTP (Multi-Token Prediction)”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/mtp/ ↩↩
-
SGLang docs, “Adaptive Speculative Decoding”, read 5 November 2026, https://docs.sglang.io/docs/advanced_features/adaptive_speculative_decoding ↩
-
vLLM docs, “FLy Verification”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/fly/ ↩
-
Release histories read 5 November 2026: vLLM on PyPI, https://pypi.org/project/vllm/ ; SGLang on PyPI, https://pypi.org/project/sglang/ ; TensorRT-LLM on GitHub, https://github.com/NVIDIA/TensorRT-LLM/releases ↩
-
vLLM docs, “Draft Models”, read 5 November 2026, https://docs.vllm.ai/en/latest/features/speculative_decoding/draft_model/ ↩
-
SGLang, DeepSeek-V3.2 cookbook, section 4.2.3 on multi-token prediction, read 5 November 2026, https://docs.sglang.io/cookbook/autoregressive/DeepSeek/DeepSeek-V3_2 ↩
-
vLLM docs, “vllm bench serve”, read 5 November 2026, https://docs.vllm.ai/en/latest/cli/bench/serve/ ↩
-
OpenAI, “Predicted Outputs” guide, read 5 November 2026, https://developers.openai.com/api/docs/guides/predicted-outputs ↩↩
Frequently asked questions
Does speculative decoding change the model’s output?
Not with the standard rejection sampling rule, which keeps the target model’s output distribution. Greedy runs pick the same tokens in principle, though floating-point differences in batched verification can flip near-ties. Relaxed options such as vLLM’s FLy, lowered SGLang accept thresholds or TensorRT-LLM’s relaxed acceptance for thinking can change outputs.
Does speculative decoding improve throughput?
At low and moderate concurrency it usually does, because decoding leaves GPU compute idle. As batches grow that spare compute runs out. In SGLang tests on one H100 reported in the EAGLE-3 paper, EAGLE-3 still gave 1.38 times the throughput at batch 64, while the original EAGLE fell below baseline from batch 24.
What is acceptance length in speculative decoding?
The average number of tokens each verification step produces. vLLM counts it as 1 plus the accepted draft tokens per step, so with k draft tokens it runs from 1 to k+1. The speed-up can’t exceed it, because a speculative step never costs less than a normal decoding step.
What is the difference between EAGLE-3 and multi-token prediction?
EAGLE-3 is a small draft head trained separately for one specific model, reading that model’s features from low, middle and high layers. Multi-token prediction modules are trained with the model itself, as in DeepSeek-V3, and ship in its checkpoint.
How do I enable speculative decoding in vLLM?
Pass a JSON object to --speculative-config with a method such as eagle3, mtp, draft_model or ngram, the draft model where the method needs one, and num_speculative_tokens. As of 5 November 2026 the older --speculative-model flag is deprecated.
Does temperature affect speculative decoding?
Yes, higher temperature lowers acceptance. In the original Google paper, acceptance on a translation task fell from 0.75 at temperature 0 to 0.62 at temperature 1, and the speed-up from 3.4 to 2.6 times. vLLM’s probabilistic draft sampling recovers part of the loss at high temperatures.
Building something like this?
9io is a small team of senior engineers with a fractional CTO. We work by the hour, and plans start at $5,000. Send us a note about your product. The reply comes from the person who'd do the work.