[!NOTE] This is a mixed-precision MLX quantization (
oQ5e, group-size 64) of JetBrains/Mellum2.1-12B-A2.5B-Thinking (rev92ddae9fc7665e9f801d141d2e5a6b2caf2460c4), quantized with oMLX0.7.0(oqe_code_multilingual, 128x512). 5-bit base, 6-bit attention on most layers, 8-bit embeddings,lm_headand select attention. Total weights ~8.7GB in 2 safetensors shards. This version does not contain the MTP head, so no speculative decoding / vLLM MTP. All sections below are unchanged from the source model card.
Performance (oQ5e, MacBook Air M5 32GB)
Config: thinking on (default), omlx 0.7.0, temp 0.6 / top_p 0.95 / top_k 20, 64 new tokens, code prompts. Harness: pi agent 1.1.0. Max ctx 131,072 — 128K tested below.
| Context | Decode | Memory |
|---|---|---|
| 1.6K | ~53 tok/s | weights ~8.1GB |
| 6.3K | ~48 tok/s | same |
| 25K | ~34 tok/s | same |
| 128K | prefill ~145s, decode ~26 tok/s | total ~8.5GB, no pressure; 128K fits on 32GB |
Short-ctx figures are warmed medians (server decode). At 128K the split is streaming TTFT + decode. Sliding window (21 layers @1024) keeps KV flat. Note: 128K prefill is slower than oQ8e (mixed-precision prefill cost); decode is on par.
Quickstart
- Download and install oMLX from https://omlx.ai/
- Download the huffingface model:
niteg/Mellum2.1-12B-A2.5B-Thinking-oQ5e - [Optional] Copy the recipe below to reproduce the performance numbers above.
omlx recipe
Paste into omlx desktop (model_settings.json, under models, key Mellum2.1-12B-A2.5B-Thinking-oQ5e):
{
"temperature": 0.6,
"top_p": 0.95,
"top_k": 20,
"repetition_penalty": 1.0,
"presence_penalty": 0.0,
"force_sampling": false,
"max_tool_result_tokens": 0,
"enable_thinking": true,
"qwen4_ple_ssd_offload": false,
"deepseek_v41_engram_ssd_offload": false,
"deepseek_v41_ced_prefill_enabled": false,
"thinking_budget_enabled": false,
"thinking_budget_tokens": 8192,
"guided_grammar_enabled": false,
"turboquant_kv_enabled": false,
"turboquant_kv_bits": 4.0,
"turboquant_skip_last": true,
"qwen35_ane_prefill_enabled": false,
"qwen35_ane_prefill_sequence_length": 2048,
"qwen35_ane_prefill_tail_padding_min_tokens": 0,
"qwen35_ane_prefill_shared_fraction": 1.0,
"qwen35_ane_prefill_fused_down": false,
"qwen35_ane_prefill_max_layers": 64,
"qwen35_ane_prefill_dual_ane": true,
"qwen35_ane_prefill_gdn": true,
"qwen35_ane_prefill_gdn_fraction": 0.5,
"qwen35_ane_prefill_gdn_max_layers": 48,
"qwen35_ane_prefill_cpu_enabled": false,
"qwen35_ane_prefill_cpu_fraction": 0.135,
"qwen35_ane_prefill_cpu_down_fraction": 0.0,
"qwen35_ane_prefill_cpu_gdn_fraction": 0.0,
"qwen35_ane_prefill_cpu_threads": 8,
"qwen35_ane_prefill_cpu_shared_resource": true,
"qwen35_oq_a8_enabled": false,
"qwen35_oq_a8_min_tokens": 128,
"moe_expert_offload_enabled": false,
"moe_expert_offload_resident_fraction": 0.25,
"specprefill_enabled": false,
"dflash_enabled": false,
"dflash_in_memory_cache": true,
"dflash_in_memory_cache_max_entries": 4,
"dflash_in_memory_cache_max_bytes": 8589934592,
"dflash_ssd_cache": false,
"dflash_ssd_cache_max_bytes": 21474836480,
"dflash_draft_sink_size": 0,
"mtp_enabled": false,
"vlm_mtp_enabled": false,
"is_pinned": false,
"is_default": false,
"is_hidden": false,
"is_favorite": false,
"trust_remote_code": false,
"active_profile_name": "p-a8509178-a3ff-416b-b146-4e23",
"max_context_window": 131072,
"max_tokens": 32768
}
Mellum2.1 Thinking
[!Note] Mellum2.1 is a thinking model. Use it for complex agentic tasks, such as working in a repository, running commands, and calling tools, and for hard non-agentic problems in coding, math, and reasoning.
Mellum2.1 Highlights
Mellum2.1 is the next version of Mellum2 Thinking. The architecture is unchanged (a 12B mixture-of-experts model with 2.5B active parameters), and almost all of the work for this version went into post-training, primarily reinforcement learning (RL):
- Reinforcement learning at a new scale: RL went from a short final stage to the main part of training, after many experiments on both the methods and the data.
- More data, filtered harder: new RL tasks in math, competitive programming, science, tool use, and software engineering, combining open RL datasets with tasks we built ourselves and filtering every source before training.
- Real environments for agentic skills: for software engineering, the model trains inside real repositories with a shell and file-editing tools and is rewarded when the tests pass.
As a result, Mellum2.1 handles agentic tasks much better than Mellum2. After millions of sandboxed runs in real environments during training, it explores a codebase, edits files, and checks its own changes.
Model Overview
Mellum2.1 Thinking has the following features:
- Number of Parameters: 12B total, 2.5B active
- Number of Layers: 28
- Hidden Size: 2304
- Intermediate Size: 7168
- MoE Intermediate Size: 896
- Number of Experts: 64
- Number of Activated Experts: 8
- Number of Attention Heads (GQA): 32 for Q and 4 for KV
- Context Length: 131,072
- Sliding Window: 1,024 (3 of every 4 layers)
- Vocabulary Size: 98,304
- Precision: bfloat16
- License: Apache 2.0
Evaluation
All values are percentages; higher is better except HarmBench, where lower is better. All models were evaluated by JetBrains with the same pipeline in thinking mode. All values are self-reported by JetBrains.
| Benchmark | Mellum2.1 Thinking | Mellum2 Thinking | Gemma 4 (E4B) | Qwen3.5 (9B) |
|---|---|---|---|---|
| Coding | ||||
| LiveCodeBench v6 | 82.0 | 69.4 | 69.4 | 75.4 |
| HumanEval+ | 91.5 | 90.9 | 89.1 | 89.6 |
| MBPP+ | 79.4 | 75.4 | 70.9 | 69.8 |
| Math | ||||
| AIME 25/26 | 83.3 | 60.1 | 45.0 | 86.7 |
| GSM-Plus | 88.3 | 87.1 | 87.4 | 91.4 |
| Agentic | ||||
| SWE-bench Verified | 47.0 | 2.0 | 23.0 | 50.0 |
| Terminal-Bench 2.1 | 17.4 | 0.6 | 3.4 | 21.7 |
| SWE-bench Pro | 28.0 | 0.0 | 4.0 | 38.0 |
| Tool Use | ||||
| BFCL v4 | 62.3 | 49.6 | 52.5 | 58.5 |
| WorkBench | 44.6 | 45.1 | 46.1 | 39.7 |
| ToolHop | 49.1 | 46.7 | 39.9 | 52.0 |
| Conversational | ||||
| IFEval | 90.6 | 79.5 | 90.8 | 92.4 |
| Knowledge | ||||
| GPQA Diamond | 64.6 | 51.0 | 53.1 | 77.8 |
| MMLU-Redux | 87.8 | 86.0 | 84.9 | 89.5 |
| MixEval-Hard | 46.4 | 41.6 | 41.4 | 50.3 |
| Safety | ||||
| XSTest | 88.8 | 91.2 | 95.2 | 95.6 |
| HarmBench (↓) | 8.5 | 21.5 | 38.1 | 6.6 |
Notes:
- Non-agentic benchmarks use greedy decoding.
- Agentic benchmarks use the same open-source agent harness (Pi v0.73.1, shell and file tools) for every model, with each model's default sampling (temperature 1.0 for Mellum2.1), a 114K-token context, and up to 16K tokens per turn.
- AIME is the mean of AIME 2025 and AIME 2026 (30 questions each).
- BFCL v4 is the macro-average of five subtasks: v1, v2, v3, web search, memory.
- Mellum2 Thinking was re-evaluated with this pipeline, so its numbers differ slightly from the Mellum2 Technical Report.
License
Released under the Apache 2.0 license.