AI Grimoire

Training / memory

Memory

Backpropagation needs the forward pass’s activations, and at depth that dominates memory. The techniques here recompute what they refused to store, which is almost always the right trade when the alternative is not fitting at all.

1 entry.

Entries

02.04.1
Gradient Checkpointingstandard
Trade recompute for activation memory at segment boundaries.
O(√L)