# SGLang adds NVFP4 KV cache for longer context on Blackwell GPUs

> Original title: 🚀New blog: Accelerating Long-Context and Agentic Inference with NVFP4 KV Cache

- Source: LMSYS Org
- Published: 2026-09-21T16:44:21.000Z
- Bad Influence: https://badinfluence.news/items/pv79njucchkiw2p18wc8rx8xs
- Original: https://x.com/lmsysorg/status/2102076478183907705

## Summary

LMSYS Org says NVFP4 KV cache in SGLang fits about 1.78x more context into GPU memory and speeds long-context decoding by up to 78%. Built with Alibaba Qwen and NVIDIA for Blackwell, it stores KV at about 56% of FP8's per-token footprint, with decode throughput up 37%, 58%, and 78% at 32K, 160K, and 1M context. The post reports near-lossless accuracy versus FP8 on GPQA-Diamond and AIME 2025 using Qwen3.5-397B-A17B, and it can be enabled with --kv-cache-dtype nvfp4.

## Why it matters

The post gives specific memory and throughput figures for NVFP4 KV cache in SGLang, showing how the format trades cache footprint against long-context decode speed.

## Post

🚀New blog: Accelerating Long-Context and Agentic Inference with NVFP4 KV Cache

4-bit KV cache is here! NVFP4 KV in SGLang packs ~1.78× more context into GPU memory and speeds up long-context decode by up to 78%.

Together with @Alibaba_Qwen and @nvidia, we brought NVFP4 KV cache to Blackwell:
- NVFP4 stores KV in just ~56% of FP8's footprint per token
-️ Decode throughput jumps +37% / +58% / +78% at 32K / 160K / 1M context
- Near-lossless accuracy: matches FP8 on GPQA-Diamond & AIME 2025 (Qwen3.5-397B-A17B)
- Higher cache hit rate keeps AgentX throughput scaling where FP8 drops off

The whole recipe combines NVFP4 two-level scaling, in-kernel dequantization on decode, and paged KV cache, and you can enable it in SGLang with a single flag --kv-cache-dtype nvfp4

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHSwTUz1aUAAbA_d.png&mode=thumb&exp=1795651200&sig=2afe4038e38d0792)
