r/lightbitslabs • u/Accurate_Funny6679 • 14d ago
Stop sizing private LLM inference based on model weights—your KV cache is what actually kills VRAM
If you’re architecting private inference clusters for internal enterprise use, optimizing GPU utilization like a public API provider (vLLM/TGI setup) will bite you.
Token sellers want 95% utilization to maximize revenue/GPU. For internal infrastructure, 95% utilization at 9 AM on Monday is an incident. Your goal is the smallest cluster that serves peak load with acceptable headroom.
The biggest issue I keep seeing in capacity planning is ignoring or underestimating KV cache growth:
- Weights are static: A quantized 70B model takes up fixed VRAM regardless of traffic.
- KV cache is dynamic: Every active token produces Key and Value vectors across every layer. It grows linearly with context length and concurrency
- The scale imbalance: At long context (e.g., 32k–100k+ tokens), the KV cache quickly dwarfs the actual model weights. If you run out of VRAM for the cache, your options are dropping context, extreme paging latency (vLLM PagedAttention helps, but doesn't erase physics), or full prefill re-runs.
If you're just adding an arbitrary "+30% VRAM headroom" guess, you're either overspending hundreds of thousands on unneeded H100s/A100s or setting yourself up for OOM cascades during peak spikes.
I wrote up a complete breakdown on how to calculate the KV cache sizing sequence and properly budget peak headroom for private inference here: Right-Sizing Private Inference for the Enterprise
