GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection

Jiawei Zhao, Zhenyu (Allen) Zhang, Beidi Chen, Zhangyang Wang, Anima Anandkumar +1 more
2/12/2026

No official code found. Best implementation: jiaweizzhao/GaLore (1,700 stars, Apache-2.0, last commit 2024-10-28). 1 more below.

Abstract

Training Large Language Models (LLMs) presents significant memory challenges, predominantly due to the growing size of weights and optimizer states. Common memory-reduction approaches, such as low-rank adaptation (LoRA), add a trainable low-rank matrix to the frozen pre-trained weight in each layer, reducing trainable parameters and optimizer states. However, such approaches typically underperform training with full-rank weights in both pre-training and fine-tuning stages since they limit the parameter search to a low-rank subspace and alter the training dynamics, and further, may require full-rank warm start. In this work, we propose Gradient Low-Rank Projection (GaLore), a training strategy that allows full-parameter learning but is more memory-efficient than common low-rank adaptation methods such as LoRA. Our approach reduces memory usage by up to 65.5% in optimizer states while maintaining both efficiency and performance for pre-training on LLaMA 1B and 7B architectures with C4 dataset with up to 19.7B tokens, and on fine-tuning RoBERTa on GLUE tasks. Our 8-bit GaLore further reduces optimizer memory by up to 82.5% and total training memory by 63.3%, compared to a BF16 baseline. Notably, we demonstrate, for the first time, the feasibility of pre-training a 7B model on consumer GPUs with 24GB memory (e.g., NVIDIA RTX 4090) without model parallel, checkpointing, or offloading strategies.

View on arXivView PDF

Code Implementations(2)

PyTorch

GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection

221PythonMar 7, 20242 years ago
finetuning-llmsgalorelarge-language-modelsllmlora+4 more
jiaweizzhao/GaLoreCommunity69%
Apache-2.0

GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection

1,700167Shell, PythonMar 7, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhao2026galore,
  title  = {GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection},
  author = {Jiawei Zhao and Zhenyu (Allen) Zhang and Beidi Chen and Zhangyang Wang and Anima Anandkumar and Yuandong Tian},
  year   = {2026},
  eprint = {2403.03507},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.03507},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.03507.svg)](https://codeofpaper.com/paper/2403.03507)

Discussion