Tool · decoding

Speculative decoding stepper

How does the acceptance rate turn into a speedup, step by step?

How it counts
tokens per step = (1 − α^(k+1)) ÷ (1 − α), for k drafted tokens accepted with probability α
Draft, verify, keep what matches
DrafterRequests in the batch
step 1
1
2
×
3
+3 tokens
step 2
×
4
+1 token
step 3
5
×
6
+2 tokens
step 4
7
8
9
10
+4 tokens
step 5
×
11
+1 token
step 6
12
×
13
+2 tokens
step 7
14
×
15
+2 tokens
step 8
16
×
17
+2 tokens
17 tokens in 8 steps, instead of 8 without speculation
Expected tokens per step
2.53
Step time, without / with
72 / 78 ms
Speed-up per request
2.34×

Teal: drafted tokens the big model agreed with. ×: the first disagreement; everything after it is thrown away. Gold: the big model's own token, which every step produces. A cost model calibrated on Qwen3-8B on an NVIDIA GB10: a step costs at least the time to read the weights (72 ms) and more once the batch has enough tokens to be compute-bound; drafter costs are rough. Acceptances are drawn independently, a simplification.