Blogs / Why Optimizer State Dominates Training Memory

Why Optimizer State Dominates Training Memory

What a Hugging Face post says about why the optimizer state takes a significant share of training memory and what GaLore does about it.

  • Learning
  • 1 min read

For: Learners who know what training a model involves.

Why optimizer state matters

The optimizer state, especially in adaptive optimization algorithms like Adam, represents a significant portion of the memory footprint during model training.[1]

What GaLore does

GaLore addresses this by projecting the gradients into a lower-dimensional subspace before they are processed by the optimizer.[1]

Optimizer state, asin Adama significant portion oftraining memoryProjecting gradientsinto a lower-dimensionalsubspace before theoptimizerGaLoreaddresses the memoryproblem this wayreduced bydone by
What does GaLore do to the gradients?

Sources

  1. GaLore (huggingface.co · checked )

More articles