KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)
Summary
Single long X note_tweet + diagram (2026-09-25) by @techNmak explaining that during inference model weights are mostly fixed while per-request KV state grows with every cached token across attention layers. Frames context length and concurrency as GPU-memory costs; notes GQA/MQA (fewer KV heads), KV quantization (fewer bytes), and sliding-window attention (bounded history) as levers; stresses caching avoids recomputing old K/V projections but full attention still reads the cache each decode step. Diagram gives KV bytes = 2×B×T×L×H_kv×d_k×s (example: 8K tokens ≈ 1 GiB at L=32, H_kv=8, d_k=128, FP16). Pure original explainer — no primary paper; one reply promo-linked github.com/kvcachestore/kvcdn-cli.
- Venue
- X / Tech with Mak
- Publisher
- X / Tech with Mak
- Source
- x
- Access
- https://x.com/techNmak/status/2103488645642793165 ; diagram dump /workspace/curator/research/kv-cache-technmak-2103488645642793165-20260926/diagram.jpg
- License
- n/a (X post / educational graphic)
- Language
- en
- Purpose
- Educational systems explainer: why KV cache dominates serving VRAM as context length and concurrency grow, and which architecture levers shrink it
- Scale
- n/a (conceptual explainer); diagram example assumes L=32, H_kv=8, d_k=128, FP16 → ~1 GiB at 8192 tokens
- Domain
- LLM serving; KV cache; GPU memory; attention; inference concurrency
- Used for
- Serving-memory intuition; KV cache sizing; GQA/MQA/quant/sliding-window as capacity levers; teaching prefill vs decode
- Time period
- X post 2026-09-25T14:15:48Z; cataloged 2026-09-26
- Author type
- independent educator / industry
- Added
- Sep 26, 2026
- Verified
- Sep 26, 2026
- Research status
- done
Tags
Topics
LLM serving; KV cache; GPU memory; attention; inference concurrency
Research notes
- Hudson user-fed 2026-09-26. Dedup clean (no prior techNmak / status / KV+serving hit). Walked conversation_id:2103488645642793165 via curator-bot: 7 replies, no arXiv/HF paper; only github.com/kvcachestore/kvcdn-cli (promo reply by @KVCacheStore). Cataloged X post itself as idea (precedent: idea+x for research-worthy explainers). Dump: /workspace/curator/research/kv-cache-technmak-2103488645642793165-20260926/
Similar entries
- Paper Do Transformers Need Three Projections? Systematic Study of QKV Variants
- Thread Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)
- Paper Native Hybrid Attention for Efficient Sequence Modeling
- Paper Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse
- Paper The Surprising Effectiveness of Shared Memory in Looped Transformers
- Other Shard: getting to 10x KV cache compression