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.
More from Infra
- OpenAI's $1.4T spending commitments make an IPO inevitable, or the AI boom is cooked — GaryMarcus · 2026-11-25
- Even if AI models stop improving, adoption alone demands far more compute — BenBajarin · 2026-11-25
- Looped speculative drafter for Inkling 2 Mini gives 1.57x faster 3-loop decoding — viksit · 2026-11-25
- Pydantic Logfire Agent Sandboxes benchmarked up to 120x faster than rivals — samuelcolvin · 2026-11-25
- Cloudflare ships SQLite-backed Durable Objects write latency cuts — irvinebroque · 2026-11-25
- Report: Jensen Huang holds emergency Nvidia all-hands a day after reinstatement — Polymarket · 2026-11-25