Per user, the KV cache at 128K context ranges from about 1.3 GB on DeepSeek V4 Pro to about 42.9 GB on Llama 3.3 70B, a 33x spread. For a busy server it can outweigh the model: 32 users at 128K on Llama 3.3 70B need about 1,374 GB of KV cache against 70.6 GB of FP8 weights.
What the KV cache is
As a model reads a prompt and writes a reply, it stores a small summary of every token so it never has to reprocess them. That store is the KV cache (keys and values). It lives in GPU memory, it grows with every token, and each user gets their own. Weights are a fixed cost. The KV cache scales with how many people you serve and how long their conversations are.
How much each user costs
KV cache for one user at FP16, by context length:
| Model | 8K | 32K | 128K | Weights at FP8 |
|---|---|---|---|---|
| Llama 3.3 70B | 2.7 GB | 10.7 GB | 42.9 GB | 70.6 GB |
| Qwen3 32B | 2.1 GB | 8.6 GB | 34.4 GB | 32.8 GB |
| Gemma 3 27B | 1.1 GB | 3.1 GB | 11.2 GB | 27.4 GB |
| Qwen3 235B-A22B (MoE) | 1.6 GB | 6.3 GB | 25.2 GB | 235 GB |
| gpt-oss-120b | 0.3 GB | 1.2 GB | 4.8 GB | 117 GB |
| GLM-5.1 (754B MoE) | 0.9 GB | 3.6 GB | 14.4 GB | 754 GB |
| DeepSeek V3.2 (671B MoE) | 0.7 GB | 2.8 GB | 11.3 GB | 671 GB |
| Qwen3.5 397B-A17B (MoE) | 0.4 GB | 1.2 GB | 4.2 GB | 397 GB |
| DeepSeek V4 Pro (1.6T MoE) | 0.1 GB | 0.3 GB | 1.3 GB | 1,600 GB |
Computed from each model's config file. "Past limit" means the model does not support that length. Linear-attention state is included for Qwen3.5.
Why it varies so much between models
- Grouped-query attention (Llama, Qwen3, Mistral) shares keys and values across groups of attention heads. Still the largest cache per token among current designs.
- Sliding windows (gpt-oss, Gemma 3) make some layers remember only the last few hundred or thousand tokens, so those layers stop growing.
- Latent attention, or MLA (DeepSeek, Kimi, GLM-5) stores one compressed vector per token instead of full keys and values.
- Hybrid linear attention (Qwen3.5) uses a fixed-size state in three of every four layers. Only one layer in four keeps a growing cache.
- Compressed attention (DeepSeek V4) keeps one cache entry per 4 or per 128 tokens in most layers. That is how a 1.6T model handles 1M tokens.
How to plan for it
- Size for real traffic. Multiply the users you serve at the same time by the context they actually use, not the maximum the model allows.
- Use an FP8 KV cache. It halves the numbers above and is supported by vLLM, SGLang and TensorRT-LLM on H100 and newer.
- Cap context where you can. A support bot rarely needs 128K. Setting a lower limit frees memory for more users.
- Weigh architecture when you pick a model. For long documents and many users, an MLA or hybrid model can serve several times more users on the same hardware.
Run your own numbers in the VRAM calculator.
Questions
What is the KV cache in an LLM?
Stored keys and values for every token in a conversation, kept in GPU memory so the model doesn't recompute them. It grows with context length and with each user.
Does FP8 KV cache hurt quality?
Usually very little. It halves KV memory and is widely used in production, but test it on your own prompts.
How much KV cache does Llama 3.3 70B need at 128K?
About 42.9 GB per user at FP16, or half that at FP8.
- Llama 3.3 70B: config.json and model card, checked Nov 10, 2026
- Qwen3 32B: config.json and model card, checked Nov 10, 2026
- Gemma 3 27B: config.json and model card, checked Nov 10, 2026
- Qwen3 235B-A22B (MoE): config.json and model card, checked Nov 10, 2026
- gpt-oss-120b: config.json and model card, checked Nov 10, 2026
- GLM-5.1 (754B MoE): config.json and model card, checked Nov 10, 2026
- DeepSeek V3.2 (671B MoE): config.json and model card, checked Nov 10, 2026
- Qwen3.5 397B-A17B (MoE): config.json and model card, checked Nov 10, 2026
- DeepSeek V4 Pro (1.6T MoE): config.json and model card, checked Nov 10, 2026