JetBrains' Mellum2.1 Thinking coding model (12B mixture-of-experts, 2.5B active) in MLX NVFP4, sized for 16 GB Macs. NVFP4 stores 4-bit floats in groups of 16 weights with FP8 scales, and the MoE routers stay at 8-bit. At 6.84 GB it is about 30% closer to the BF16 original than MXFP4, the other ~7 GB build, and decodes at 95 to 96% of MXFP4's speed on an M4.
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-nvfp4 \
--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-nvfp4 \
--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 | KL to BF16, reasoning / answer / tool call | HumanEval+ | Median tokens | M4 decode tok/s, 1K / 4K / 16K |
|---|---|---|---|---|---|
| BF16 original | 24.3 GB | 0 | 153 (93.3%) | 1,571 | n/a |
| This NVFP4 | 6.84 GB | 0.105 / 0.043 / 0.042 | 145 (88.4%) | 1,674 | 63.9 / 61.4 / 55.8 |
| randmaru MXFP4 | 6.46 GB | 0.147 / 0.066 / 0.059 | 144 (87.8%) | 1,544 | 67.2 / 64.3 / 58.3 |
Long context fits on 16 GB. Measured MLX peak memory is 7.57 GB at 16K, 8.33 GB at 64K and 9.40 GB at 128K. Decode drops to 39.6 tok/s at 64K and 29.0 tok/s at 128K. Reading the prompt takes about 3 minutes at 64K and 9 minutes at 128K on an M4, so close memory-heavy apps before very long sessions.
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.One greedy HumanEval+ run, and the benchmark may overlap the training data. KL was measured on a 32-trajectory Python pilot corpus. Neither measures agent reliability. The release rule was written down before any NVFP4 measurement; the plan and every failed alternative are public.
JetBrains/Mellum2.1-12B-A2.5B-Thinking at 92ddae9fc7665e9f801d141d2e5a6b2caf2460c4, Apache-2.0. JetBrains created and trained the model.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-nvfp4 ./model-foldermodel-00001-of-00002.safetensors 4.9 GiBmodel-00002-of-00002.safetensors 1.4 GiBJetBrains/Mellum2.1-12B-A2.5B-Thinking