Chip Foundry Services Request Assessment

Gradient Checkpointing

Gradient checkpointing (also called activation checkpointing) reduces a training run's peak memory usage by storing only a selected subset of intermediate activations during the forward pass, then recomputing the remaining, non-stored activations on demand during the backward pass rather than keeping every single activation resident in memory throughout. This technique directly trades additional forward-pass recomputation time, since discarded activations must be regenerated during the backward pass, for substantially reduced peak memory usage, letting a larger model or batch size fit within a fixed memory budget than would otherwise be possible without checkpointing.