Zuhal Karadavut
Theme

LLM inference, evaluation and retrieval

spec-decode-under-load

Speculative decoding speeds up one request on an idle GPU, where checking draft tokens is nearly free. Under concurrent vLLM load, rejected guesses take compute from other requests: at what concurrency does each drafter stop paying, and does speculation change greedy answers?

Answer

Across 82 runs on one NVIDIA A100-SXM4-40GB with Qwen3-8B in vLLM 0.33.0 (0 failed requests), BF16 EAGLE-3 with 3 draft tokens reaches 154 tokens/s (2.03 times) at 1 request in flight on MT-Bench, stays ahead through 32 (3,007 tokens/s, 1.59 times), and crosses below baseline around 112 in flight (0.94 times at 128); trimming to 1 draft token still wins at 128 (5,011 against 4,722 tokens/s, 1.06 times). Stacking FP8 weights with EAGLE-3 reaches 221 tokens/s (4 ms median TPOT, 1.88 times over FP8 alone and 221 against 76 tokens/s over BF16) at 1 in flight and stops paying around 50 in flight (28 on Spider). Prompt n-gram lookup stops paying at 6 to 18 in flight and drops to 0.46 times at 128, while the standalone Qwen3-0.6B draft model achieves the highest acceptance length (3.22 tokens/step on Spider) yet runs at 0.39 to 0.94 times everywhere because three full draft-model passes raise median TTFT from 30 to 130 ms. With VLLM_BATCH_INVARIANT=1, EAGLE-3 matches baseline token for token on 1,034 of 1,034 Spider questions at both 8 and 128 in flight while keeping a 1.56 times speedup at 8.

MT-Bench output throughput speedup vs BF16 baseline, Qwen3-8B on A100 (times baseline)
same as baselineEAGLE-3 (k=3), 1 in flight2.03xa100/report/tables.mdEAGLE-3 (k=3), 8 in flight1.86xa100/report/tables.mdEAGLE-3 (k=3), 32 in flight1.59xa100/report/tables.mdEAGLE-3 (k=3), 128 in flight0.94xa100/report/tables.mdEAGLE-3 (k=1), 128 in flight1.06xa100/report/tables.mdQwen3-0.6B draft, 1 in flight0.62xa100/report/tables.md

How it was measured

  • Target model Qwen3-8B in BF16 and official W8A16 FP8, compared across three drafters (prompt n-gram lookup, standalone Qwen3-0.6B, and RedHatAI's one-layer EAGLE-3 head), two workloads (all 1,034 Spider dev SQL prompts and 80 MT-Bench first turns) and four closed-loop concurrency levels (1, 8, 32 and 128 requests in flight), all greedy with prefix caching disabled.
  • Per-run vLLM /metrics counters record drafted and accepted tokens by position; at load 1, client-side tokens per streamed piece independently confirm the engine step yield (2.30 vs 2.29 for BF16 EAGLE-3 and 1.16 vs 1.16 for n-gram on MT-Bench).
  • Token-for-token losslessness and SQL execution accuracy across 45 scored Spider runs (67.8 to 68.9 %, every paired sign test p >= 0.180). Re-querying all 1,192 non-batch-invariant splits found both competing tokens in the top 20 every time (499 with logprob gap below 0.01, median gap 0.1250).
  • Draft-length sweeps at 1, 3 and 5 speculative tokens plus serving cost per million output tokens at 0.816 USD per A100 hour (0.045 USD minimum for BF16 EAGLE-3 at 1 draft token and 128 in flight).

Proof

Every file is pinned to the commit the numbers come from, so the links cannot drift.

Reproduce it

pip install -r requirements-dev.txt
pytest && bash run/dry_run.sh
python -m sdload.analyze results/a100 --price-per-hour 0.816 --currency USD --out results/a100/report

The test suite and mock-engine dry run need no GPU and run in CI on every push. Rebuilding the tables and SVG charts from the 82 committed A100 run files takes a few seconds on CPU; full GPU campaign scripts live in run/.

The repository on GitHub

Limits

  • One GPU (NVIDIA A100-SXM4-40GB, sm_80), one model family (Qwen3-8B) and vLLM 0.33.0. On Hopper or Blackwell GPUs with native FP8 Tensor Cores, high-concurrency FP8 prefill scales further than Ampere's weight-only W8A16 Marlin path.
  • Greedy decoding only, and first turns only on MT-Bench; sampling with nonzero temperature changes acceptance rates, and multi-turn chat with prefix caching alters prefill cost.

Built with

  • Python
  • vLLM
  • EAGLE-3
  • FP8
  • NVIDIA A100
  • SQLite