{"slug": "a100-vllm-speculative-decoding-runs-highest-acceptance-was-slowest", "title": "A100 vLLM speculative decoding runs: highest acceptance was slowest", "summary": "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.", "body_md": "[Viewer • Updated  •  82 •  79](https://huggingface.co/datasets/ZuhalSicim/spec-decode-under-load)    \n\n# \n\t\tHighest Acceptance Rate Is Not Fastest Serving: 82 A100 vLLM Runs and a 1,289 GB/s Blackwell INT4 CUDA Kernel\n\t\n\n [Community Article](https://huggingface.co/blog/community)\n\nSpeculative 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.\n\nIn 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.\n\nI wanted concrete, hardware-measured answers to two linked questions:\n\n1. **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?\n2. **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?\n\nYou can inspect every run interactively in the browser (no login, zero cold start) in my [GPU Inference Lab Space](https://huggingface.co/spaces/ZuhalSicim/gpu-inference-lab), query the full Parquet tables on Hugging Face ([ZuhalSicim/spec-decode-under-load](https://huggingface.co/datasets/ZuhalSicim/spec-decode-under-load)), or reproduce both studies from GitHub ([spec-decode-under-load](https://github.com/zuhalsicim/spec-decode-under-load) and [int4-gemv-cuda](https://github.com/zuhalsicim/int4-gemv-cuda)).\n\n## \n\t\tPart 1: 82 Speculative Decoding Runs on an A100\n\t\n\nI 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`).\n\n### \n\t\t1. The highest acceptance length was the slowest at every single load\n\t\n\nA 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).\n\nYet `Qwen3-0.6B` **slowed down every single run** (`0.39x` to `0.94x` of baseline):\n\n- On BF16 MT-Bench at `c1` , throughput fell from`76` to`47` tokens/s (`0.62x` ), and median TTFT jumped from`30 ms` to`130 ms` .\n- 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.\n\n### \n\t\t2. EAGLE-3 (`k = 3`) pays up to ~112 in flight, and `k = 1` still wins at `c128`\n\nThe one-layer `RedHatAI/Qwen3-8B-speculator.eagle3` head keeps draft cost minimal:\n\n- On BF16 MT-Bench, `k = 3` doubles single-stream speed (`154` vs`76` tok/s,`2.03x` ), delivers`1.86x` at`c8` and`1.59x` at`c32` (`3,007` vs`1,891` tok/s), and crosses below`1.00x` around**`112` requests in flight** (`0.94x` at`c128` ). On Spider it crosses around`127` in flight.\n- Sweeping draft length (`k = 1, 3, 5` ) shows how tightly`k` should match concurrency:`k = 5` crosses below`1.00x` around`48` in flight (`0.75x` at`c128` ), 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`)** .\n- Prompt n-gram lookup (`k = 3` ) gives a modest`1.08x` to`1.19x` win at`c1` , crosses below`1.00x` at`6` to`18` requests in flight, and drops to`0.46x` to`0.55x` at`c128` .\n\n### \n\t\t3. Stacking FP8 + EAGLE-3 hits `221` tok/s (`4 ms` TPOT), shifting crossover earlier\n\t\n\nHalving 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`).\n\n### \n\t\t4. `VLLM_BATCH_INVARIANT=1` eliminates 100% of speculative token splits\n\t\n\nUnder 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`).\n\n- Enabling **`VLLM_BATCH_INVARIANT=1`** made` bf16-eagle3-k3-batchinv` match`bf16-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.\n- Re-querying all `1,192` non-batch-invariant splits found both competing tokens inside the top 20 on`1,192 / 1,192` splits (`499` with a logprob gap below`0.01` , median`0.1250` ). Across all`45` scored Spider runs, SQL execution accuracy stayed between`67.8%` and`68.9%` (every paired sign test`p >= 0.180` ).\n\n| Setup | Workload | Output tok/s ( `c1 / c8 / c32 / c128` ) | Speedup vs baseline | Median TPOT ( `c1 / c128` ) | Stops paying at | \n|---|---|---|---|---|---|\n| `bf16-none` | MT-Bench | `76 / 554 / 1,891 / 4,722` | `1.00 / 1.00 / 1.00 / 1.00` | `13 / 22 ms` | baseline | \n| `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 | \n| `bf16-eagle3-k1` | MT-Bench | `123 / - / - / 5,011` | `1.62 / - / - / 1.06` | `8 / 22 ms` | still pays at 128 | \n| `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 | \n| `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` ) | \n| `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 | \n\n## \n\t\tPart 2: What 4-Bit Weights Buy at the CUDA Kernel Level (Blackwell & T4)\n\t\n\nTo connect system-level serving back to the memory-bandwidth roofline, I wrote a fused 4-bit weight-only CUDA GEMV kernel ([int4-gemv-cuda](https://github.com/zuhalsicim/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:\n\n- **NVIDIA RTX PRO 6000 Blackwell Server Edition (`sm_120`, 96 GB GDDR7, `1,598 GB/s` peak, `1,530 GB/s` plain-read ceiling):**\n  - At batch 1 across 7B and 70B shapes, the fused 4-bit kernel reaches **`1,030` to `1,289 GB/s`** (` 2.91x` to`3.57x` faster than`fp16` cuBLAS at`1,301` to`1,435 GB/s` ,`< 5.9%` p10 to p90 spread across all`96` configs).\n  - It matches PyTorch's `bfloat16`` tinygemm` (`1,018` to`1,347 GB/s` ) with**`10x` lower worst-case relative error** against`float64` (`2.16e-04` vs`2.14e-03` ,`144/144` correctness checks passed).\n  - Dequantizing to `fp16` before calling cuBLAS collapses to`215 GB/s` (`0.60x` ) because writing`fp16` back to DRAM throws away the bandwidth win.\n  - Because the kernel uses FP32 CUDA cores, it stays `1.28x` to`1.53x` faster than`fp16` cuBLAS through**batch 8** , before Tensor-Core`fp16` cuBLAS overtakes it at batch 16 (`0.50x` to`0.69x` ).\n- At batch 1 across 7B and 70B shapes, the fused 4-bit kernel reaches \n- **Tesla T4 (`sm_75`, `320 GB/s` peak, `269 GB/s` plain read):**`182` to`199 GB/s` median (`2.78x` to`2.99x` over`fp16` cuBLAS, up to`259 GB/s` before the`70 W` board limit steps clocks down), staying ahead through batch 4.\n\n## \n\t\tPractical Takeaways\n\t\n\n1. **Measure latency per step at real concurrency, not acceptance length alone.** A drafter with`3.22` tokens/step can still be`0.62x` slower end-to-end.\n2. **Match `k` to traffic load.** Keep EAGLE-3`k = 3` for interactive`c1` to`c32` , drop to`k = 1` near saturation (`c64` to`c128` ), and disable prompt n-gram lookup above ~10 to 15 requests in flight.\n3. **Never materialize dequantized weights to DRAM** during low-batch decode, and switch to Tensor-Core W4A16 (such as Marlin) once batch sizes cross ~8.\n4. **Use `VLLM_BATCH_INVARIANT=1` for CI regression gates.** You keep`1.56x` faster evaluation at`c8` with bit-exact greedy parity (`1,034 / 1,034` ).\n\n## \n\t\tReproduce & Load the Data\n\t\n\n``` python\nfrom datasets import load_dataset\n\nruns = load_dataset(\"ZuhalSicim/spec-decode-under-load\", \"runs\", split=\"train\")\nsplits = load_dataset(\"ZuhalSicim/spec-decode-under-load\", \"logprob_splits\", split=\"train\")\n```\n\n- **Interactive Lab:**[huggingface.co/spaces/ZuhalSicim/gpu-inference-lab](https://huggingface.co/spaces/ZuhalSicim/gpu-inference-lab)\n- **Parquet Dataset:**[huggingface.co/datasets/ZuhalSicim/spec-decode-under-load](https://huggingface.co/datasets/ZuhalSicim/spec-decode-under-load)\n- **Repositories:**[spec-decode-under-load](https://github.com/zuhalsicim/spec-decode-under-load) ·[int4-gemv-cuda](https://github.com/zuhalsicim/int4-gemv-cuda)\n- **Portfolio & Verified Results:**[zuhalsicimkaradavut.com](https://zuhalsicimkaradavut.com)\n\n*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](https://zuhalsicimkaradavut.com).*", "url": "https://wpnews.pro/news/a100-vllm-speculative-decoding-runs-highest-acceptance-was-slowest", "canonical_source": "https://huggingface.co/blog/ZuhalSicim/speculative-decoding-under-load-a100", "published_at": "2026-12-03 12:50:06+00:00", "updated_at": "2026-12-03 13:18:27.612996+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "mlops"], "entities": ["vLLM 0.33.0", "NVIDIA A100-SXM4-40GB", "Qwen3-8B", "Qwen3-0.6B", "EAGLE-3", "RTX PRO 6000 Blackwell", "Tesla T4", "Hugging Face"], "also_reported_by": [], "takeaway": "Match draft length k to concurrency: EAGLE-3 at k=3 doubled single-stream throughput (154 vs 76 tok/s) but fell below 1.00x near 112 requests in flight, while k=1 still delivered 1.06x at 128 concurrent requests (5,011 vs 4,722 tok/s).", "recommendation": {"advice": "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.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/a100-vllm-speculative-decoding-runs-highest-acceptance-was-slowest", "markdown": "https://wpnews.pro/news/a100-vllm-speculative-decoding-runs-highest-acceptance-was-slowest.md", "text": "https://wpnews.pro/news/a100-vllm-speculative-decoding-runs-highest-acceptance-was-slowest.txt", "jsonld": "https://wpnews.pro/news/a100-vllm-speculative-decoding-runs-highest-acceptance-was-slowest.jsonld"}}