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

在Hopper GPU上实现大规模MoE模型的实用FP4训练

Practical FP4 Training for Large-Scale MoE Models on Hopper GPUs

Zhejiang Lab, Hangzhou, China(浙江实验室,杭州,中国)

Wuyue Zhang, Chongdong Huang, Chunbo You, Cheng Gu, Fengjuan Wang, Mou Sun

AI总结:

本文提出了一种在Hopper GPU上实现大规模MoE模型FP4训练的方法,通过量化和转换技术减少内存和带宽消耗,提升训练效率。

摘要:

训练大规模混合专家(MoE)模型受到激活内存和专家并行通信的瓶颈,然而在缺乏原生MXFP4或NVFP4支持的Hopper类GPU上,FP4训练仍不切实际。在本文中,我们提出了一种训练配方,使在Hopper架构上能够实现MXFP4效率的MoE模型训练。核心挑战是将FP4整合到现有的BF16/FP8混合训练流水线中,而不产生昂贵的精度来回(例如FP4 ↔ BF16 ↔ FP8)。我们通过引入直接的FP8到FP4量化和反量化,以及具有缩放意识的FP4行到列的转换,实现了FP4激活和专家并行通信,且具有最小的开销。核心MoE计算在FP8中执行,而激活和专家并行通信则通过MXFP4进行压缩,从而实现显著的内存和带宽节省,而不会影响收敛性。在671B参数规模下,我们的方法实现了端到端训练性能,与强大的FP8基线相当,同时将峰值激活内存减少了14.8%(11.8 GB),并将训练吞吐量提高了12.5%,从1157提升到1302 tokens per GPU per second。这些结果表明,通过精心设计的软硬件协同设计,即使在没有原生FP4张量核心支持的情况下,FP4效率也可以在大规模MoE训练中实现。

英文摘要:

Training large-scale Mixture-of-Experts (MoE) models is bottlenecked by activation memory and expert-parallel communication, yet FP4 training remains impractical on Hopper-class GPUs without native MXFP4 or NVFP4 support. In this work, we present a training recipe that enables MXFP4 efficiency for MoE models on Hopper architectures without native 4-bit computation support. A central challenge is to integrate FP4 into an existing BF16/FP8 hybrid training pipeline without incurring costly precision round-trips (e.g., FP4 $\leftrightarrow$ BF16 $\leftrightarrow$ FP8). We address this challenge by introducing direct FP8-to-FP4 quantization and de-quantization, together with scaling-aware FP4 row-wise to column-wise conversion, enabling FP4 activations and expert-parallel communication with minimal overhead. Core MoE computations are executed in FP8, while activations and expert-parallel communication are compressed using MXFP4, achieving substantial memory and bandwidth savings without degrading convergence. At the 671B parameter scale, our method achieves end-to-end training performance comparable to strong FP8 baselines, while reducing peak activation memory by 14.8\% (11.8 GB) and improving training throughput by 12.5\%, from 1157 to 1302 tokens per GPU per second. These results show that FP4 efficiency can be practically realized for large-scale MoE training through careful software-hardware co-design, even without native FP4 Tensor Core support.

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

↑