Skip to main content

Speculative decoding: same server, twice as fast or half as fast

Date
Lane
L1Desk-scale inference
Kind
Result
Preregistration
Not preregistered
Authors
Stephen J. Ronan, MD, RonanLabs
Receipts
3 linked sources

Verdict

A drafter speeds up text it can guess and slows down text it cannot. A speculative-decoding number without tokens per step does not tell you which case you are in.

Headline numbers

Fig. 1

77.6tok/s

One user, real text, with the drafter

With the drafter77.6 tok/s

Without the drafter43.9 tok/s

DeepSeek-V4-Pro-0813 on two DGX Station GB300s with RTX PRO 6000 sidecars; private prompts, thinking off, mean of three runs. Against 43.9 tok/s without the drafter. First drafter configuration, which later hung and was replaced

Fig. 2

21.6tok/s

One user, random token ids, with the drafter

With the drafter21.6 tok/s

Without the drafter37.6 tok/s

Same stack and drafter; 8,192 random-token prompts, 1,024 forced tokens out, mean of three runs. Against 37.6 tok/s without the drafter

Fig. 3

37.1tok/s

One user, random token ids, drafter with skip-draft

Drafter with skip-draft37.1 tok/s

Drafter, no skip29.6 tok/s

No drafter37.6 tok/s

Final stack. Same-session comparison against 29.6 tok/s with guess length set by recent acceptance and no skip; level with 37.6 tok/s for no drafter

Fig. 4

1.47x

Run-to-run spread, one user, public chat prompts

7611293

ShareGPT first turns, thinking off, sidecars on, same server; three runs of three fresh prompts at 76, 112 and 93 tok/s, 2.9, 5.2 and 3.4 tokens per step

The question

A drafter is a small model that guesses the next few tokens. The big model checks every guess in one step and keeps them up to the first miss, so the output does not change. I wanted to know how much DeepSeek's bundled drafter speeds up DeepSeek-V4-Pro on our two DGX Stations, and why the answer moves so much with the prompt.

What we found

With the drafter, one user on real text went from 43.9 to 77.6 tok/s. On random token ids the same drafter took one user from 37.6 down to 21.6. Model, machines and settings stayed the same, and only the text changed.

The step costs explain it. A step without the drafter takes 22.6 ms. A step that guesses and checks five tokens takes about 38 ms, so the drafter pays only above about 1.7 tokens per step. Real text gave about 2.9 tokens per step, which predicts about 1.73x, and we measured 1.77. Random ids gave 1.02, which predicts about 0.61x, and we measured 0.58.

Line chart of speed with the drafter over speed without it, against tokens accepted per step, with the break-even point and the measured real-text and random-id points

Real text swings too. On 24 single-user runs on public text, chat prompts with thinking off and sidecars on ran 76, 112 and 93 tok/s in three runs, at 2.9, 5.2 and 3.4 tokens per step. News articles were steadier at 93 to 96.

The gain also shrinks with load. On our private test prompts the drafter took one user from 43.9 to 76.6 (1.74x) and 16 users only from 230.8 to 303.6 (1.32x).

For the worst case, letting the engine drop to one guess when guesses keep missing got random ids to 29.6. Skipping the draft pass when no guess will be checked brought them to 37.1, level with no drafter (37.6), and real text kept its gain. Flips against a stock run stayed at 3.66% with skipping on and 3.64% with it off.

Bar chart of one user on random-id prompts: no drafter, drafter always guessing five, drafter limited to one guess, drafter with skip-draft

What it does not show

  • The 43.9 to 77.6 and 43.9 to 76.6 comparisons use private prompts, so they cannot be rerun from the repo. The public-text runs can.
  • The 77.6 figure comes from the first drafter configuration, which later hung on a GSM8K run and was replaced by a fixed one.
  • The 38 ms drafting step, the 1.7 break-even and the predicted ratios are computed from logged time per token and acceptance length.
  • This is one model and one drafter on one pair of Stations. Before trusting a gain on your own traffic, measure tokens per step on it.

The drafter ships with DeepSeek-V4-Pro, and all of this runs on vLLM.