🖥️ AI InfrastructureID:
activation-memoryActivation Memory Estimation
激活显存估算
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of Activation Memory Estimation.
Use Cases
In production engineering, what are the primary use cases for Activation Memory Estimation and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Derive the activation memory formula : explain each factor (2 bytes/element FP16 × layer input elements × positions × samples), why it is independent of parameter count, and why it grows linearly with batch×seq.
2
Worked example: Llama-2 70B (, ), , → ≈134 MB/layer, ≈10.7 GB total; put it beside the static GB and state what each budget scales with (params vs batch×seq) — the complementary relationship.
3
Gradient checkpointing: keep a checkpoint every layers and recompute the forward pass in backward — activation memory drops from to at ~1/3 extra FLOPs; explain the memory-for-compute trade.
4
Which tensors dominate activation memory (the attention score matrix, MLP intermediates, dropout masks), and how selective recomputation reruns only the big ones to minimize overhead.
5
Distinguish activation memory (training) from KV cache (inference): activations are forward intermediates read back by backprop, growing with ; the KV cache stores generated K/V read sequentially once, formula ; why the two budgets must not be conflated.
📖 In-depth Guide:📄 gpu-hardware-and-hbm →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "Activation Memory Estimation"
Single choice pitfall questions with instant feedback and mistake tracking.