Glossary · Memory, precision and compute

MXFP4 and NVFP4

Also: MXFP4NVFP4microscalingFP4E2M1

Read it at the depth you need: one sentence · a paragraph · the math · in the models here

1In one sentence

4-bit floating-point formats where each small block of weights shares one scale: 32 weights and an 8-bit power-of-two scale for MXFP4, 16 and an FP8 scale for NVFP4.

2In a paragraph

MXFP4 stores each weight as a tiny 4-bit float (1 sign bit, 2 exponent bits, 1 mantissa bit: values like 0.5, 1, 1.5, 2, 3, 4, 6) and gives every block of 32 weights a shared power-of-two scale. Recent GPUs compute with it directly. gpt-oss was released with its expert weights already in MXFP4, which is how the 120B model fits on one 80 GB card. NVFP4, NVIDIA's variant, uses blocks of 16 with a finer FP8 scale.

3The math, shapes and parameters

MXFP4: (32 × 4 + 8) / 32 = 4.25 bits a weight    NVFP4: (16 × 4 + 8) / 16 = 4.5 bits (plus one FP32 scale per tensor)

In gpt-oss's files each expert matrix is two U8 tensors: _blocks (two 4-bit values per byte) and _scales (one byte per 32 weights). Hugging Face counts the blocks as two parameters per byte and leaves the scales out, so its count is the logical one.

4In the 96 models on this site

Released in MXFP4: gpt-oss-20b (19.1B of its 20.9B weights), gpt-oss-120b (115B of its 117B weights).

Introduced in Open Compute Project, “OCP Microscaling Formats (MX) Specification v1.0” (2023).

Related

Quantization · BF16 (bfloat16) · Mixture of experts (MoE) · every term