HyperParallel-MoE:面向Ascend NPU上快速MoE训练的多核交错调度
HyperParallel-MoE: Multi-Core Interleaved Scheduling for Fast MoE Training on Ascend NPUs
AI总结:
提出HyperParallel-MoE编译调度框架,通过静态调度的tile级异构任务流和AIV驱动单边通信,在Ascend NPU上实现MoE训练中通信与计算的高效重叠,延迟降低达1.58倍。
摘要:
现代混合专家(MoE)模型越来越依赖大规模AI加速器集群进行高效训练。Ascend NPU暴露了异构的片上计算资源,包括面向矩阵的AIC单元和面向向量的AIV单元,并支持显式的跨队列同步。然而,现有的训练框架大多以串行的逐内核方式执行MoE算子,导致大量异构并行性未被充分利用。本文提出了HyperParallel-MoE,一个面向Ascend NPU上MoE训练的编译和调度框架。HyperParallel-MoE将算子级别的MoE执行转换为静态调度的tile级异构任务流,跨越AIC和AIV资源。它引入了AIV驱动的单边通信以消除主机端集体同步、保持依赖关系的tile任务生成以在统一任务抽象下统一通信和计算,以及事件驱动的静态调度以协调跨队列执行并降低运行时开销。HyperParallel-MoE进一步在统一运行时内执行编译后的任务流,该运行时在单个内核启动中并发驱动AIC和AIV工作器,实现通信、矩阵计算和向量计算之间的细粒度重叠,同时保留现有的优化算子。我们在MindSpore和MindFormers栈中实现了HyperParallel-MoE,并在Ascend A3集群上使用DeepSeek风格的MoE模型进行了评估。在多种专家并行配置下,HyperParallel-MoE将Dispatch-to-Combine MoE-FFN延迟降低了最多1.58倍,表明tile级异构调度可以显著提高现代NPU上的MoE训练效率。源代码可在https://gitcode.com/mindspore/hyper-parallel/tree/master/hyper_parallel/core/multicore获取。
英文摘要:
Modern Mixture-of-Experts (MoE) models increasingly rely on large-scale AI accelerator clusters for efficient training. Ascend NPUs expose heterogeneous on-chip compute resources, including matrix-oriented AIC units and vector-oriented AIV units with explicit cross-queue synchronization support. However, existing training frameworks largely execute MoE operators in a serialized kernel-by-kernel manner, leaving substantial heterogeneous parallelism underutilized. This paper presents HyperParallel-MoE, a compilation and scheduling framework for MoE training on Ascend NPUs. HyperParallel-MoE transforms operator-level MoE execution into a statically scheduled tile-level heterogeneous taskflow spanning AIC and AIV resources. It introduces AIV-driven one-sided communication to eliminate host-side collective synchronization, dependency-preserving tile task generation to unify communication and computation under a common task abstraction, and event-driven static scheduling to coordinate cross-queue execution with low runtime overhead. HyperParallel-MoE further executes the compiled taskflow within a unified runtime that concurrently drives AIC and AIV workers inside a single kernel launch, enabling fine-grained overlap among communication, matrix computation, and vector computation while preserving existing optimized operators. We implement HyperParallel-MoE in the MindSpore and MindFormers stack and evaluate it using DeepSeek-style MoE models on Ascend A3 clusters. Across multiple expert-parallel configurations, HyperParallel-MoE reduces Dispatch-to-Combine MoE-FFN latency by up to 1.58x, demonstrating that tile-level heterogeneous scheduling can substantially improve MoE training efficiency on modern NPUs. The source code is available at https://gitcode.com/mindspore/hyper-parallel/tree/master/hyper_parallel/core/multicore
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。