arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.01844cs.DCcs.AI
收藏

并行化混合:面向混合专家模型的内存高效训练栈

Mixture-of-Parallelisms: Towards Memory-Efficient Training Stack for Mixture-of-Experts Models

Salesforce AI Research(Salesforce AI研究院)

Xuan-Phi Nguyen, Shrey Pandit, Yiran Zhao, Semih Yavuz, Silvio Savarese, Shafiq Joty

AI总结:

提出一种内存高效的MoE模型训练范式,结合多种并行技术,在有限硬件资源下实现万亿参数、百万上下文长度的无损训练,吞吐量比FSDP2基线提升4.7-8.2倍。

摘要:

本文展示了一种针对混合专家(MoE)模型的内存高效训练栈。该训练范式在MoE模型训练管道的不同层和阶段组合并专门化各种现有和新型的并行技术。它利用这些技术,在CPU、CPU内存、GPU HBM内存以及GPU集群的CPU-GPU、GPU-GPU和节点间通信带宽的物理约束下,实现最大效率。它还包含一种新颖的优化器步骤策略,以实现高吞吐量和内存效率,使从业者能够在不到12个8x H200 GPU节点上,以百万上下文长度,对万亿参数规模的模型进行无损预训练/微调,并具有最先进的吞吐量和内存效率。在我们的实验中,MoP的每GPU吞吐量比强调优的FSDP2基线高出4.7倍至8.2倍(且差距随规模扩大而增大),并在长达100万token的上下文长度下维持训练,而基线在超过64-128K时内存耗尽。

英文摘要:

This paper showcases a memory-efficient training stack for Mixture-of-Experts (MoE) models. It is a training paradigm that combines and specializes various existing and novel parallelism techniques at different layers and stages of the Mixture-of-Experts (MoE) model training pipeline. It leverages these techniques to achieve maximal efficiency given the physical constraints of CPU, CPU memory, GPU HBM memory, and the CPU-GPU, GPU-GPU, and node-node communication bandwidth of the GPU cluster. It also contains a novel strategy for the optimizer step to achieve high throughput and memory efficiency, enabling practitioners to conduct lossless pre-training/fine-tuning of trillion-parameter scale models, at a million context length, with just under 12 8x H200 GPU nodes, with state-of-the-art throughput and memory efficiency. In our experiments, MoP delivers 4.7x--8.2x higher per-GPU throughput than a strongly-tuned FSDP2 baseline (with the gap widening at larger scale) and sustains training at context lengths up to 1M tokens, where the baseline runs out of memory beyond 64--128K.

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

↑