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
Flash Next: Jundot/Qwen3.8-Flash-Next-oQ4e-mtp fails to load (n-gram table scale other than 1) #142
The 0.4.0 notes say Flash Next oQ4/oQ4e/oQ5e checkpoints load and serve on Macs. The widely used oMLX quant Jundot/Qwen3.8-Flash-Next-oQ4e-mtp (sha 2615fc0e, quantized with oMLX v0.6.3rc3) is refused at load time:
tensorfold: language_model.model.layers.1.ple.ple_embedding.ngram_embedding.weight_scale: an n-gram table scale other than 1 is not supported
Raised in tensorfold/families/qwen4_exp/model.py:314.
ngram_embedding.weight_scale: BF16 shape [1], value 0.0002 (one table, in model-00001-of-00021.safetensors)
the n-gram table itself is quantized in shards: ngram_embedding.shards.N.{weight,scales,biases}, 4-bit, group size 32, affine (weight U32 [2500012, 20], scales/biases BF16 [2500012, 5])
Command:
tensorfold serve ~/models-qwen/Qwen3.8-Flash-Next-oQ4e-mtp --name Qwen3.8-Flash-Next-oQ4e-mtp --parallel auto
tensorfold info on the same directory reports the family correctly (qwen4_exp, MLX 4-bit, groups of 64), so the failure only appears at load.
Vontra/Qwen3.8-Flash-Next-MLX-4bit-MTP works fine for us on 0.3.5.1 and 0.5.0. Supporting the scaled n-gram table would let existing oMLX installations switch without re-downloading 113 GB.
Thanks for the report. Jundot's Qwen3.8-Flash-Next-oQ4e-mtp was refused because an n-gram table's weight scale was something other than 1. #148 applies that scale at lookup, on Macs and on CUDA, with one bf16 rounding. The Jundot checkpoint loaded, drafted replies matched serial 9 of 9, and the same 9 matched a solo run at 4 streams. A checkpoint whose scale was already 1 kept the same replies, 9 of 9. This is in 0.6.0, out tonight.
Activity
feat(qwen4_exp): apply an n-gram table's weight_scale at lookup inste…
ashhart commentedon Sep 30, 2026
Thanks for the report. Jundot's Qwen3.8-Flash-Next-oQ4e-mtp was refused because an n-gram table's weight scale was something other than 1. #148 applies that scale at lookup, on Macs and on CUDA, with one bf16 rounding. The Jundot checkpoint loaded, drafted replies matched serial 9 of 9, and the same 9 matched a solo run at 4 streams. A checkpoint whose scale was already 1 kept the same replies, 9 of 9. This is in 0.6.0, out tonight.
feat(qwen4_exp): apply an n-gram table's weight_scale at lookup inste…