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 α
Checked in Speculative Decoding from First Principles.
Draft, verify, keep what matches
DrafterRequests in the batch
step 1
1
2
×
3
+3 tokensstep 2
×
4
+1 tokenstep 3
5
×
6
+2 tokensstep 4
7
8
9
10
+4 tokensstep 5
×
11
+1 tokenstep 6
12
×
13
+2 tokensstep 7
14
×
15
+2 tokensstep 8
16
×
17
+2 tokens17 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.