formats

9 posts

NUMBER FORMATS · 01FP32BF161 + 8 + 23: SIGN, EXPONENT, MANTISSA

How a Computer Stores a Real Number: Sign, Exponent, Mantissa

What the bits of a floating-point number mean, why range and precision trade against each other, with an interactive bit explorer.

NUMBER FORMATS · 02FP16BF16SAME 16 BITS · FP16 STOPS AT 65,504

FP16 vs. BF16: Same Size, Different Trade

Why training moved from FP16 to BF16, and why a BF16 model may still run fine in FP16: the same 16 bits split differently, measured on Qwen3-8B.

NUMBER FORMATS · 032,048WHERE THE SUM STOPSFP16 SUM OF 1.0, ADDED AGAIN AND AGAIN

TF32 and Accumulation: What Tensor Cores Really Compute In

Inputs, products, and accumulators: the precision a matrix multiplication really uses, and why FP32 accumulation still matters.

NUMBER FORMATS · 04ONE SCALE PER TENSOR87% ERROR IN INT432 WEIGHTS, ONE OUTLIER

Integers for AI: INT8, INT4, Scales, and Zero Points

How integers represent real weights: scales, zero points, per-tensor, per-channel, and per-group, measured on every weight of Qwen3-8B.

NUMBER FORMATS · 050010101011101000SIGNEXPONENTMANTISSA

FP8: E4M3, E5M2, and Why There Are Two

The two FP8 formats, what each is for, and how FP8 is scaled, measured on Qwen3-8B's weights and activations against INT8.

NUMBER FORMATS · 06E8M0 SCALE32 VALUES SHARE ONE SCALE

Microscaling: MXFP8, MXFP6, MXFP4 and Block Scales

The OCP microscaling formats: 32 values sharing one power-of-two scale, what MXFP8, MXFP6, and MXFP4 cost in accuracy on a real model, and why the scale rule matters.

NUMBER FORMATS · 07TENSOR SCALE, FP324.5 BITS PER VALUE

NVFP4: Two Levels of Scale

How NVFP4 differs from MXFP4: 16-value blocks, FP8 block scales, and a per-tensor scale, with what each part buys measured on Qwen3-8B.

NUMBER FORMATS · 0816-BIT2.5 PF8-BIT5 PF4-BIT10 PF2×PER HALVINGDENSE TENSOR-CORE RATE, ONE GB200 GPU

Which GPU Computes Which Format: Ampere to Rubin, MI300 to MI355

Which number formats each data-center GPU computes natively, at what rate, from the vendors' own pages: A100 to Rubin, MI300X to MI355X.

NUMBER FORMATS · 09256x² FITS IN FP1612,096A REAL ACTIVATION, FAR PAST 256

Where Low Precision Bites: Rounding, Overflow, and Accumulation

Five places where low precision breaks real computations, each reproduced on Qwen3-8B's own tensors, and the fix every serious implementation applies.