Scalify:用于高效低精度LLM训练的缩放传播
Scalify: scale propagation for efficient low-precision LLM training
AI总结:
本文提出Scalify,一种用于计算图的端到端缩放传播范式,泛化并形式化现有张量缩放方法,支持开箱即用的float8矩阵乘法与梯度表示及float16优化器状态存储,有效提升低精度LLM训练效率。
摘要:
float8等低精度格式已被引入机器学习加速硬件,以提高大语言模型训练和推理的计算效率。然而,匹配更高精度训练准确性所需的技术复杂且有时脆弱,减缓了ML社区的采用。在本研究中,我们提出了Scalify,一种用于计算图的端到端缩放传播范式,泛化并形式化了现有的张量缩放方法。实验结果表明,Scalify支持开箱即用的float8矩阵乘法和梯度表示,以及float16优化器状态存储。我们的JAX实现已在https://github.com/graphcore-research/jax-scalify开源。
英文摘要:
Low-precision formats such as float8 have been introduced in machine learning accelerated hardware to improve computational efficiency for large language models training and inference. Nevertheless, adoption by the ML community has been slowed down by the complex, and sometimes brittle, techniques required to match higher precision training accuracy. In this work, we present Scalify, a end-to-end scale propagation paradigm for computational graphs, generalizing and formalizing existing tensor scaling methods. Experiment results show that Scalify supports out-of-the-box float8 matrix multiplication and gradients representation, as well as float16 optimizer state storage. Our JAX implementation of Scalify is open-sourced at https://github.com/graphcore-research/jax-scalify
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。