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

ASAP: 一种用于MoE预填充的去中心化和异步推理系统

ASAP: A Disaggregated and Asynchronous Inference System for MoE Prefill

Huawei(华为)

Weiwei Chen, Shuang Chen, Lele Li, Qiang Hu, Han Li, Xin Ye, Ming Yan, Zhibin Yu

AI总结:

针对MoE模型混合并行策略中的同步瓶颈,提出ASAP系统,通过解耦注意力与MoE阶段并实现全异步执行流水线,结合异步通信原语和调度优化,将SLO合规的预填充吞吐量提升90%。

摘要:

混合专家(MoE)模型已成为扩展大型语言模型的事实标准。为了保持计算效率,现代MoE服务系统通常采用混合并行策略,将注意力阶段的数据并行(DP)与MoE阶段的专家并行(EP)相结合。然而,这种设计需要在注意力DP组和专家之间频繁进行全局同步屏障。在线服务中,请求到达率和序列长度的显著差异固有地导致DP不平衡,造成严重的同步停滞,从而降低首令牌时间(TTFT)和系统吞吐量。我们提出ASAP,一种专门设计用于加速MoE模型预填充阶段的异步推理系统。ASAP解耦了注意力和MoE阶段,并实现了完全异步的执行流水线。这是通过一套专门的异步通信原语以及跨请求调度和模型执行的四个协调优化来实现的,这些优化共同消除了全局同步屏障。我们在CloudMatrix384超级节点上实现并评估了ASAP,结果表明,与最先进的同步服务解决方案相比,它将SLO合规的预填充吞吐量提高了90%。

英文摘要:

Mixture-of-Experts (MoE) models have become the de facto standard for scaling large language models. To maintain computational efficiency, modern MoE serving systems typically employ a hybrid parallelism strategy, combining Data Parallelism (DP) for attention stages with Expert Parallelism (EP) for MoE stages. However, this design necessitates frequent global synchronization barriers between attention DP groups and experts. In online serving, significant variance in request arrival rates and sequence lengths inherently leads to DP imbalance, causing severe synchronization stalls that degrade Time-to-First-Token (TTFT) and system throughput. We present ASAP, an asynchronous inference system specifically designed to accelerate the prefill phase of MoE models. ASAP disaggregates the attention and MoE stages and implements a fully asynchronous execution pipeline. This is achieved through a suite of specialized asynchronous communication primitives and four coordinated optimizations across request scheduling and model execution, which collectively dismantle global synchronization barriers. We implement and evaluate ASAP on CloudMatrix384 super-nodes, demonstrating that it improves SLO-compliant prefill throughput by 90% compared to state-of-the-art synchronous serving solutions.

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

↑