TorchLean API

FloatLib.Floats.Formats.OCP.MX

OCP microscaling formats #

Direct-byte nominal packages for the E2M1, E2M3, and E3M2 scalar element codes used in OCP MX blocks, together with the E8M0 shared scale and contextual block semantics. Standard supplies the six concrete 32-element MX profiles, exact decoding, and destination quantization with proved nearest-even rounding at the selected shared scale. Its dot products accumulate exact rational products across any number of blocks, then round once to binary32.

E8M0 #

Ordinary binary formats, including IEEE, finite-max-NaN, FNUZ, and fully finite encodings, live in their standard or family packages under FloatLib.Floats.Formats.

This import collects the OCP microscaling concepts: