Qwen3.8 Flash-Next โ€” MLX, experts in 3-bit (e3bit), native MTP

The reference checkpoint of qwen38-mlx-swift, published so that nobody has to rebuild it: it is Vontra/Qwen3.8-Flash-Next-MLX-4bit-MTP with the routed experts re-quantized from 4-bit (group 32) to 3-bit (group 64). Everything else โ€” n-gram embedding tables, attention, shared expert, router gates, norms, vision tower, native MTP block โ€” is copied unchanged.

Vontra 4-bit (source) This pack
Size on disk 113 GB 84 GB
Routed experts (switch_mlp) 4-bit, group 32 3-bit, group 64
Other tensors as converted by Vontra identical
Weight shards 22 22 (same names, same tensor-to-shard layout)

Why: on a 96 GB Mac the 4-bit checkpoint barely fits; this one runs resident with room to spare, with the same greedy output on the project's regression guard.

Measured (M3 Max, 96 GB, qwen38-mlx-swift)

Value
Greedy decode 13.0โ€“13.5 tok/s
Prefill, varied prose, 4.8 k tokens 112 tok/s
Peak process memory, resident 57.6โ€“58.3 GB
First request (all layers loaded) 48โ€“63 s
Teacher-forced regression guard 10/28 ยท โˆ’4.8003182, identical to the 4-bit source

Full conditions: BENCHMARKS.md. Requirements: Apple Silicon with 96 GB of unified memory, macOS 15+.

Use

hf download VincentGOURBIN/Qwen3.8-Flash-Next-MLX-e3bit-MTP \
  --local-dir ~/models/local/Qwen3.8-Flash-Next-MLX-e3bit-MTP

# with qwen38-mlx-swift
qwen38 serve --model-path ~/models/local/Qwen3.8-Flash-Next-MLX-e3bit-MTP --enable-thinking

The loader must support qwen4_exp and per-module quantization (the experts are 3-bit/g64, the rest 4-bit/g32, as declared in config.json).

How it was made

Scripts/qwen4-exp-requantize-experts.py, with mlx-vlm==0.6.17: shard by shard, every *.mlp.switch_mlp.{gate_proj,up_proj,down_proj} tensor is dequantized from 4-bit/g32 and quantized to 3-bit/g64; every other tensor is copied byte for byte into the same output shard. Run it yourself to reproduce this pack from the Vontra source.

Licence

Derived from Qwen3.8 Flash-Next under the Qwen Community License 1.0 (included as LICENSE, unchanged from the source). Credit: Qwen for the model, Vontra for the MLX conversion with native MTP. Note the licence's conditions for very large commercial products and for "Model as a Service" or "AI Work Assistant" businesses.

Downloads last month
388
Safetensors
Model size
149B params
Tensor type
U32
ยท
BF16
ยท
I64
ยท
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for VincentGOURBIN/Qwen3.8-Flash-Next-MLX-e3bit-MTP

Quantized
(1)
this model