Tag

#fp4

AI

NVFP4 vs MXFP4 vs GGUF Q4_K_M: same 4 bits, three ways to share a scale

An FP4 (E2M1) weight can only be one of 15 numbers. NVFP4, MXFP4 and llama.cpp's Q4_K_M all survive that by giving each small block of weights its own scale, its own ruler. Blocks of 16 with an FP8 scale (4.5 bits), blocks of 32 with a power-of-two scale (4.25 bits), or super-blocks of 256 with 6-bit scales and mins (about 4.9 bits). A worked rounding example, independent quality numbers, which hardware runs FP4 natively, and which file to download.