cd /news/ai-infrastructure/a100-vllm-speculative-decoding-runs-… · home › topics › ai-infrastructure › article
[ARTICLE · art-181019] src=huggingface.co ↗ pub= topic=ai-infrastructure verified=true sentiment=· neutral

A100 vLLM speculative decoding runs: highest acceptance was slowest

A community benchmark of 82 closed-loop speculative decoding runs on an NVIDIA A100-SXM4-40GB with vLLM 0.33.0 found that the drafter with the highest acceptance length, a standalone Qwen3-0.6B model at k=3, was the slowest configuration at every load level, running at 0.39x to 0.94x of baseline throughput. The one-layer EAGLE-3 speculator head (RedHatAI/Qwen3-8B-speculator.eagle3) doubled single-stream speed on BF16 MT-Bench (154 vs 76 tokens/s, 2.03x) and stayed above 1.00x until roughly 112 requests in flight, while k=1 still beat baseline at 128 concurrent requests (5,011 vs 4,722 tokens/s, 1.06x). The author also reported a hand-written fused INT4 weight-only GEMV CUDA kernel reaching 1,289 GB/s on an RTX PRO 6000 Blackwell, with all runs, Parquet tables and code published on Hugging Face and GitHub.

recommendation

Tune speculative draft length to your concurrency: use k=3 for low-load serving but drop to k=1 near 128 requests in flight, and prefer one-layer speculator heads over standalone draft models, which ran at 0.39x-0.94x of baseline.

more in playbook: Inference and self-hosting
by read7 min views9 publishedDec 3, 2026
A100 vLLM speculative decoding runs: highest acceptance was slowest
Image: Hugging Face Blog

Viewer • Updated • 82 • 79

#

	Highest Acceptance Rate Is Not Fastest Serving: 82 A100 vLLM Runs and a 1,289 GB/s Blackwell INT4 CUDA Kernel

Community Article

Speculative decoding makes a single request faster: a small drafter proposes candidate tokens, and the target model verifies all of them in a single forward pass. On an idle GPU, single-token decode is memory-bandwidth bound, so checking a few extra tokens is almost free.

In production, a GPU rarely serves one user at a time. Once dozens of requests share the batch, the GPU approaches its compute ceiling, and every rejected draft token steals arithmetic from another request.

I wanted concrete, hardware-measured answers to two linked questions:

  1. At the serving layer (vLLM 0.33.0, NVIDIA A100-SXM4-40GB): At what exact concurrency does each speculative drafter stop paying, how does FP8 shift that crossover, and does speculation change greedy outputs?
  2. At the kernel layer (hand-written CUDA C++, RTX PRO 6000 Blackwell & Tesla T4): How close to the DRAM hardware ceiling can a fused 4-bit weight-only GEMV kernel get during single-token decode, and at what batch size do Tensor Cores overtake it?

You can inspect every run interactively in the browser (no login, zero cold start) in my GPU Inference Lab Space, query the full Parquet tables on Hugging Face (ZuhalSicim/spec-decode-under-load), or reproduce both studies from GitHub (spec-decode-under-load and int4-gemv-cuda).

#

	Part 1: 82 Speculative Decoding Runs on an A100

I ran 82 closed-loop benchmarks (64 core matrix runs + 18 targeted sweeps, 0 failed requests, 194 minutes) serving Qwen/Qwen3-8B (BF16) and Qwen/Qwen3-8B-FP8 (W8A16 Marlin on Ampere sm_80) across two workloads (all 1,034 Spider dev SQL prompts and 80 MT-Bench first turns) at 1, 8, 32, and 128 concurrent requests in flight with prefix caching disabled and greedy decoding (temperature=0).

	1. The highest acceptance length was the slowest at every single load

A standalone draft model (Qwen3-0.6B, k = 3) achieved the highest mean acceptance length in the entire campaign: 3.22 tokens/step on Spider (0.738 acceptance rate) and 2.70 tokens/step on MT-Bench (0.567), comfortably ahead of EAGLE-3 ( 2.19 on Spider, 2.30 on MT-Bench).

