atlas

Research map / Architectures and efficiency / Quantization

Scaling FP8 training to trillion-token LLMs

ICLR 2025 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Trains Llama2 7B in FP8 on up to 2T tokens, traces late-training divergence to SwiGLU outlier amplification via w1/w2 alignment, and proposes Smooth-SwiGLU plus FP8 Adam moments.

Problem

FP8 LLM training that is stable for short runs diverges during long (trillion-token) training, because of outliers in activations, and optimizer states are still kept in high precision.

Approach

Shows analytically that SwiGLU weight vectors w1 and w2 tend to align under l2 regularization when inputs are large, causing quadratic outlier amplification; proposes Smooth-SwiGLU, which applies per-channel scaling before quantization of the SwiGLU output and inverts it after the last linear layer, leaving the function unchanged. Also quantizes both Adam moments to FP8 (E4M3 for first moment, E5M

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Smooth-SwiGLU instead of standard SwiGLU (ablation)FP8 training of Llama2 7B · Red Pajama training up to 2 trillion tokenstraining stabilityHelped
Disable quantization of the SwiGLU output (ablation)FP8 training of Llama2 · Large-dataset trainingtraining stabilityHelped
Use full FP8 quantization with standard SwiGLU instead of Smooth-SwiGLU or BF16 SwiGLU output (ablation)Llama2 7B training · Large-dataset trainingtraining stabilityHurt
Use Smooth-SwiGLU instead of BF16Llama2 7B training on Intel Gaudi2 · Throughputthroughput: 12.65 -> 16.89 (+33.52 %)Helped
Disable quantization of the SwiGLU output (ablation)Llama2 7B training on Intel Gaudi2 · Throughputthroughput: 12.65 -> 16.07 (+ 27.04 %)Helped
Replace standard SwiGLU with Smooth-SwiGLU (ablation)FP8 training of Llama2 7B · Intel Gaudi2throughput: 17.34 -> 16.89Mixed
Quantize both Adam moments to FP8FP8 optimizer for Llama2 7B · Training memorymemory (GB/HPU): 63.25 -> 44.08Helped
Use FP8 (1), with SwiGLU output in BF16, instead of BF16 (ablation)Llama2 7B · Lambadaaccuracy: 61.98 -> 61.73Hurt
Use FP8 (2), with Smooth-SwiGLU and FP8 optimizer, instead of BF16Llama2 7B · Winograndeaccuracy: 64.25 -> 65.43Helped
Use FP8 (2), with Smooth-SwiGLU and FP8 optimizer, instead of BF16Llama2 7B · Lambadaperplexity: 5.75 -> 5.9Hurt
Use FP8 (1), with SwiGLU output in BF16, instead of BF16 (ablation)Llama2 7B · Wikitextperplexity: 5.59 -> 5.56Helped
Quantize the first Adam moment to E4M3 and the second moment to E5M2 (ablation)FP8 Adam optimizer · Llama2 100m convergenceconvergenceHelped

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama C4

Benchmarks: Lambada HellaSwag Winogrande Arc-C Wikitext

Metrics: accuracy perplexity training loss throughput (samples/sec) TFLOPS memory (GB/HPU)

Baselines: BF16 training FP8 with SwiGLU output in BF16 standard FP8 (FP8-LM style, FP16 second moment)

Builds on: Llama 2 SwiGLU Transformer Engine delayed scaling FP8 formats (E4M3/E5M2) FP8-LM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy