跳到正文
arXiv (AI + Vision + Imaging)· Bo Li, Chulian Zhang, Or Biri, Anthony Chang, Anton Korzh, Noam Duvdevani, XingFei Xi, Daniel Stokes, Zhenhuan Chen, Ludwig Schneider, Artem Y. Polyakov, Julien Demouth, Chandler Zhou·· 14 天前精选AI 评分58

NVLinkOneSided:面向 NVLink 域内 MoE 推理的单侧专家并行 all-to-all

One-Sided Expert-Parallel All-to-All for Mixture-of-Experts Inference over NVLink

AI 导读

论文提出 NVLinkOneSided,一种面向单 NVLink 域内 GPU 的 MoE 推理单侧专家并行 all-to-all 方案,各源 rank 无需先交换元数据即可将 token 推入目标 GPU 的 rank-major 缓冲区,分组 GEMM 原地读取。

推荐理由

论文给出单 NVLink 域内 MoE 推理 all-to-all 的一侧通信方案,小 batch 下相对 DeepEP 的加速比可作为推理框架选型参考。

正文 · 原文

arXiv:2611.13188v1 Announce Type: cross Abstract: Expert parallelism (EP) shards the experts of a Mixture-of-Experts (MoE) layer across GPUs, so every MoE layer requires two all-to-all communications, namely dispatch and combine. Compared with training, inference processes relatively few tokens per GPU at a time, and at small batch sizes fixed costs that do not grow with the number of tokens, rather than data movement, dominate the latency. We present NVLinkOneSided, a one-sided EP all-to-all for GPUs within a single NVLink domain. Each source rank pushes its tokens, without first exchanging metadata, into rank-major buffers on the target GPUs, and the grouped GEMMs read them in place instead of from a per-expert copy. We provide two protocols for the synchronization that the communication requires, namely Fence and Sentinel, for high-throughput and low-latency scenarios respectively. On Blackwell GPUs, NVLinkOneSided completes dispatch and combine 1.2-3.0$\times$ faster than DeepEP, with the largest speedups at small batch sizes. The resulting MoE layer is up to 2.4$\times$ faster than DeepEP with DeepGEMM. It even outperforms the fused DeepGEMM MegaMoE at up to 128 tokens per GPU, making it still competitive for decoding. We expose NVLinkOneSided through a modular interface, so that it is agnostic to the activation quantization format, decoupled from the MoE compute backend and easy to integrate into inference frameworks.

来源:arXiv (AI + Vision + Imaging) · arxiv.org