Yet Qwen3-0.6B slowed down every single run (0.39x to 0.94x of baseline):

  • On BF16 MT-Bench at c1 , throughput fell from76 to47 tokens/s (0.62x ), and median TTFT jumped from30 ms to130 ms .
  • Running three full 28-layer draft passes per engine step costs more latency than verifying three tokens saves. Single-layer speculator heads win because their draft latency per step is tiny, not because their acceptance rate is highest.

	2. EAGLE-3 (`k = 3`) pays up to ~112 in flight, and `k = 1` still wins at `c128`

The one-layer RedHatAI/Qwen3-8B-speculator.eagle3 head keeps draft cost minimal:

  • On BF16 MT-Bench, k = 3 doubles single-stream speed (154 vs76 tok/s,2.03x ), delivers1.86x atc8 and1.59x atc32 (3,007 vs1,891 tok/s), and crosses below1.00x around**112 requests in flight** (0.94x atc128 ). On Spider it crosses around127 in flight.
  • Sweeping draft length (k = 1, 3, 5 ) shows how tightlyk should match concurrency:k = 5 crosses below1.00x around48 in flight (0.75x atc128 ), whereas**k = 1 (1.67 tok/step) still beats baseline at c128 (5,011 vs 4,722 tok/s, 1.06x, $0.045 per million output tokens at $0.816/hr)** .
  • Prompt n-gram lookup (k = 3 ) gives a modest1.08x to1.19x win atc1 , crosses below1.00x at6 to18 requests in flight, and drops to0.46x to0.55x atc128 .

	3. Stacking FP8 + EAGLE-3 hits `221` tok/s (`4 ms` TPOT), shifting crossover earlier

Halving weight traffic with Qwen3-8B-FP8 expands KV cache capacity (133,760 to 179,696 tokens) and pushes fp8-eagle3-k3 to 221 output tokens/s (4 ms median TPOT, 1.88x over fp8-none and 2.91x over bf16-none) at c1. Because FP8 reaches the compute ceiling sooner, EAGLE-3's crossover shifts down from ~112 to ~50 in flight on MT-Bench (and ~127 to ~28 on Spider), even though acceptance rates stay unchanged ( 0.435 vs 0.434).

	4. `VLLM_BATCH_INVARIANT=1` eliminates 100% of speculative token splits

Under default kernels, bf16-eagle3-k3 matched bf16-none token-for-token on 1,012 / 1,034 Spider prompts at c1 and 996 to 1,000 / 1,034 at c8 to c128: the exact same drift rate seen when comparing bf16-none against itself across batch sizes (998 to 1,002 / 1,034).

  • Enabling VLLM_BATCH_INVARIANT=1 made bf16-eagle3-k3-batchinv matchbf16-none-batchinv on**1,034 / 1,034 Spider prompts at c8 (1.56x faster) and 1,034 / 1,034 at c128 (1.03x faster)** with zero divergences.
  • Re-querying all 1,192 non-batch-invariant splits found both competing tokens inside the top 20 on1,192 / 1,192 splits (499 with a logprob gap below0.01 , median0.1250 ). Across all45 scored Spider runs, SQL execution accuracy stayed between67.8% and68.9% (every paired sign testp >= 0.180 ).
Setup Workload Output tok/s ( c1 / c8 / c32 / c128 ) Speedup vs baseline Median TPOT ( c1 / c128 ) Stops paying at
bf16-none MT-Bench 76 / 554 / 1,891 / 4,722 1.00 / 1.00 / 1.00 / 1.00 13 / 22 ms baseline
bf16-eagle3-k3 MT-Bench 154 / 1,027 / 3,007 / 4,424 2.03 / 1.86 / 1.59 / 0.94 6 / 25 ms ~112 in flight
bf16-eagle3-k1 MT-Bench 123 / - / - / 5,011 1.62 / - / - / 1.06 8 / 22 ms still pays at 128
bf16-ngram-k3 MT-Bench 91 / 602 / 1,782 / 2,593 1.19 / 1.09 / 0.94 / 0.55 11 / 45 ms ~18 in flight
bf16-draft_model-k3 MT-Bench 47 / 325 / 1,174 / 3,245 0.62 / 0.59 / 0.62 / 0.69 20 / 28 ms never ( <= 1 )
fp8-eagle3-k3 MT-Bench 221 / 1,414 / 2,862 / 3,626 1.88 / 1.72 / 1.10 / 0.79 4 / 31 ms ~50 in flight

#

	Part 2: What 4-Bit Weights Buy at the CUDA Kernel Level (Blackwell & T4)

To connect system-level serving back to the memory-bandwidth roofline, I wrote a fused 4-bit weight-only CUDA GEMV kernel (int4-gemv-cuda, group size 128, 128-bit coalesced loads, register-only mantissa unpacking, float32 accumulation, 0 register spills under nvcc 12.8 and 13.5) and timed it with cold-L2 CUDA graphs cycling through 12 to 47 weight copies across three NVIDIA generations:

  • NVIDIA RTX PRO 6000 Blackwell Server Edition (sm_120, 96 GB GDDR7, 1,598 GB/s peak, 1,530 GB/s plain-read ceiling):
    • At batch 1 across 7B and 70B shapes, the fused 4-bit kernel reaches 1,030 to 1,289 GB/s ( 2.91x to3.57x faster thanfp16 cuBLAS at1,301 to1,435 GB/s ,< 5.9% p10 to p90 spread across all96 configs).
    • It matches PyTorch's bfloat16`` tinygemm (1,018 to1,347 GB/s ) with**10x lower worst-case relative error** againstfloat64 (2.16e-04 vs2.14e-03 ,144/144 correctness checks passed).
    • Dequantizing to fp16 before calling cuBLAS collapses to215 GB/s (0.60x ) because writingfp16 back to DRAM throws away the bandwidth win.
    • Because the kernel uses FP32 CUDA cores, it stays 1.28x to1.53x faster thanfp16 cuBLAS throughbatch 8 , before Tensor-Corefp16 cuBLAS overtakes it at batch 16 (0.50x to0.69x ).
  • At batch 1 across 7B and 70B shapes, the fused 4-bit kernel reaches
  • Tesla T4 (sm_75, 320 GB/s peak, 269 GB/s plain read):182 to199 GB/s median (2.78x to2.99x overfp16 cuBLAS, up to259 GB/s before the70 W board limit steps clocks down), staying ahead through batch 4.

#

	Practical Takeaways
  1. Measure latency per step at real concurrency, not acceptance length alone. A drafter with3.22 tokens/step can still be0.62x slower end-to-end.
  2. Match k to traffic load. Keep EAGLE-3k = 3 for interactivec1 toc32 , drop tok = 1 near saturation (c64 toc128 ), and disable prompt n-gram lookup above ~10 to 15 requests in flight.
  3. Never materialize dequantized weights to DRAM during low-batch decode, and switch to Tensor-Core W4A16 (such as Marlin) once batch sizes cross ~8.
  4. Use VLLM_BATCH_INVARIANT=1 for CI regression gates. You keep1.56x faster evaluation atc8 with bit-exact greedy parity (1,034 / 1,034 ).

#

	Reproduce & Load the Data
from datasets import load_dataset

runs = load_dataset("ZuhalSicim/spec-decode-under-load", "runs", split="train")
splits = load_dataset("ZuhalSicim/spec-decode-under-load", "logprob_splits", split="train")

I build and run production LLM systems (Python, FastAPI, vLLM on Kubernetes/OpenShift, RAG, MCP, CI evaluation) with 4 upstream fixes merged into llama.cpp, SciPy, ClickHouse, and solver-benchmark. I am open to Senior AI / ML and LLM inference engineering roles in Germany or EMEA remote. Feel free to reach out via zuhalsicimkaradavut.com.

── more in #ai-infrastructure 4 stories · sorted by recency
── more on @vllm 0.33.0 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/a100-vllm-speculativ…] indexed:0 read:7min 2026-12-03 · —