Views
No views yet
Qwen/Qwen3-Next-80B-A3B-Instruct (apache-2.0)q_group_size=32 (some tensors may remain 16-bit for stability)config.json; tokenizer files included for drop-in usepip install mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("halley-ai/Qwen3-Next-80B-A3B-Instruct-MLX-5bit-gs32")
4print(generate(
5 model, tokenizer,
6 prompt="Explain the Chudnovsky algorithm to compute π.",
7 max_tokens=256, max_kv_size=512
8))1python -m mlx_lm generate --model halley-ai/Qwen3-Next-80B-A3B-Instruct-MLX-5bit-gs32 \
2 --prompt "Explain the Chudnovsky algorithm to compute pi." \
3 --max-kv-size 512 --max-tokens 256window=stride=4096, ~100k tokens, EOS inserted between docs.| Variant | PPL (ctx=4096, fast) |
|---|---|
| MLX bf16 (reference) | 5.14 |
| MLX 6-bit (gs=64) | 5.14 (≈0.0% vs bf16) |
| MLX 5-bit (gs=32) | 5.20 (+1.2% vs bf16, +1.2% vs 6b/gs64) |
| MLX 4-bit (gs=64) | 5.43 (+5.6% vs bf16, +5.6% vs 6b/gs64) |
1python python/scripts/test_perplexity-mlx.py \
2 --model_path "/path/to/Qwen3-Next-80B-A3B-Instruct-5bit-gs32" \
3 --fast --progress1python -m mlx_lm convert \
2 --hf-path Qwen3-Next-80B-A3B-Instruct \
3 --mlx-path /path/to/Qwen3-Next-80B-A3B-Instruct-5bit-gs32 \
4 -q --q-bits 5 --q-group-size 32