TrainFixes2 review (acting for Main) — head 84763314a349b26d4ccf51b6e70985e2e8f3490b
Scope: native/models/{fp8,nvfp4,mxdot}.om, drivers tests/models/{fmt,nvblk,mxdot}-driver.om, tests/models/mxfmt-check.py, docs/models/MXFMT.md. 8 files, +1415, no C, no Makefile, no API manifest change.
Stack handling
Base #100 merged (e79e8e6c); GitHub had not retargeted, so the base was set to main via the REST API. No CI ran on the stacked head 89a93a2, so I merged origin/main into the branch (8476331, clean, no conflicts; delta vs main still the same 8 files) and pushed (normal push) to get CI on a main-based head.
Run (fresh clone /home/drakestapleton/work/Train/TrainFixes/pr111, aarch64 host, nice -n 19 taskset -c 10-14)
Compiler: seed-built omc sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f (the pin mxfmt-check.py enforces). numpy 2.5.3, ml_dtypes 0.6.0 (/home/drakestapleton/ort-aarch64-venv).
python tests/models/mxfmt-check.py <omc>at89a93a2→ rc=0; at8476331→ rc=0, identical verdict lines and identical exe sha256s (fmtfd704209…27ca, nvblk4737727c…dfc3, mxdote0f8efec…bcbcd).- FP8 decode 512 codes == ml_dtypes == OFP8 §5.1; encode 4 × 12,648,448 inputs (65536 bf16 vs exact spec + 12,582,912 structured binary32 vs ml_dtypes), round trips
- NVFP4 decode 2032 pairs; encode 8,290,814 + threshold ±1ulp; block scale 232,641; 20,000 blocks
- MX dot 600 cases / 33,600 dots, all within γ(nb−1)Σ|t|, 33,600 bit-equal to left-to-right binary64; worst err/Σ|t| 3.346e-16
- refusals 275; 6/6 built-in mutants rejected (flipped E4M3 table entry, round-half-away FP8 and NVFP4 encoders, NVFP4 midpoint 14→13, E4M3 subnormal exponent, NVFP4 dot scale)
- logs:
/home/drakestapleton/work/Train/TrainFixes/logs/pr111-89a93a2-mxfmt-check.log,pr111-8476331-mxfmt-check.log
python3 tests/models/mxfp4-check.py <omc 189ada82>at8476331→ rc=0, 130560 matches, 6 refusals, sign mutant rejected (pr111-8476331-mxfp4-check.log). MXFP4 files unchanged.- Body's γ(255):
WolframLanguageEvaluator: u=2^-53; N[255 u/(1-255 u),6] -> 2.83107*10^-14— matches the stated 2.8311e-14.
Negative control (mine)
Copy of the checker with one expected value perturbed (oracle F4[7] 6.0 → 5.0, the E2M1 table used for the NVFP4 reference), same omc and head → rc=1, FAIL: nvfp4 ref. Log pr111-89a93a2-negctl.log. Tree left clean.
CI at 8476331
host-tests, runtime-api, library, hello-sim, drift, sbom, CodeQL (actions, c-cpp, python) — all pass (host-tests run 40454339017).
Chip
Not applicable: no chip claim; GPU, cuBLASLt comparison, SPIR-V lowering and model logits are NOT_RUN as the body states.
Levels
EXERCISED (host CPU, this head). Not QUALIFIED on any GPU.
Defects fixed
None in the units. Body: stale "Stacked on #100" line updated to state the merge/retarget. Branch: merge of origin/main 8476331.