This is a 4-bit affine MLX quantization of JetBrains/Mellum2-12B-A2.5B-Thinking.
Mellum2 Thinking is a reasoning-augmented Mixture-of-Experts assistant model.
It has 64 experts with 8 active per token, a 131,072-token context window, and
emits reasoning in <think>...</think> blocks before the final answer.
JetBrains/Mellum2-12B-A2.5B-Thinking<|im_end|> (token ID 28)The upstream config.json and generation_config.json identify token ID 0 as
the EOS token, while the tokenizer identifies <|im_end|> (ID 28) as EOS.
This conversion uses token ID 28 so MLX generation stops at the end of the
assistant turn.
pip install -U mlx-lm
mlx_lm.chat \
--model mlx-community/Mellum2-12B-A2.5B-Thinking-4bit \
--max-tokens 8192 \
--temp 0.6 \
--top-p 0.95Benchmarked with oMLX 0.5.7 and MLX-LM 0.31.3 on an Apple M5 Max MacBook Pro with 128 GB unified memory, using the built-in Python-code workload and 128 generated tokens. Results vary with hardware, runtime versions, context length, and generation settings.
| Prompt tokens | TTFT | Prefill | Generation | End-to-end | Peak memory |
|---|---|---|---|---|---|
| 4,096 | 2,528.6 ms | 1,619.9 tok/s | 95.2 tok/s | 3.9 s | 7.15 GB |
| 16,384 | 8,526.5 ms | 1,921.5 tok/s | 88.2 tok/s | 10.0 s | 7.39 GB |
| 32,768 | 19,905.8 ms | 1,646.2 tok/s | 92.7 tok/s | 21.3 s | 7.77 GB |
| 65,536 | 44,242.3 ms | 1,481.3 tok/s | 85.4 tok/s | 45.8 s | 8.47 GB |
| 131,072 | 96,718.2 ms | 1,355.2 tok/s | 44.2 tok/s | 99.6 s | 9.90 GB |
At a 4,096-token prompt, batch generation achieved 193.9, 183.4, and 233.6 aggregate generation tok/s at 2, 4, and 8 concurrent requests, respectively, compared with 95.2 tok/s for one request.
For the original model card, training details, benchmark results, and usage guidance, see the upstream JetBrains checkpoint.