How GPU Memory for 1M Tokens Shrank 150,000x, from 130TB to 890MB

edrevo · reddit · 2026-11-25

A blog post traces the GPU memory needed for a 1M-token conversation from 130TB with Llama 1 65B to 890MB with DeepSeek-V4.1-Flash — a 150,000x reduction in four years. Key stages: FlashAttention (2.5TB), Grouped Query Attention (320GB on Llama 2 70B), Multi-head Latent Attention (68.6GB on DeepSeek-V3), 8-bit KV cache quantization (46.9GB on DeepSeek-V3.2), merged multi-token cache entries (3.4GB on DeepSeek-V4-Flash), and caches shared across layers (890MB). Long-context progress is largely memory engineering, not just brute-force compute.

Original post →

More from Infra

Infra channel →