🖥️ AI InfrastructureID:
kv-cache-optimizationKV Cache Optimization
KV 缓存优化
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of KV Cache Optimization.
Use Cases
In production engineering, what are the primary use cases for KV Cache Optimization and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Write the KV cache memory formula and explain each factor; roughly how many GB does a 70B (e.g. 80 layers, 64 heads, head dim 128) use at 8K context with batch 1?
2
GQA vs MHA/MQA: why sharing KV heads (e.g. 64 → 8) barely hurts accuracy (attention head redundancy) and how much memory it saves?
3
MLA's low-rank compression: how does compress per-layer KV into a latent; why can the / projections be fused at inference; the 86GB → 5.1GB numbers?
4
KV quantization (INT8/FP8): why are K/V easier to quantize than activations (stable value ranges); the cost of halving memory and how it composes with GQA/MLA?
5
Why must StreamingLLM keep the attention sink (softmax normalization stability, first 4 tokens); how does H2O keep heavy-hitter tokens by cumulative attention score, and how does it differ from sliding windows?
📖 In-depth Guide:📄 kv-cache-and-paged-attention →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "KV Cache Optimization"
Single choice pitfall questions with instant feedback and mistake tracking.