Skip to content

Flash Next: Jundot/Qwen3.8-Flash-Next-oQ4e-mtp fails to load (n-gram table scale other than 1) #142

Closed

Description

@cwschroeder

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.

Environment: TensorFold 0.5.0, MLX 0.32.3, M3 Ultra 256 GB, macOS 26.

Checkpoint details:

  • 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.

Activity

  1. ashhart commented on Sep 30, 2026

    @ashhart
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions