179 questions
No questions match those filters.
← All questions
Inference & ServingHard· Memory Optimization· Checkpointing· Recomputation
When should you use activation checkpointing vs. activa...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansActivation checkpointing is applied at layer boundaries (such as matmuls or full transformer blocks) to reduce peak memory usage when the model does not fit in GPU RAM, though it carries a real runtime cost because these layers are compute-bound. In contrast, activation recomputation is applied inside memory-bound kernels (like elementwise activations or normalization) to speed up the backward pass. Because the compute units are idle during these memory-bound operations, the recomputation cost is effectively zero.