JetBrains' Mellum2.1 Thinking coding model (12B mixture-of-experts, 2.5B active) as native MLX 6-bit, group size 64, with 8-bit routers. It's benchmarked on the full HumanEval+ against BF16 and other quantizations, and measured on a 16 GB M4 MacBook Pro.
Code and raw results: github.com/imaddde867/mellum-mlx
pip install 'mlx-lm==0.32.0'
# Chat, with JetBrains' recommended sampling
python -m mlx_lm generate --model imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 \
--prompt 'Find the bug: def mean(xs): return sum(xs) / len(xs) - 1' \
--temp 0.6 --top-p 0.95 --top-k 20 --max-tokens 16384
# OpenAI-compatible server for coding agents
python -m mlx_lm server --model imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 \
--temp 1.0 --max-tokens 16384
Always set --max-tokens. Reasoning and the answer share the budget, and the server defaults to 512 tokens, which cuts a thinking model off before it answers.
| Build | Weights | HumanEval+ | Budget hits | Median tokens | M4 decode tok/s, 1K / 4K / 16K | M4 peak memory |
|---|---|---|---|---|---|---|
| BF16 original | 24.3 GB | 153 (93.3%) | 3 | 1,571 | n/a | n/a |
| This 6-bit | 9.87 GB | 146 (89.0%) | 3 | 1,521 | 47.2 / 46.0 / 42.8 | 10.5 GB |
| NVFP4 | 6.84 GB | 145 (88.4%) | 6 | 1,674 | 63.9 / 61.4 / 55.8 | 7.6 GB |
| randmaru MXFP4 | 6.46 GB | 144 (87.8%) | 6 | 1,544 | 66.7 / 63.6 / 57.4 | 7.2 GB |
| Affine 4-bit (not released) | 6.84 GB | 133 (81.1%) | 18 | 3,242 | n/a | n/a |
HumanEval+ setup: all 164 tasks with expanded tests, one CUDA GPU, upstream chat template, greedy decoding, 8,192-token budget that includes reasoning, a pinned EvalPlus container, one sample per task. M4 setup: 14-inch MacBook Pro with 16 GB. 6-bit and MXFP4 ran back to back, with 256 output tokens and three trials after warmup. NVFP4 was measured in a separate session, interleaved with MXFP4 (which averaged 67.2 / 64.3 / 58.3 there).
finish_reason: "tool_calls", but with an empty tool_calls list. A tested patch is in the GitHub repo, and an upstream fix is open in mlx-lm#1957.reasoning_content, but the server returns it as reasoning.JetBrains/Mellum2.1-12B-A2.5B-Thinking at 92ddae9fc7665e9f801d141d2e5a6b2caf2460c4, Apache-2.0. JetBrains created and trained the model.mlx_lm affine 6-bit with group size 64 and 8-bit routers; other weights stay BF16. No fine-tuning or calibration.Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 ./model-foldermodel-00001-of-00002.safetensors 4.9 GiBmodel-00002-of-00002.safetensors 4.3 GiBJetBrains/Mellum2.1-12B-A2.5B-Thinking