Repository navigation
Add standalone resident Metal EXL3 projections - #681
Conversation
|
Validated
Raw logs remain local. Other GPUs and full-model integration were not tested. |
|
Thank you, @akol1. The proposal in #677 and this PR gave the Zig engine its first EXL3 operator on Metal, with the qualification we would have asked for already written: every codebook state against the scalar decoder, FP64 dots with the rounding boundaries stated, and the sampled-oracle limits labelled as such. It landed in 1.0.8 with the EXLR8 work, as your own commit ( What we checked:
What it led to: GLM-5.3 on two Macs. kindlingai's EXLR8 checkpoints use EXL3's trellis tiles with the codebook rounded to E4M3, so your operator's stages (rotate the input, decode and multiply, rotate the output) became the starting point for our EXLR8 projections on Metal and CUDA. Those rotate each token's activation once a layer and share it across experts, which the EXLR8 layout allows. In 1.0.8, GLM-5.3 from EXLR8 decodes at 21 tok/s with On our side there is a CHANGELOG line after your commit. If you take the operator further on M1, M2 or M4, or on a model, we'd like to see the numbers. |
… M5 Max and an M3 Ultra (ashhart#681)
…LM-5.3 on two M5 Ultras; ashhart#681 by akol1 as the Metal EXL3 base
…efault, --slide refusals, and Living Weights' 1.0.8 lines Under Unreleased: the EXLR8 pull and reader (thanks to @akol1 for ashhart#681, which landed with it), GLM-5.3 on two M5 Ultras with its measured speeds, exactness and limits, the two-Mac servers' MCDMA_FABRIC_QOS=1 default and raised send threads with the loaded and idle figures (and the speed-up guide's corrections), and the Metal --slide and GLM-5.3 --learn refusals. The six Living Weights lines go in verbatim after ashhart#657's line, which none of them repeats; their known issues are for the release notes.
… M5 Max and an M3 Ultra (ashhart#681)
ashhart#681 landed above as 841cdbbd3 (the author's commit, rebased onto this candidate). This keeps the PR's own head commit in the history, with no change to the tree.
…LM-5.3 on two M5 Ultras; ashhart#681 by akol1 as the Metal EXL3 base
…efault, --slide refusals, and Living Weights' 1.0.8 lines Under Unreleased: the EXLR8 pull and reader (thanks to @akol1 for ashhart#681, which landed with it), GLM-5.3 on two M5 Ultras with its measured speeds, exactness and limits, the two-Mac servers' MCDMA_FABRIC_QOS=1 default and raised send threads with the loaded and idle figures (and the speed-up guide's corrections), and the Metal --slide and GLM-5.3 --learn refusals. The six Living Weights lines go in verbatim after ashhart#657's line, which none of them repeats; their known issues are for the release notes.
What this changes
Closes #677. Adds standalone resident EXL3 Metal projections, compact row scratch and a real CLI consumer with independent FP64-dot qualification. This is a generic operator contribution, not a model port or serving-support claim.
Receipt
e7c523eb; candidate484508f9. Apple M3 Ultra, macOS 26.6.2, Zig 0.17.0, Xcode Metal toolchain. Deterministic compressed fixtures; no checkpoint, MLX or PyTorch dependency.zig build test-exl3 test-exl3-gpu test -Dcpu=apple_m1 --summary all: 1332 passed, 0 failed, 2 skipped in the combined build. Dedicated targets: 13 host/oracle and 18 device tests, all passing. Unchanged baseline host build: 1290 passed, 0 failed, 2 skipped.tf-exl3-bench --help,--qualify-only 1 --warmup 0 --repeats 1, and--warmup 1 --repeats 3 --prefill 32exercised.0.001800786, F320.000000090; candidate equals arithmetic baseline. Per-checked-column squared and absolute errors cannot worsen.worst_sampled, not advertised as whole-matrix bounds. Full-output bit comparisons are not sampled. Independent oracle uses scalar-format decoding, direct FP64 rotations and FP64 dots with the declared FP16 input-rotation boundary.zig fmtapplied; lean checker: 534 inherited findings, equal to pinned baseline, zero added. Checker exit 1 is explicitly not clean. API/lifetime and numerical/benchmark specialist reviews found no blocking issues.Checklist