# KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)

- **ID:** 1066
- **Kind:** idea
- **URL:** https://x.com/techNmak/status/2103488645642793165
- **Authors:** Tech with Mak (@techNmak)
- **Venue:** X / Tech with Mak
- **Publisher:** X / Tech with Mak
- **Published:** 2026
- **Source:** x
- **Language:** en
- **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)
- **License family:** Not stated (auto-classified)
- **Tags:** kv-cache, llm-serving, gpu-memory, gqa, mqa, kv-quantization, sliding-window, attention, prefill-decode, technmak, x-thread, idea
- **Topics:** LLM serving; KV cache; GPU memory; attention; inference concurrency
- **Added:** 2026-09-26
- **Verified:** 2026-09-26
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/1066

## 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.

## Attributes

- **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

## 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

- [Do Transformers Need Three Projections? Systematic Study of QKV Variants](https://papers.projxon.ai/entries/496) (paper, #496)
- [Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)](https://papers.projxon.ai/entries/740) (thread, #740)
- [Native Hybrid Attention for Efficient Sequence Modeling](https://papers.projxon.ai/entries/1253) (paper, #1253)
- [Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse](https://papers.projxon.ai/entries/450) (paper, #450)
- [The Surprising Effectiveness of Shared Memory in Looped Transformers](https://papers.projxon.ai/entries/1255) (paper, #1255)
- [Shard: getting to 10x KV cache compression](https://papers.projxon.ai/entries/621) (other, #621)
