Activation Amnesia

A transformer's forward pass is identical at training time and at inference time, yet training consumes far more GPU memory for the same batch and sequence length. What is the primary cause?

A

Training requires a bigger KV cache than inference because gradients are cached per token

B

Training must retain intermediate layer activations for the backward pass; inference can discard each layer's activations once the next layer consumes them

C

Training uses a larger vocabulary embedding table than inference

D

Inference always runs in a lower numerical precision than training, which is what shrinks memory