# A100 vLLM speculative decoding runs: highest acceptance was slowest

> Source: <https://huggingface.co/blog/ZuhalSicim/speculative-decoding-under-load-a100>
> Published: 2026-12-03 12:50:06+00:00

**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 the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

[Viewer • Updated  •  82 •  79](https://huggingface.co/datasets/ZuhalSicim/spec-decode-under-load)    

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

 [Community Article](https://huggingface.co/blog/community)

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](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)).

## 
		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 from`76` to`47` tokens/s (`0.62x` ), and median TTFT jumped from`30 ms` to`130 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` 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.
- 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`)** .
- 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` .

### 
		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` 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.
- 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` ).

| 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](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:

- **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` 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).
  - 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).
  - Dequantizing to `fp16` before calling cuBLAS collapses to`215 GB/s` (`0.60x` ) because writing`fp16` back to DRAM throws away the bandwidth win.
  - 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` ).
- 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` 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.

## 
		Practical Takeaways
	

1. **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.
2. **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.
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 keep`1.56x` faster evaluation at`c8` with bit-exact greedy parity (`1,034 / 1,034` ).

## 
		Reproduce & Load the Data
	

``` python
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](https://huggingface.co/spaces/ZuhalSicim/gpu-inference-lab)
- **Parquet Dataset:**[huggingface.co/datasets/ZuhalSicim/spec-decode-under-load](https://huggingface.co/datasets/ZuhalSicim/spec-decode-under-load)
- **Repositories:**[spec-decode-under-load](https://github.com/zuhalsicim/spec-decode-under-load) ·[int4-gemv-cuda](https://github.com/zuhalsicim/int4-gemv-cuda)
- **Portfolio & Verified Results:**[zuhalsicimkaradavut.com](https://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](https://zuhalsicimkaradavut.com).*
