You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🫶 Feature request: read mixed 4/8-bit MLX checkpoints for Qwen3.8 Flash Next (qwen4_exp) #85
The new mixed-bit support in 0.3.6.2 is limited to the dense Qwen family, and Flash Next is still locked to uniform affine 4-bit/group-32. We ran a full comparison on the same machine (Mac Studio M3 Ultra 512 GB) and the quality gap is large enough to ask: is there a plan to extend the row kernels to the qwen4_exp MoE experts?
Our eval, same llmprobe core suite, 92 questions, greedy, 16k cap per question:
TensorFold with the uniform 4-bit pack is the fastest way to decode this model, but it pays for it with 10 to 12 accuracy points. The 8-bit body alone recovers all of it. Failing questions are stable across engines and runs (we rechecked 12 of them one by one, 12/12 reproduced), so this is the quant, not the runtime.
What we would like TensorFold to read:
MLX affine 8-bit group-64 experts (what mlx-community and E9 store), with BF16 structural tensors
per-module mixed maps: 4-bit body with 8-bit attention/indexer projections (the ddalcu and MTPLX Optimized-Speed layout), same quantization block format as the dense family
ideally the 4-bit g32 n-gram sidecar too, though a clear refusal there is fine, MTPLX streams it from SSD anyway
From the docs it looks like the row kernels for 2 to 8 bit weights are already shared across lane backends, and the quantization.md "Mixed precision" section already describes per-module maps. The missing piece seems to be the MoE expert reader for qwen4_exp and the fused-stack rule when experts disagree in bits or group size.
P.S. numbers for reference, same machine: uniform4 g32 on TensorFold decodes 127 tok/s, ENGINE E9 8-bit 70 to 77 tok/s, MTPLX 8-bit 55 to 62 tok/s flat to 255k context. So the ask is only about the format, not about speed.
Thank you for asking for this! It shipped in 0.4.0: Flash Next's mixed and 2-8-bit checkpoints (oQ4, oQ4e, oQ5e, and MLX 6- and 8-bit) now load and serve on Macs, each module in its checkpoint's own format, and drafted replies still equal "draft": false. Update with pip install -U git+https://github.com/ashhart/TensorFold.git. If your checkpoint still gives you trouble, reopen this and we'll look at it.
Activity
ashhart commentedon Sep 29, 2026
Thank you for asking for this! It shipped in 0.4.0: Flash Next's mixed and 2-8-bit checkpoints (oQ4, oQ4e, oQ5e, and MLX 6- and 8-bit) now load and serve on Macs, each module in its checkpoint's own format, and drafted replies still equal
"draft": false. Update withpip install -U git+https://github.com/ashhart/TensorFold.git. If your checkpoint still gives you trouble, reopen this and we'll look at it.docs: triage notes for parked upstream issues (ashhart#85, ashhart#87, …