PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 25, 20240 citationsOpen Access

Grass: Compute Efficient Low-Memory LLM Training with Structured Sparse Gradients

View Full Paper
AMAashiq MuhamedOLOscar LiDWDavid P. Woodruff

Key Points

  • Grass significantly reduces memory usage for optimizer states while improving throughput.
  • The method leverages structured sparse gradients, minimizing overhead in computation and memory footprint.
  • Extensive experiments demonstrate that Grass is competitive with full-rank training and other methods in LLM pretraining tasks across varying systems and GPUs. Grass enables half-precision training of a large model on limited GPU resources, supporting efficiency needed in modern computing environments.

Abstract

Large language model (LLM) training and finetuning are often bottlenecked by limited GPU memory. While existing projection-based optimization methods address this by projecting gradients into a lower-dimensional subspace to reduce optimizer state memory, they typically rely on dense projection matrices, which can introduce computational and memory overheads. In this work, we propose Grass (GRAdient Stuctured Sparsification), a novel approach that leverages sparse projections to transform gradients into structured sparse updates. This design not only significantly reduces memory usage for optimizer states but also minimizes gradient memory footprint, computation, and communication costs, leading to substantial throughput improvements. Extensive experiments on pretraining and finetuning tasks demonstrate that Grass achieves competitive performance to full-rank training and existing projection-based methods. Notably, Grass enables half-precision pretraining of a 13B parameter LLaMA model on a single 40GB A100 GPU--a feat infeasible for previous methods--and yields up to a 2 throughput improvement on an 8-GPU system. Code can be found at https: //github. com/aashiqmuhamed/GRASS.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Muhamed et al. (2024) studied this question.

synapsesocial.com/papers/68e636c5b6db6435875c8bdehttps://doi.org/10.48550/arxiv.2406.17660
Ask AI
Helpful
Bookmark
Share
View Full Paper