arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.14417cs.DCcs.AIcs.LGcs.PF
收藏

用于调节服务质量的混合精度专家混合方法

Mixture of Experts with Mixture of Precisions for Tuning Quality of Service

The George Washington University(乔治华盛顿大学)

HamidReza Imani, Abdolah Amirany, Tarek El-Ghazawi

AI总结:

提出面向 MoE 模型的自适应部分量化服务方法,通过动态配置量化专家数量及 CPU/GPU 分布,在吞吐量与模型质量间探索 Pareto 前沿。

摘要:

在资源受限环境中部署大型 Mixture-of-Experts(MoE,专家混合)模型的需求不断增长,因此需要高效方法来应对其高昂的内存和计算需求挑战。此外,在多租户环境中,任务具有不同的用户定义约束,且可用资源会随时间变化,因此有必要设计一种能够提供灵活配置空间的方法。本文提出一种自适应服务方法,用于高效部署 MoE 模型,该方法利用了专家的部分量化。通过动态确定量化专家的数量及其在 CPU 和 GPU 之间的分布,我们的方法探索 Pareto 前沿,并提供细粒度配置范围,以调节吞吐量和模型质量。我们在 NVIDIA A100 GPU 上使用 Mixtral 8x7B MoE 模型针对三个语言建模基准进行评估,结果表明 token 生成吞吐量可在每秒 0.63 至 13.00 个 token 之间调节。在最大量化下,这一提升仅带来轻微的困惑度上升:WikiText2、PTB 和 C4 数据集分别从 3.81 升至 4.00、从 13.59 升至 14.17、从 7.24 升至 7.40。这些结果凸显了本方法在动态且对精度敏感、同时重视内存使用和输出质量的应用中的实际适用性。

英文摘要:

The increasing demand for deploying large Mixture-of-Experts (MoE) models in resource-constrained environments necessitates efficient approaches to address their high memory and computational requirements challenges. Moreover, given that tasks come in different user-defined constraints and the available resources change over time in multi-tenant environments, it is necessary to design an approach which provides a flexible configuration space. This paper presents an adaptive serving approach for the efficient deployment of MoE models, capitalizing on partial quantization of the experts. By dynamically determining the number of quantized experts and their distribution across CPU and GPU, our approach explores the Pareto frontier and offers a fine-grained range of configurations for tuning throughput and model quality. Our evaluation on an NVIDIA A100 GPU using a Mixtral 8x7B MoE model for three language modelling benchmarks demonstrates that the throughput of token generation can be adjusted from 0.63 to 13.00 token per second. This enhancement comes with a marginal perplexity increase of 3.81 to 4.00, 13.59 to 14.17, and 7.24 to 7.40 for WikiText2, PTB, and C4 datasets respectively under maximum quantization. These results highlight the practical applicability of our approach in dynamic and accuracy-sensitive applications where both memory usage and output quality are important.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