TensorX
返回文献探索

Paper · arXiv 2407.17353

Scalify: scale propagation for efficient low-precision LLM training

Paul Balança, Sam Hosegood, Carlo Luschi, Andrew Fitzgibbon

13 upvotesJuly 24, 2024arXiv 预印本
AI 摘要

Scalify is an end-to-end scale propagation paradigm that supports float8 matrix multiplication and float16 optimizer state storage, improving low-precision training in large language models.

float8low-precision formatscomputational efficiencylarge language modelstensor scaling methodsScalifymatrix multiplicationgradientsfloat16optimizer state storageJAX

Abstract

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

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Scalify: scale propagation for efficient low-precision LLM training | TensorX