arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.09345cs.DCcs.AI
收藏

MoE-Lens:在资源约束下迈向高吞吐量MoE LLM服务的硬件极限

MoE-Lens: Towards the Hardware Limit of High-Throughput MoE LLM Serving Under Resource Constraints

University of Michigan(密歇根大学)

Yichao Yuan, Lin Ma, Nishil Talati

AI总结:

针对资源约束下MoE LLM部署中GPU内存不足导致的CPU-GPU混合执行资源优化难题,提出MoE-Lens系统,通过整体性能建模识别硬件瓶颈并优化资源利用率,实现高吞吐量推理,性能平均提升4.6倍且预测准确率达94%。

摘要:

混合专家(MoE)大语言模型(LLM)以其稀疏激活模式为特征,为扩展语言模型同时避免推理成本成比例增加提供了一种有前景的方法。然而,其大参数规模在GPU内存容量有限的资源约束环境中带来了部署挑战,因为GPU内存通常不足以容纳全套模型权重。因此,典型部署依赖CPU-GPU混合执行:GPU处理计算密集型GEMM操作,而CPU处理相对轻量的注意力机制。这种设置引入了一个关键挑战:如何有效优化CPU和GPU之间的资源利用率?先前工作基于范围有限的性能模型设计了系统优化,但这些模型未捕捉硬件属性与系统执行机制之间的复杂交互,因此既未识别也未达到硬件极限。本文提出MoE-Lens,这是一种通过整体性能建模为资源约束环境设计的高吞吐量MoE LLM推理系统。我们的性能模型深入分析了各种基础系统组件,包括CPU内存容量、GPU计算能力和工作负载特征,以理解MoE推理的理论性能上限。此外,它捕捉系统执行机制以识别关键硬件瓶颈并准确预测可实现的吞吐量。在我们的性能模型指导下,MoE-Lens引入了一种接近硬件极限的推理系统。在不同MoE模型和数据集上的评估显示,MoE-Lens平均比最先进的解决方案性能高出4.6倍(最高达25.5倍),且我们的理论模型预测性能的平均准确率为94%。

英文摘要:

Mixture of Experts (MoE) LLMs, characterized by their sparse activation patterns, offer a promising approach to scaling language models while avoiding proportionally increasing the inference cost. However, their large parameter sizes present deployment challenges in resource-constrained environments with limited GPU memory capacity, as GPU memory is often insufficient to accommodate the full set of model weights. Consequently, typical deployments rely on CPU-GPU hybrid execution: the GPU handles compute-intensive GEMM operations, while the CPU processes the relatively lightweight attention mechanism. This setup introduces a key challenge: how to effectively optimize resource utilization across CPU and GPU? Prior work has designed system optimizations based on performance models with limited scope. Specifically, such models do not capture the complex interactions between hardware properties and system execution mechanisms. Therefore, previous approaches neither identify nor achieve the hardware limit. This paper presents MoE-Lens, a high-throughput MoE LLM inference system designed through holistic performance modeling for resource-constrained environments. Our performance model thoroughly analyzes various fundamental system components, including CPU memory capacity, GPU compute power, and workload characteristics, to understand the theoretical performance upper bound of MoE inference. Furthermore, it captures the system execution mechanisms to identify the key hardware bottlenecks and accurately predict the achievable throughput. Informed by our performance model, MoE-Lens introduces an inference system approaching hardware limits. Evaluated on diverse MoE models and datasets, MoE-Lens outperforms the state-of-the-art solution by 4.6x on average (up to 25.5x), with our theoretical model predicting performance with an average 94% accuracy.

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

↑