KV cache quantization on Qwen3.8 27B: 8-bit is nearly free, 4-bit is not
A r/LocalLLaMA contributor measured KL divergence across 35 weight quants in llama.cpp, ExLlamaV3 and vLLM, finding that an 8-bit KV cache halves memory with essentially no quality change, while a 4-bit cache has a measurable penalty that grows 15-30% deeper…
Why it matters
Gives local inference users a clear rule: turn on an 8-bit KV cache and avoid 4-bit, especially at long context.
What happened
1 min readA r/LocalLLaMA contributor measured KL divergence across 35 weight quants in llama.cpp, ExLlamaV3 and vLLM, finding that an 8-bit KV cache halves memory with essentially no quality change, while a 4-bit cache has a measurable penalty that grows 15-30% deeper into long contexts. vLLM NVFP4 and FP8 checkpoints trailed smaller GGUF quants, largely due to activation quantization.
Our analysis
The methodology is careful: token-level comparison against a bf16 reference, with agentic data up to 64k tokens. The main caveats are that KL divergence doesn't map directly onto task accuracy and only one model was tested. The finding about activation quantization costs in vLLM checkpoints is useful for anyone serving NVFP4 or FP8.