Elixir: Train a Large Language Model on a Small GPU Cluster

Haichen Huang, Jiarui Fang, Hongxin Liu, Shenggui Li, Yang You
12/10/2022
9 citations
cs.DCcs.AIcs.LG

Official code: hpcaitech/ColossalAI (41,425 stars, Python, Apache-2.0, last commit 2026-04-27). 1 more implementation below.

Abstract

In recent years, large language models have achieved great success due to their unprecedented size. However, training these models poses a challenge for most researchers as it requires a substantial number of GPUs.

Show full abstract

To reduce GPU memory usage, memory partitioning, and memory offloading have been proposed. These approaches eliminate memory redundancies and offload memory usage to the CPU and NVMe memory, respectively, enabling training on small GPU clusters. However, directly deploying these solutions often leads to suboptimal efficiency. Only experienced experts can unleash the full potential of hardware by carefully tuning the distributed configuration. Thus, we present a novel solution, Elixir, which automates efficient large-model training based on pre-runtime model profiling. Elixir aims to identify the optimal combination of partitioning and offloading techniques to maximize training throughput. In our experiments, Elixir significantly outperforms the current state-of-the-art baseline. Our optimal configuration achieves up to a 3.4$\times$ speedup on GPT-2 models compared with SOTA solutions. We hope that our work will benefit individuals who lack computing resources and expertise, granting them access to large models. The beta version of Elixir is now available at https://github.com/hpcaitech/ColossalAI/tree/feature/elixir.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
hpcaitech/ColossalAIOfficial41,425PythonApache-2.02026-04-27
hpcaitech/ElixirCommunity15Python–2023-06-08
Apache-2.0

Making large AI models cheaper, faster and more accessible

41,4254,483Python, Cuda7 months agoApache-2.0
aibig-modeldata-parallelismdeep-learningdistributed-computing+7 more
hpcaitech/ElixirCommunity100%

Elixir: Train a Large Language Model on a Small GPU Cluster

154Python, ShellFeb 12, 20233 years ago
efficientlarge-language-modelsmemory-management

Similar Papers

Cite this paper

@article{huang2022elixir,
  title  = {Elixir: Train a Large Language Model on a Small GPU Cluster},
  author = {Haichen Huang and Jiarui Fang and Hongxin Liu and Shenggui Li and Yang You},
  year   = {2022},
  eprint = {2212.05339},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.05339}
}

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/2212.05339.svg)](https://codeofpaper.com/paper/2212.05339)

Discussion