首页 > AI前沿 > One-Sided Expert-Parallel All-to-All for Mixture-of-Experts Inference over NVLink

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

arXiv自然语言 2026-11-10 04:06 17 阅读 查看原文

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.

NVLinkOneSided

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.

Synchronization protocols

We provide two protocols for the synchronization that the communication requires, namely Fence and Sentinel, for high-throughput and low-latency scenarios respectively.

Evaluation

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.

Interface

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.