FP64 Is All You Want, INT8 Is All You Need, FP4/6/8 Is All You Have
Abstract
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.
Create a lesson
Metadata
- Comments
- 12 pages. Preliminary version; an extended version with the proofs, the search details and further measurements will follow
Recent in the same category
Strassen-Winograd Matrix Multiplies and Apple Silicon: Two Fast Things That Go Fast Together
Recent in the same categorycs.DCDavid G. Andersen
μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
Recent in the same categorycs.DCYaoyao Ding, Qidong Su, Baorun Mu et al.
When Does a GPU Shorten All-Pairs Genome Comparison? End-to-End Modelling and Scaling with cuDDL
Recent in the same categorycs.DCTim Dortmann, Markus Vieth, Bertil Schmidt
SMART-Sharding: Scaling Per-tensor Sharding Search in LLM Training with Symbolic Dynamic Programming
Recent in the same categorycs.DCKimia Noorbakhsh, Samuel Kushnir, Kavya Sreedhar et al.
Deterministic Gossiping and Sparse Reporting in Directed Radio Networks
Recent in the same categorycs.DCQin Xin
Robust Binary-Compressed Communication in Distributed Learning and the Optimality of SignSGD
Recent in the same categorycs.DCHallison Paz, Arthur Danjou, El Mahdi El Mhamdi