Towards Fully FP8 GEMM LLM Training at Scale

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Hernández-Cano, Alejandro, Garbaya, Dhia, Schlag, Imanol, Jaggi, Martin
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911230607753216
author Hernández-Cano, Alejandro
Garbaya, Dhia
Schlag, Imanol
Jaggi, Martin
author_facet Hernández-Cano, Alejandro
Garbaya, Dhia
Schlag, Imanol
Jaggi, Martin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20524
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Towards Fully FP8 GEMM LLM Training at Scale
Hernández-Cano, Alejandro
Garbaya, Dhia
Schlag, Imanol
Jaggi, Martin
Machine Learning
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.
title Towards Fully FP8 GEMM LLM Training at Scale
topic Machine Learning
url https://arxiv.org/abs/2505.20524