arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.08027cs.LGcs.AIcs.DC
收藏

使用 MXFP8 预训练大语言模型的配方

Recipes for Pre-training LLMs with MXFP8

NVIDIA(英伟达)

Asit Mishra, Dusan Stosic, Simon Layton, Paulius Micikevicius

AI总结:

本文研究利用 MXFP8-E4M3 微缩放格式预训练大语言模型的关键参数选择与数值转换算法,在最高 8B 参数、15T token 规模下实现与 BF16 相当的训练效果,并给出实用配方。

摘要:

在预训练期间使用更少的比特来表示模型参数及相关张量,已成为在不牺牲准确性的前提下提高 GPU 效率的必要技术。NVIDIA Blackwell 一代 GPU 中引入的微缩放(MX)格式代表了该技术的重大进步,使得将窄浮点数据类型与更细粒度的逐块缩放因子相结合变得切实可行。反过来,这既能对比以往方法更多的张量进行量化,也能更高效地执行这些张量上的运算。有效使用 MX 格式需要仔细选择各种参数。在本文中,我们回顾了这些选择,并展示了 MXFP8-E4M3 数据类型和特定的数值转换算法如何使训练过程与 BF16 下进行的训练相匹配。我们展示了使用多达 8B 参数的模型、在多达 15T token 的高质量数据集上训练得到的结果。

英文摘要:

Using fewer bits to represent model parameters and related tensors during pre-training has become a required technique for improving GPU efficiency without sacrificing accuracy. Microscaling (MX) formats introduced in NVIDIA Blackwell generation of GPUs represent a major advancement of this technique, making it practical to combine narrow floating-point data types with finer granularity per-block scaling factors. In turn, this enables both quantization of more tensors than previous approaches and more efficient execution of operations on those tensors. Effective use of MX-formats requires careful choices of various parameters. In this paper we review these choices and show how MXFP8-E4M3 datatype and a specific number conversion algorithm result in training sessions that match those carried out in BF16. We present results using models with up to 8B parameters, trained on high-quality datasets of up to 15T tokens.

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

↑