Fast Inference of Mixture-of-Experts Language Models with Offloading
By Artyom Eliseev, A. Eliseev, D. Mazur. 2023
97 citations recorded by the source corpus.
With the widespread adoption of Large Language Models (LLMs), many deep learning practitioners are looking for strategies of running these models more efficiently. One such strategy is to use sparse Mixture-of-Experts (MoE) - a type of model architectures where only a fraction of model layers are active for any given input. This property allows MoE-based language models to generate tokens faster than their dense counterparts, but it also increases model size due to having multiple experts. Unfortunately, this makes state-of-the-art MoE language models difficult to run without high-end GPUs. In this work, we study the problem of running large MoE language models on consumer hardware with limited accelerator memory. We build upon parameter offloading algorithms and propose a novel strategy that accelerates offloading by taking advantage of innate properties of MoE LLMs. Using this strategy, we build can run Mixtral-8x7B with mixed quantization on desktop hardware and free-tier Google Colab instances.
Subfields: Artificial Intelligence, Information Systems, Large Language Models, Efficiency & Compression
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Marie-Anne Lachaux
- Devendra Singh Chaplot
- Guillaume Lample
- Timothée Lacroix
- Albert Qiaochu Jiang
- Alexandre Sablayrolles
- Thibaut Lavril
- Teven Le Scao
In Information Systems
- Guillaume Lample
- Marie-Anne Lachaux
- Albert Qiaochu Jiang
- Timothée Lacroix
- Baptiste Rozière
- Yanqiao Zhu
- Yichen Xu
- Gabriel Synnaeve
In Large Language Models
- Marie-Anne Lachaux
- Timothée Lacroix
- Teven Le Scao
- Guillaume Lample
- Albert Qiaochu Jiang
- Lucile Saulnier
- Alexandre Sablayrolles
- Luke S. Zettlemoyer
In Efficiency & Compression
Citations in the corpus
- Mixtral of Experts (2024, background): “Conversely, this locality can be leveraged for caching, as is done in [11].”