Get the latest tech news

FP64 Is All You Want, INT8 Is All You Need, FP4/6/8 Is All You Have


Ozaki scheme II emulates FP64 matrix products with INT8 ones through residues modulo pairwise coprime moduli, and variants for FP8 and FP4 have followed. We treat these schemes as one family and pose the choice of a scheme as a combinatorial program that minimizes the number of low-precision GEMMs. Given, for each modulus, a finite set of ways to compute products modulo it from low-precision GEMMs, we find the choice of moduli and ways with the fewest GEMMs, for any format, accumulator and inner dimension, and derive lower bounds on the GEMM count over the whole family. Applied to the formats of current GPUs, the method gives the first FP6 schemes, an FP8 scheme with fewer GEMMs than any previous one, and an FP4 scheme that the bounds show needs the fewest GEMMs of any scheme in the family whose moduli lie in a stated range. Implemented on three Blackwell GPUs, the INT8, FP8 and FP4 schemes run faster than native FP64, up to 83x on B300.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of INT8

INT8

Photo of fp64

fp64

Photo of fp4/6/8

fp4/6/8

Related news:

News photo

Show HN: We compressed a 31B video+audio diffusion model to 14B, 6 steps, INT8