一句话:提出 MoE-Lightning 高吞吐 MoE 批量推理系统,通过 CGOPipe 与 HRM 性能模型在内存受限 GPU 上显著提升吞吐。
MoE 模型能以较低推理成本扩大模型容量,但参数量巨大,使其难以在内存受限或低端 GPU 上部署;现有卸载式推理系统吞吐低且资源利用率不足。本文提出高吞吐 MoE 批量推理系统 MoE-Lightning,引入 CPU-GPU-I/O 流水线调度 CGOPipe,并结合分页权重提高资源利用率;同时提出基于分层 Roofline 模型的性能模型 HRM,用于搜索更高吞吐的策略。在单张 T4(16GB)上,Mixtral 8x7B 的吞吐最高可达现有最优卸载推理系统的 10.3 倍;当吞吐受 GPU 内存限制时,可达到理论上界,且 CPU 内存减少 2-3 倍。系统还支持在 2-4 张 T4 等低成本 GPU 上对 Mixtral 8x22B、DBRX 等更大 MoE 进行高效批量推理。
Efficient deployment of large language models, particularly Mixture of Experts (MoE) models, on resource-constrained platforms presents significant challenges in terms of computational efficiency and memory utilization. The MoE architecture, renowned for its ability to increase model capacity without a proportional increase in inference cost, greatly reduces the token generation latency compared with dense models. However, the large model size makes MoE models inaccessible to individuals without high-end GPUs. In this paper, we propose a high-throughput MoE batch inference system, MoE-Lightning, that significantly outperforms past work. MoE-Lightning introduces a novel CPU-GPU-I/O pipelining schedule, CGOPipe, with paged weights to achieve high resource utilization, and a performance model, HRM, based on a Hierarchical Roofline Model we introduce to help find policies with higher throughput than existing systems. MoE-Lightning can achieve up to (10.3x) higher throughput than state-of-the-art offloading-enabled LLM inference systems for Mixtral 8x7B on a single T4 GPU (16GB). When the theoretical system throughput is bounded by the GPU memory, MoE-Lightning can reach the throughput upper bound with 2-3x less CPU memory, significantly increasing resource utilization. MoE-Lightning also supports efficient batch inference for much larger MoEs (e.g., Mixtral 8x22B and DBRX) on multiple low-cost GPUs (e.g., 2--4 T4s).
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{CaoLGSL0GZS25,
title = {MoE-L
<scp>ightning</scp>
: High-Throughput MoE Inference on Memory-constrained GPUs},
author = {Shiyi Cao and Shu Liu and Tyler Griggs and Peter Schafhalter and Xiaoxuan Liu and Ying Sheng and Joseph E. Gonzalez and Matei Zaharia and Ion Stoica},
booktitle = {ASPLOS},
year = {2025},
doi = {10.1145/3669940.3707267}
}