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

通过多GPU上的动态交换机计算加速MoE

Accelerating MoE with Dynamic In-Switch Computing on Multi-GPUs

Hong Kong University of Science and Technology(香港科技大学);Shanghai Jiao Tong University(上海交通大学);Huawei Technologies Co. Ltd.(华为技术有限公司);Peking University(北京大学);Shanghai Qi Zhi Institute(上海人工智能实验室)

Qijun Zhang, Chen Zhang, Zhuoshan Zhou, Haibo Wang, Zhe Zhou, Zhipeng Tu, Guangyu Sun, Zhiyao Xie, Yijia Diao, Zhigang Ji, Jingwen Leng, Guanghui He, Minyi Guo

AI总结:

本文提出DySHARP,通过动态交换机计算减少MoE中GPU间通信冗余,结合动态多内存寻址和令牌中心内核融合,实现1.79倍加速。

摘要:

混合专家(MoE)被许多大型模型采用以降低计算需求。然而,MoE专家并行性(EP)中的频繁GPU间通信成为性能挑战。我们观察到MoE中存在大量冗余GPU间数据传输,可通过交换机计算解决。现有解决方案NVLink SHARP(NVLS)仅支持静态集体操作,无法处理MoE中的动态通信。为此,我们提出DySHARP,一种完整的动态交换机计算解决方案,涵盖通信原语和通信感知调度:1)动态多内存寻址协同设计ISA、架构和运行时,作为NVLS的动态扩展,减少冗余流量。然而,由此产生的流量减少在两个方向上是不对称的,无法直接转化为加速。2)以令牌为中心的内核融合深度融合调度-计算-合并流水线,解决这一不对称性,将流量减少转化为实际加速。与最先进的解决方案相比,DySHARP实现了高达1.79倍的加速。

英文摘要:

Mixture-of-Experts (MoE) has been adopted by many leading large models to reduce computational requirements. However, frequent inter-GPU communication in MoE expert parallelism (EP) becomes a performance challenge. We observe substantial redundant inter-GPU data transfers in MoE that can be potentially addressed by in-switch computing. Unfortunately, the existing solution, NVLink SHARP (NVLS), can only support static collectives with regular patterns, incapable of dynamic communication with irregular patterns in MoE. To bridge the functionality gap, we propose DySHARP, an integral dynamic in-switch computing solution to accelerate MoE, encompassing both communication primitives and communication-aware scheduling: 1) Dynamic multimem addressing co-designs ISA, architecture, and runtime, as a dynamic extension to NVLS, reducing redundant traffic. However, the resulting traffic reduction is inherently asymmetric between two directions, preventing it from directly translating into speedup. 2) Token-centric kernel fusion deeply fuses the dispatch-computation-combine pipeline, resolving this asymmetry to translate traffic reduction into actual speedup. Compared with the state-of-the-art solution, DySHARP achieves up to 1.79$\times$ speedup.

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

↑