← All Q&As VRAM Optimization Updated 2026-11-27

Why is DeepSeek-R1 / V3 KV cache 90% smaller than Llama 70B?

⚡ Quick Answer

DeepSeek-V3 and DeepSeek-R1 replace standard GQA KV caching with Multi-Head Latent Attention (MLA), projecting keys and values into a single compressed latent vector (576 dims per layer across 61 layers). At 32K context and 4 concurrent streams, DeepSeek-R1 671B uses only ~8.6 GB of FP16 KV cache—less than one-fifth of what a 70B GQA model uses at the same context.

Standard GQA transformers store separate K and V tensors: 2 × Layers × KV_Heads × Head_Dim × Context × Concurrency × Bytes. DeepSeek's MLA caches the shared compressed latent representation plus decoupled RoPE key (512 + 64 = 576 floats per token per layer), dramatically increasing maximum batch size on 8x H100/H200 nodes.

Test DeepSeek-R1 MLA KV scaling live → Fetch Live JSON Data →