English

Towards Fully FP8 GEMM LLM Training at Scale

Machine Learning 2025-10-28 v2

Abstract

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.

Keywords

Cite

@article{arxiv.2505.20524,
  title  = {Towards Fully FP8 GEMM LLM Training at Scale},
  author = {Alejandro Hernández-Cano and Dhia Garbaya and Imanol Schlag and Martin Jaggi},
  journal= {arXiv preprint arXiv:2505.20524},
  year   = {2025}
}

Comments

19 pages including appendix

R2 v1 2026-07-01T02:41:12.759Z