arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.08800cs.DC
收藏

MixServe: 一种基于融合通信算法的混合并行机制的自动分布式服务系统,用于高效部署MoE模型

MixServe: An Automatic Distributed Serving System for MoE Models with Hybrid Parallelism Based on Fused Communication Algorithm

School of Computer Science and Engineering, Southeast University(东南大学计算机科学与工程学院);Department of Computer Science and Engineering, The Chinese University of Hong Kong(香港中文大学计算机科学与工程系)

Bowen Zhou, Jinrui Jia, Wenhao He, Yong Zhang, Fang Dong

AI总结:

MixServe通过融合AR-A2A通信算法的混合并行机制,实现MoE模型的高效部署,显著提升了推理性能和吞吐量。

摘要:

混合专家(MoE)模型正逐渐成为大语言模型(LLM)的最新范式。然而,由于内存限制,具有数十亿甚至万亿参数的MoE模型只能在多GPU或甚至多节点和多GPU的分布式服务系统中部署。因此,通信成为分布式服务系统中的主要瓶颈,尤其是节点间通信。当前的分布式MoE模型主要通过基于全部减少(AR)的张量并行(TP)和基于全部到全部(A2A)的专家并行(EP)实现。然而,TP通常表现出低的节点间效率,因此受限于高速的节点内带宽。相比之下,EP容易出现负载不平衡,尤其是在并行度较高时。在本工作中,我们引入了MixServe,一种新的自动分布式服务系统,通过基于融合AR-A2A通信算法的TP-EP混合并行机制,实现MoE模型的高效部署。MixServe首先评估各种并行策略的通信开销,考虑模型超参数和网络及硬件资源的配置,然后自动选择最高效的并行策略。然后,我们提出了一种基于融合AR-A2A通信算法的TP-EP混合并行机制,该机制重叠节点内AR通信和节点间A2A通信。在DeepSeek-R1和Qwen3模型上的广泛实验表明,MixServe在推理性能上实现了优越的性能,时间到第一个token(TTFT)加速了1.08~3.80倍,inter-token latency(ITL)加速了1.03~1.66倍,并且与现有方法相比,吞吐量提高了5.2%~50.3%。

英文摘要:

The Mixture of Experts (MoE) models are emerging as the latest paradigm for Large Language Models (LLMs). However, due to memory constraints, MoE models with billions or even trillions of parameters can only be deployed in multi-GPU or even multi-node & multi-GPU based serving systems. Thus, communication has became a major bottleneck in distributed serving systems, especially inter-node communication. Contemporary distributed MoE models are primarily implemented using all-reduce (AR) based tensor parallelism (TP) and all-to-all (A2A) based expert parallelism (EP). However, TP generally exhibits low inter-node efficiency and is thus confined to high-speed intra-node bandwidth. In contrast, EP tends to suffer from load imbalance, especially when the parallel degree is high. In this work, we introduce MixServe, a novel automatic distributed serving system for efficient deployment of MoE models by a novel TP-EP hybrid parallelism based on fused AR-A2A communication algorithm. MixServe begins by evaluating the communication overhead associated with various parallel strategies, taking into account the model hyperparameters and the configurations of network and hardware resources, and then automatically selects the most efficient parallel strategy. Then, we propose the TP-EP hybrid parallelism based on fused AR-A2A communication algorithm that overlaps intra-node AR communication and inter-node A2A communication. Extensive experiments on DeepSeek-R1 and Qwen3 models demonstrate that MixServe achieves superior inference performance, with 1.08~3.80x acceleration in time to first token (TTFT), 1.03~1.66x acceleration in inter-token latency (ITL), and 5.2%~50.3% throughput improvement compared to existing approaches.

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

↑