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

迈向全FP8 GEMM的大规模LLM训练

Towards Fully FP8 GEMM LLM Training at Scale

EPFL(苏黎世联邦理工学院);ETHZ(苏黎世联邦理工学院)

Alejandro Hernández-Cano, Dhia Garbaya, Imanol Schlag, Martin Jaggi

AI总结:

本文提出一种新型LLM架构,首次实现Transformer块内所有GEMM的FP8计算,在大规模训练中提升吞吐量并匹配BF16性能,同时通过减少异常激活和监控关键指标确保训练稳定性。

摘要:

尽管FP8数据格式在大语言模型(LLM)预训练中具有巨大潜力,但由于在大规模下维持稳定性的挑战,其采用一直受限。现有方法通常依赖次优的细粒度FP8内核,或在敏感组件(如注意力投影)中回退到更高精度的矩阵乘法(GEMM),从而损害了潜在的吞吐量提升。我们引入了一类新的LLM架构,首次在前向和后向传播中支持Transformer块内所有GEMM的FP8计算。这实现了前所未有的吞吐量提升,尤其是在大规模场景下,同时匹配标准BF16训练的下游性能。我们的架构设计减少了大的异常激活,促进了稳定的长期FP8训练。此外,我们识别了关键指标以监控低精度训练并预测潜在的未来发散。

英文摘要:

Despite the significant potential of FP8 data formats for large language model (LLM) pre-training, their adoption has been limited due to challenges in maintaining stability at scale. Existing approaches often rely on suboptimal fine-grained FP8 kernels or fall back to higher-precision matrix multiplications (GEMMs) in sensitive components, such as attention projections, compromising potential throughput gains. We introduce a new class of LLM architectures that, for the first time, support FP8 computation for all GEMMs within transformer blocks during both forward and backward passes. This enables unprecedented throughput gains, particularly at scale, while matching the downstream performance of standard BF16 training. Our architecture design reduces large outlier activations, promoting stable long-term FP8 training. In addition, we identify key metrics to monitor low-precision training and predict potential future divergences.

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

↑