DCAILGDec 10, 2022

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

Berkeley
arXiv:2212.05339v310 citationsh-index: 24Has Code
Originality Highly original
AI Analysis

This work benefits researchers and practitioners with limited computing resources and expertise by enabling more efficient access to large model training.

The paper tackles the challenge of training large language models on small GPU clusters by automating the optimization of memory partitioning and offloading techniques, achieving up to a 3.4x speedup on GPT-2 models compared to state-of-the-art solutions.

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. 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.

Code Implementations2 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes