interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / docs / models / MXFP4.md

45 lines · 2574 bytes Raw Blame History Source

MXFP4 dequantisation unit

native/models/mxfp4.om turns one MXFP4 element into exact IEEE binary32 bits. An MXFP4 element is an E2M1 nibble together with the E8M0 scale of its 32-element block. This is the format gpt-oss stores its MoE expert weights in.

It is a scalar primitive, not a GEMM and not an inference engine, and it does not touch any device.

Check

python3 tests/models/mxfp4-check.py <omc>

<omc> must be the seed-built compiler with sha256 189ada82e00bb440cb41351bd252cc68c54a1b1050051cc42a1df700081c3b54 (omega-mv 91b3c932); the script refuses any other.

What the script does:

The Python oracle is used only for verification. It is never part of the runtime.

Observed on the DGX Spark host (aarch64), 2026-10-26:

compiler_sha256=189ada82e00bb440cb41351bd252cc68c54a1b1050051cc42a1df700081c3b54
source_sha256=993b83945a854b3fa2eeba8f9fe4452f7468c7d0f6a349a11cc655dc7302bbf9
candidate_sha256=794c329c1c5db695717f7ccec12e28bd0554f9417a0d58e03146c24641e7d8ff
oracle_sha256=665ce3b50c419456c447dc8eabf300d79f20d38dfdbd6e5b3fd6b97308f0bf04
MXFP4 native CPU exact matches=130560; refusals=6; sign mutant rejected
NVIDIA/Intel/AMD GPU: NOT_RUN; model logits: NOT_RUN

Not run