arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.02581cs.DC
收藏

Themis:通过完全分片稀疏数据并行实现高效的稀疏模型训练

Themis: Efficient Sparse Model Training Through Fully Sharded Sparse Data Parallelism

The University of Hong Kong(香港大学)

Yuhao Qing, Guichao Zhu, Lintian Lei, Fanxin Li, Shixiong Zhao, Zekai Sun, Xiuxian Guan, Xusheng Chen, Dong Huang, Ping Luo, Yiming Qiu, Heming Cui

AI总结:

Themis提出FSSDP方法,通过原位负载均衡与异构分片优化MoE训练,消除专家重排的开销,在2个集群的多样工作负载下实现1.26-2.42倍加速。

摘要:

混合专家(MoE)可经济高效地扩展大语言模型,但专家并行训练会因专家负载倾斜出现严重的掉队者效应。当前系统常通过重新排列专家位置缓解掉队者,这会增大内存占用和迁移开销,可能抵消负载均衡的收益。我们提出完全分片稀疏数据并行(FSSDP),一种面向稀疏原生的MoE训练方法,该方法可在每次训练迭代中实现原位负载均衡,将均衡操作与计算重叠,消除显式的专家重排及其带来的迁移流量和内存预留。FSSDP保持MoE层分片,每次迭代稀疏实例化一个临时的负载均衡位置,通过重新实例化在各层间复用可用内存。FSSDP辅以异构分片,将内存失衡从设备级转移到层级,在维持统一内存预算的同时支持层级位置优化。我们通过协同设计感知拓扑的位置算法在Themis中实现FSSDP,在2个集群及多样工作负载下,Themis相比最先进的专家重排系统实现1.26至2.42倍的加速。

英文摘要:

Mixture-of-Experts (MoE) scales large language models cost-effectively, but expert-parallel training suffers severe straggler effects from skewed expert loads. Current systems frequently rearrange expert placement to mitigate stragglers, inflating memory footprint and migration overhead, potentially negating the benefits of load balancing. We present Fully Sharded Sparse Data Parallelism (FSSDP), a sparse-native MoE training approach that enables in-situ load balancing on every training iteration, overlapping the balancing with computation and eliminating explicit expert rearrangement together with its migration traffic and memory reserves. FSSDP keeps MoE layers sharded and sparsely materializes an ephemeral, load-balancing placement each iteration, with re-materialization to reuse available memory across layers. FSSDP is complemented by heterogeneous sharding to shift memory imbalance from the device level to the layer level, maintaining uniform memory budgets while enabling per-layer placement optimization. We realize FSSDP in Themis with co-designed topology-aware placement algorithms. Across 2 clusters and diverse workloads, Themis achieves 1.26-2.42x speedup over state-of-the-art expert-rearrangement systems.

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

↑