Activation Memory, With and Without Recompute
Megatron-LM's activation-recomputation paper gives the activation memory one transformer layer must keep for its backward pass, in bytes:
with the sequence length, the microbatch size, the hidden size, and the number of attention heads.
For , , , in a 32-layer model, how much activation memory does one microbatch hold, and what does full recomputation change?
Sign in to answer questions and track your progress
Sign In