In vLLM on NVIDIA H200, a rebuilt 4-bit KV cache outpaces FP8

A single-author preprint finds that vLLM's built-in 4-bit memory for AI chat sessions runs slower than 8-bit on NVIDIA's Hopper chips. It traces why, and releases a replacement kernel that is faster and holds about 60% more conversation history per GPU.

7 min readIIIOpen sourcePreprint, not peer reviewed
Save
A studio photograph of two identical small wooden boxes on warm off-white paper: the left loosely holds a few thick cream card blocks, while the right is packed to the brim with a dense stack of thin cream cards, containing one deep blue card.AI illustration
Illustration: AI generated

What the study shows

Every time a language model produces a word, it rereads its KV cache: the stored keys and values for every earlier word in the conversation. With long contexts and many users at once, reading this memory is the bottleneck. Storing it in fewer bits means fewer bytes to read, so the model should run faster and fit more users on one GPU.

NVIDIA's newer Blackwell chips handle 4-bit numbers in hardware. The older Hopper chips (H100, H200), which make up most of the installed base, do not. So 4-bit values must be unpacked in software inside the attention step. The author measured what this costs in vLLM, a popular open-source serving engine. On an H200, vLLM's 4-bit NVFP4 option was about 1.4 to 2.3 times slower than its 8-bit FP8 option per step once eight or more requests ran together.

Using an NVIDIA tool that counts executed instructions, the author found two causes. Existing 4-bit kernels (the small programs that do the work on the GPU) ran two to six times more instructions than the chip can issue per byte of memory it reads. They also waited for loading, unpacking and maths to happen one after another instead of overlapping them.

The new kernel overlaps those steps, arranges the stored data when it is written so unpacking is cheap, and reorganises the maths so small groups of queries waste no work. In isolated tests on random data shaped like Llama-3.1-8B, it was about 1.1 to 1.5 times faster than the fastest 8-bit kernel at each of 11 sizes tested. That includes a proposed FlashAttention-4 path not yet merged into vLLM.

Inside vLLM, the author pairs the kernel with an accuracy recipe built from known techniques: subtracting the average key value, rotating keys, keeping the first four tokens and the first layer in full 16-bit precision. On Llama-3.1-8B, each generation step was about 1.1 to 1.6 times faster than FP8 with eight or more requests, and level with a single request. The cache held 1.63 times as many tokens.

Under a simulated stream of reasoning-style requests (short prompts, long answers), the highest request rate one H200 could sustain while meeting latency targets rose by about a quarter on Llama-3.1-8B and roughly doubled on Qwen2.5-72B. The author attributes most of this to the larger cache. On five models from 7 to 32 billion parameters, repeated maths tests (MATH-500) showed no significant accuracy difference from full 16-bit memory.

The paper also explains a known failure. Qwen2-family reasoning models collapse to near-zero maths scores under ordinary 8-bit memory in vLLM, with no error message. The author shows the cause in the first layer comes almost entirely from a fixed bias in the model's weights, and that keeping only that layer in 16-bit restores accuracy. The collapse and bias were reported in earlier work; the paper credits it.

Our reading

In our reading, the most useful part of this paper is the diagnosis, not the speed number. It shows that turning on a 4-bit memory option in vLLM on Hopper today saves memory but costs speed. Many teams would assume the opposite. The paper also documents two silent traps: vLLM quietly falls back to a slower 8-bit kernel if a network check fails, and Qwen2-family reasoning models can break under 8-bit memory without any warning.

The headline gains are real but conditional. They appear when many long answers are generated at once and memory is the limit, which matches reasoning and agent workloads. With one user, or with long prompts and short answers, the new path is level or slower, because its prompt-processing stage is about 7% slower. A practical example: a team serving a 70-billion-parameter model on one H200 for long chain-of-thought answers could plausibly handle up to twice the request rate, while a team summarising long documents into short replies would see no benefit.

We rate this Level III on our readiness scale: benchmarked against strong baselines, with code released. It is a preprint from one author, measured on one university cluster, and not peer reviewed.

Free membership

Read the rest of this story

Membership is free. You get every article in full, and can save stories and follow topics.

We send a sign-in link, no password needed. Already a member? Sign in

Readiness assessment

III
Open source
LevelStatusEvidence
I  Lab onlyMetWorking kernel and a full in-vLLM plugin, with measured results beyond a lab prototype.
II  BenchmarkedMetBenchmarked against FlashInfer FA2 and XQA FP8, FlashAttention-4 native FP8, FOSCAR, BitDecoding and vLLM's own 4-bit paths. Also tested with vLLM's own bench tools, MATH-500, wikitext-2 perplexity and LongBench/RULER-style tests. Note these are the author's own runs on public tasks, not an independent leaderboard.
III  Open sourceMetThe paper states code is available at https://github.com/thomaszhang2661/kv4-hopper. I could not check the repository or its licence from the paper alone.
IV  In productionNot yetNo documented use by a named organisation in production. The vLLM issues and PRs are open and the plugin is not merged into vLLM or FlashInfer. The paper lists proposing it upstream as a next step.

What would move it up
Level 4 needs documented production use by a named organisation, or upstream adoption in vLLM or FlashInfer with independent reproduction. Useful steps: fix the prefill slowdown, close the batch-1 gap, and cover more head sizes and tensor parallelism. Tests on real traffic traces, other models and other GPUs would also help.

The study

Jian Zhang. Fast 4-bit KV-Cache Decoding on Hopper GPUs: Why Existing Kernels Are Slow and How to Fix Them. arXiv, 23 November 2026. Read the paper

Preprint, not peer reviewed · Licence arXiv (no reuse)

Notes

  1. Jian Zhang, Fast 4-bit KV-Cache Decoding on Hopper GPUs, arXiv preprint 2611.30027 (November 2026), not peer reviewed. Source
  2. Code released by the author (repository and licence not checked by us). Source
  3. Kernel level, H200: 1.12–1.49× faster than the faster of XQA FP8 and FlashAttention-4 native FP8 at 11 shapes (Table 5); 67–75% of peak bandwidth at batch 32–128.
  4. In vLLM 0.33, Llama-3.1-8B: 1.12–1.64× per decode step vs FlashInfer FP8 (XQA) at batch 8+, 1.01–1.05× at batch 1 (Table 7); 1.04–1.24× vs FlashAttention-4 FP8 in a development build; cache 2,867,200 vs 1,761,600 tokens (1.63×).
  5. Highest sustainable request rate vs FP8 (reasoning-like stream, one H200): 1.23–1.32× Llama-3.1-8B, 1.45–1.80× Qwen3-32B, 1.67–2.20× Qwen2.5-72B with FP8 weights (Table 9).
  6. vLLM issue on Qwen2-family FP8 KV failure, to which the author posted data. Source

Edited and signed by

Stefan PerdalEditor and publisher142 stories edited

Stefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.

How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

More on Efficiency