Skip to content

Gradient Checkpointing

A technique for saving VRAM during training: some of the intermediate activations are not stored but recomputed during the backward pass.

Why

When training large models there is not enough GPU memory for all the activations. Checkpointing trades speed for memory: slower, but the model fits.

The Trade-off

  • plus: less memory, so larger models can be trained;
  • minus: an extra pass — training is slower.

See Also

← All Terms