llama.cpp Introduces Dynamic VBR KV Cache
old-mike · reddit · 2026-07-14
This post introduces the VBR (Variable Bit Rate) KV cache, a new feature in spiritbuun's llama.cpp fork:
- Instead of a fixed KV quantization level for the entire context, it sets a floor, and the cache dynamically steps down quantization levels as the context grows.
- The -ct vbr command automatically calculates the available KV budget based on remaining VRAM and dynamically reduces precision during the decode process.
- Tested on an RTX 3060 12GB compared to fixed quantization:
- Decode TPS is only 4% slower
- TTFT is roughly halved
- Lower VRAM usage
- Automatically adapts to a context of 216k tokens
- The post also mentions a fused kernel bug, for which the author has already reverted the relevant commit.
More from Infra
- Nearly half of Claude revenue now flows through cloud marketplace commitments, up from 11% — BenBajarin · 2026-10-26
- Anthropic ARR goes vertical after price cuts: tokens up 4x, $100B+ ARR back in play — GavinSBaker · 2026-10-26
- Alex Banks argues power caps GPU supply, real risk is demand cooling first — thealexbanks · 2026-10-26
- Analyst: Ant has the most fungible AI workload of any model provider today — BenBajarin · 2026-10-26
- Anthropic S-1: training infra edge cut per-task cost 40% and doubled revenue growth — BenBajarin · 2026-10-26
- Rewriting scaling law study: optimal synthetic data share rises from 10% to 32% with compute — heghbalz · 2026-10-26