FP8 and FP4 are shortened floating-point formats: a single number takes 8 or 4 bits instead of 16 or 32. Memory and data transfer become many times cheaper and GPU tensor cores compute faster, so large language models are trained and served on these formats. Accuracy drops, though, so they are applied selectively and with scaling.
Main formats
| Format | Layout | Scaling | Where used |
|---|---|---|---|
| E4M3 (FP8) | 1 sign bit, 4 bits of exponent, 3 of mantissa | one scale for the whole tensor | weights and activations, forward pass |
| E5M2 (FP8) | 1 sign bit, 5 bits of exponent, 2 of mantissa | one scale for the whole tensor | gradients: a wide range is needed |
| MXFP4 | E2M1: 1 sign bit, 2 bits of exponent, 1 of mantissa | blocks of 32 numbers, the scale is a power of two (E8M0) | compressing weights and activations per the OCP Microscaling specification |
| NVFP4 | E2M1 | blocks of 16 numbers with an E4M3 scale plus a tensor scale in FP32 | training and inference on NVIDIA Blackwell-generation GPUs |
E4M3 is more precise but covers a narrow range of numbers: infinity is not encoded in it, and the freed-up bit patterns are given over to ordinary numbers, so the maximum is 448. E5M2 has a shorter mantissa but a range matching FP16, which makes it convenient for the backward pass with gradients. FP4 leaves only two mantissa values, and scaling compensates for the precision: the numbers of a block are multiplied by a shared factor stored separately.
What it gives
- Memory: FP8 takes half as many bytes as FP16; NVFP4 stores a model roughly 3.5 times more compactly than FP16 and 1.8 times more compactly than FP8 — so a larger model or a larger batch fits into HBM memory.
- Speed: at a lower bit width the GPU processes more operations per cycle; FP8 is supported by Hopper and Blackwell GPUs, FP4 by Blackwell.
- Power consumption: moving and adding 4-bit numbers takes less energy than 16-bit ones.
Networks are not computed entirely in FP8 and FP4: the main weights are kept in BF16 or FP32, while low precision is used for intermediate computations and individual layers. This mixed regime, together with block scaling, preserves quality: NVIDIA reports that NVFP4 on the DeepSeek-R1-0528 model lost no more than 1% accuracy compared with FP8.
Where the formats come from
The E4M3 and E5M2 pair was described jointly in 2022 by NVIDIA, Arm and Intel in a white paper on FP8 formats for deep learning; the OCP specification later standardised the formats. Block scaling for 4-bit numbers is described in the OCP Microscaling specification, and NVIDIA introduced NVFP4 in 2025 for GPUs of the Blackwell architecture.
Sources
the term is written from these pages- FP8 Formats for Deep Learning (NVIDIA, Arm, Intel)arxiv.org/pdf/2209.05433(opens in a new tab)
- OCP Microscaling Formats (MX) Specification v1.0opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf(opens in a new tab)
- Introducing NVFP4 for Efficient and Accurate Low-Precision Inferencedeveloper.nvidia.com/blog/introducing-nvfp4-for-efficient-and-accurate-low-precision-inference/(opens in a new tab)
Verified 9 Nov