#
Highest Acceptance Rate Is Not Fastest Serving: 82 A100 vLLM Runs and a 1,289 GB/s Blackwell INT4 CUDA Kernel
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:
- 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? - 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 from76to47tokens/s (0.62x), and median TTFT jumped from30 msto130 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 = 3doubles single-stream speed (154vs76tok/s,2.03x), delivers1.86xatc8and1.59xatc32(3,007vs1,891tok/s), and crosses below1.00xaround**112requests in flight** (0.94xatc128). On Spider it crosses around127in flight. - Sweeping draft length (
k = 1, 3, 5) shows how tightlykshould match concurrency:k = 5crosses below1.00xaround48in flight (0.75xatc128), whereas**k = 1(1.67tok/step) still beats baseline atc128(5,011vs4,722tok/s,1.06x,$0.045per million output tokens at$0.816/hr)** . - Prompt n-gram lookup (
k = 3) gives a modest1.08xto1.19xwin atc1, crosses below1.00xat6to18requests in flight, and drops to0.46xto0.55xatc128.
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=1madebf16-eagle3-k3-batchinvmatchbf16-none-batchinvon**1,034 / 1,034Spider prompts atc8(1.56xfaster) and1,034 / 1,034atc128(1.03xfaster)** with zero divergences. - Re-querying all
1,192non-batch-invariant splits found both competing tokens inside the top 20 on1,192 / 1,192splits (499with a logprob gap below0.01, median0.1250). Across all45scored 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/speak,1,530 GB/splain-read ceiling):- At batch 1 across 7B and 70B shapes, the fused 4-bit kernel reaches
1,030to1,289 GB/s(2.91xto3.57xfaster thanfp16cuBLAS at1,301to1,435 GB/s,< 5.9%p10 to p90 spread across all96configs). - It matches PyTorch's
bfloat16`` tinygemm(1,018to1,347 GB/s) with**10xlower worst-case relative error** againstfloat64(2.16e-04vs2.14e-03,144/144correctness checks passed). - Dequantizing to
fp16before calling cuBLAS collapses to215 GB/s(0.60x) because writingfp16back to DRAM throws away the bandwidth win. - Because the kernel uses FP32 CUDA cores, it stays
1.28xto1.53xfaster thanfp16cuBLAS throughbatch 8 , before Tensor-Corefp16cuBLAS overtakes it at batch 16 (0.50xto0.69x).
- At batch 1 across 7B and 70B shapes, the fused 4-bit kernel reaches
- At batch 1 across 7B and 70B shapes, the fused 4-bit kernel reaches
- Tesla T4 (
sm_75,320 GB/speak,269 GB/splain read):182to199 GB/smedian (2.78xto2.99xoverfp16cuBLAS, up to259 GB/sbefore the70 Wboard limit steps clocks down), staying ahead through batch 4.
#
Practical Takeaways
- Measure latency per step at real concurrency, not acceptance length alone. A drafter with
3.22tokens/step can still be0.62xslower end-to-end. - Match
kto traffic load. Keep EAGLE-3k = 3for interactivec1toc32, drop tok = 1near saturation (c64toc128), and disable prompt n-gram lookup above ~10 to 15 requests in flight. - Never materialize dequantized weights to DRAM during low-batch decode, and switch to Tensor-Core W4A16 (such as Marlin) once batch sizes cross ~8.
- Use
VLLM_BATCH_INVARIANT=1for CI regression gates. You keep1.56xfaster evaluation atc8with 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")
- Interactive Lab:huggingface.co/spaces/ZuhalSicim/gpu-inference-lab
- Parquet Dataset:huggingface.co/datasets/ZuhalSicim/spec-decode-under-load
- Repositories:spec-decode-under-load ·int4-gemv-cuda
- Portfolio & Verified Results:zuhalsicimkaradavut.com
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.