Gradient Checkpointing
A deep learning memory optimization technique that stores only a subset of intermediate activations during the forward pass and recomputes the remaining activations during the backward pass in order to save GPU memory, at the cost of additional computation.
Timeline (last 90 days)
Gradient checkpointing and ZeRO reduce average memory along two dimensions—single-GPU activations and cross-GPU state—respectively, but neither schedules for instantaneous peaks within a training step.
Gradient checkpointing (activation recomputation) does not save all intermediate activations during the forward pass, retaining them only at a few checkpoints, and recomputes the missing activations from the nearest checkpoint during backpropagation.
Gradient accumulation does not change the activation peak of a single forward pass, so it cannot replace gradient checkpointing.
Gradient checkpointing is a technique that trades compute for memory, reducing memory usage from proportional to the number of layers to proportional to the checkpoint interval.
4-bit quantization, gradient checkpointing, and small-scale proxy-model pre-experiments can bring down the GPU requirements of experiments during the queueing period, reducing the number of trials once the cards are actually obtained.
Gradient checkpointing and mixed-precision training (FP16/BF16) are common memory-reduction measures.
Gradient Checkpointing trades recomputation for memory space and can reduce activation memory by approximately 60–70%.
Gradient checkpointing technology trades approximately 33% additional computational overhead for approximately 60–70% savings in GPU memory.
All Facts (9)
Gradient checkpointing and ZeRO reduce average memory along two dimensions—single-GPU activations and cross-GPU state—respectively, but neither schedules for instantaneous peaks within a training step.
50%UnverifiedGradient checkpointing (activation recomputation) does not save all intermediate activations during the forward pass, retaining them only at a few checkpoints, and recomputes the missing activations from the nearest checkpoint during backpropagation.
50%UnverifiedGradient accumulation does not change the activation peak of a single forward pass, so it cannot replace gradient checkpointing.
50%UnverifiedGradient checkpointing is a technique that trades compute for memory, reducing memory usage from proportional to the number of layers to proportional to the checkpoint interval.
50%Unverified4-bit quantization, gradient checkpointing, and small-scale proxy-model pre-experiments can bring down the GPU requirements of experiments during the queueing period, reducing the number of trials once the cards are actually obtained.
50%UnverifiedGradient checkpointing and mixed-precision training (FP16/BF16) are common memory-reduction measures.
50%UnverifiedGradient Checkpointing trades recomputation for memory space and can reduce activation memory by approximately 60–70%.
50%UnverifiedGradient checkpointing technology trades approximately 33% additional computational overhead for approximately 60–70% savings in GPU memory.
50%Unverified梯度检查点是一种用时间换空间的策略,通常能减少60-70%的显存占用,代价是约30%的额外计算时间
50%