Model datasheet · Mellum2.1
Mellum2.1 12B-A2.5B Thinking
Quantization costs it more than most models: JetBrains' own Q4_K_M keeps the full-precision top token only 88% of the time, and an independent test found a plain 4-bit MLX build solved 81% of HumanEval+ against 93% at BF16 while thinking about twice as long. llama.cpp builds before b11785 (2026-10-21) either run it several times slower on NVIDIA and AMD GPUs or can produce NaN values on Macs. On JetBrains' own thinking-mode numbers it sits just behind Qwen3.5 9B on agentic coding (SWE-bench Verified 47 against 50) from 2.5B active parameters.
- Vendor
- JetBrains
- Architecture
- MoE · 12.1B total / ~2.5B active
- Context
- 131,072 tokens
- License
- Apache-2.0
- Released
- 2026-09-20
- Vision
- No
→ GGUF (llama.cpp / LM Studio / Ollama) → MLX (Apple Silicon)
Architecture, from its own config.json
28 layers · 21 sliding window · 7 full attention
32 attention heads over 4 KV heads (GQA 8:1), head dim 128 · mixture of experts, 2.5B of 12.1B active per token across 8 experts · vocabulary 98,304
Where the memory goes: weights by band above, plus a KV cache of 175MB at 8K · 511MB at 32K · 1.8GB at 128K, plus the runtime's own working memory — dominated by the output projection over that vocabulary.
Inside one layer, from its own tensors
28 × layer
21 sliding-window layers, 7 full-attention layers — the same block either way. What differs is how far back the mask lets attention look, not what the layer is built from.
The green line down the right of each half is the residual: it leaves the spine above the norm, skips the operation entirely and rejoins at the +. Where attention is drawn open, q, k and v are scaled to their real output widths — a model that shares key and value heads across many query heads shows one wide box beside two narrow ones.
Around the stack: an embedding of 98,304 × 2,304, a final norm, and a separate output projection.
On the norm names: despite what it is called, post_attention_layernorm is drawn after the residual add here, which is where this family applies it — it normalises the input to the feed-forward, not the output of attention. Models that carry a separate pre_feedforward_layernorm use it the other way, and are drawn that way.
§1 Characteristics by quantization band
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q3_K_M · aggregated · 2026-10-30
Editorial derivation: Q3_K_M is bartowski's 6.70GB imatrix file; JetBrains publishes nothing below 4-bit. Two points down from bf16. The saving over JetBrains' MXFP4_MOE (7.03GB) is about 0.3GB, so this band is rarely the trade worth making.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q3_K_M · aggregated · 2026-10-30
Editorial derivation: Q3_K_M is bartowski's 6.70GB imatrix file; JetBrains publishes nothing below 4-bit. Two points down from bf16.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q3_K_M · aggregated · 2026-10-30
Editorial derivation: Q3_K_M is bartowski's 6.70GB imatrix file; JetBrains publishes nothing below 4-bit. Two points down from bf16; nobody has measured these files.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q3_K_M · aggregated · 2026-10-30
Editorial derivation: Q3_K_M is bartowski's 6.70GB imatrix file; JetBrains publishes nothing below 4-bit. Two points down from bf16.
Q4–Q5 — 4–5 bit
8.1GB weights · e.g. Q4_K_M , mxfp4 , nvfp4 + KV: 175MB at 8K · 511MB at 32K · 1.8GB at 128Kdata checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q4_K_M · aggregated · 2026-10-30
Editorial derivation: Q4_K_M is JetBrains' recommended 8.1GB file. One point down: its KL divergence from bf16 is high for a 4-bit file (see below).
- quant-degradation-community — Mean KLD vs bf16 (Wikitext-2, n_ctx 512) = 0.075 @ Q4_K_M · aggregated · 2026-10-30
Editorial derivation: supporting evidence only, a token-distribution distance rather than a task score. JetBrains' Q4_K_M keeps the bf16 top token 88.0% of the time; MXFP4_MOE (7.0GB) is 0.115 and 85.6%. For comparison, bartowski's Q4_K_M of Qwen3.8 27B measures 0.0139.
Published by JetBrains for its own GGUF files.
- quant-degradation-community — HumanEval+ pass@1 (164 tasks, greedy, 8,192-token budget) = 88.4 @ nvfp4 · aggregated · 2026-10-30
Measured by a third party on an NVFP4 MLX build (6.84GB), the closest of the ~7GB MLX builds to bf16.
145 of 164 against 153 at bf16. A plain affine 4-bit MLX build (mlx-4bit) of the same size solved 133 (81.1%), ran out of its token budget on 18 tasks against 3 at bf16, and wrote completions 2.2 times as long. randmaru's MXFP4 MLX build solved 144 (87.8%).
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q4_K_M · aggregated · 2026-10-30
Editorial derivation: Q4_K_M is JetBrains' recommended 8.1GB file. One point down; math goes first under 4-bit on a 2.5B-active mixture.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q4_K_M · aggregated · 2026-10-30
Editorial derivation: Q4_K_M is JetBrains' recommended 8.1GB file. One point down. Structured calls need token-level precision that a sparse model has less of to spare.
One user ran docker/model-test's 17-case agent suite on this Q4_K_M with llama-server and passed 14 (HF discussion #1 on the GGUF repo); that is a single run of an easy suite.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q4_K_M · aggregated · 2026-10-30
Editorial derivation: Q4_K_M is JetBrains' recommended 8.1GB file. One point down rather than carried: the affine 4-bit MLX build's 2.2x longer reasoning, and one user's report that quants below Q8 are unusable (GGUF repo discussion #2), point to looser control at this width.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q6_K · aggregated · 2026-10-30
Editorial derivation: Q6_K is JetBrains' own 10.9GB file. Carried from the full band.
- quant-degradation-community — Mean KLD vs bf16 (Wikitext-2, n_ctx 512) = 0.02 @ Q6_K · aggregated · 2026-10-30
Editorial derivation: supporting evidence only, a token-distribution distance rather than a task score. JetBrains' Q6_K keeps the bf16 top token 93.9% of the time; Q8_0 is 0.008 and 96.1%. Both are higher than typical for these widths, which is the first sign this model is quant-sensitive.
Published by JetBrains for its own GGUF files.
- quant-degradation-community — HumanEval+ pass@1 (164 tasks, greedy, 8,192-token budget) = 89 @ Q6_K · aggregated · 2026-10-30
Measured by a third party on a 6-bit affine MLX build (group size 64, 9.87GB, byte-identical to mlx-community's 6-bit), recorded under the nearest vocabulary entry; there is no mlx-6bit entry.
146 of 164 against 153 at bf16 on the same harness: seven tasks lost at 6-bit, on one greedy sample per task.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q6_K · aggregated · 2026-10-30
Editorial derivation: Q6_K is JetBrains' own 10.9GB file. Carried from the full band.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q6_K · aggregated · 2026-10-30
Editorial derivation: Q6_K is JetBrains' own 10.9GB file. Carried from the full band.
data checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q6_K · aggregated · 2026-10-30
Editorial derivation: Q6_K is JetBrains' own 10.9GB file. Carried from the full band.
FP16 — full precision (fp16/bf16)
24.3GB weights · e.g. bf16 + KV: 175MB at 8K · 511MB at 32K · 1.8GB at 128Kdata checked Oct 2026
- vendor-model-card — LiveCodeBench v6 = 82 @ bf16 · vendor-reported · 2026-10-30
JetBrains evaluated every model in its table with one pipeline in thinking mode; non-agentic benchmarks use greedy decoding. Same table: Qwen3.5 9B 75.4, Gemma 4 E4B 69.4.
- vendor-model-card — SWE-bench Verified = 47 @ bf16 · vendor-reported · 2026-10-30
Agentic rows use the open-source Pi harness (v0.73.1, shell and file tools) with each model's default sampling (temperature 1.0 for Mellum2.1), 114K context and up to 16K tokens per turn, so they are not comparable with SWE-bench figures run in other harnesses. Same table: Qwen3.5 9B 50.0, Gemma 4 E4B 23.0, Mellum2 Thinking 2.0. Terminal-Bench 2.1 17.4 (Qwen3.5 9B 21.7) and SWE-bench Pro 28.0 (Qwen3.5 9B 38.0) on the same card.
- quant-degradation-community — HumanEval+ pass@1 (164 tasks, greedy, 8,192-token budget) = 93.3 @ bf16 · aggregated · 2026-10-30
Measured at bf16 by a third party (imaddde867/mellum-mlx), on one CUDA GPU with the upstream chat template; one sample per task, reasoning counted in the budget.
153 of 164 tasks. Consistent with the vendor's HumanEval+ 91.5. HumanEval+ is close to saturated and says little about agentic coding, so it supports the score without setting it. Absent from the Aider polyglot leaderboard as of 2026-10-30.
data checked Oct 2026
- vendor-model-card — AIME 25/26 = 83.3 @ bf16 · vendor-reported · 2026-10-30
JetBrains evaluated every model in its table with one pipeline in thinking mode; non-agentic benchmarks use greedy decoding. Mean of AIME 2025 and AIME 2026, 30 questions each. Same table: Qwen3.5 9B 86.7, Gemma 4 E4B 45.0.
- vendor-model-card — GPQA Diamond = 64.6 @ bf16 · vendor-reported · 2026-10-30
JetBrains evaluated every model in its table with one pipeline in thinking mode; non-agentic benchmarks use greedy decoding. Same table: Qwen3.5 9B 77.8. Science reasoning, recorded here because it is where the gap to Qwen3.5 9B is widest.
data checked Oct 2026
- vendor-model-card — BFCL v4 = 62.3 @ bf16 · vendor-reported · 2026-10-30
JetBrains evaluated every model in its table with one pipeline in thinking mode; non-agentic benchmarks use greedy decoding. Macro-average of five subtasks (v1, v2, v3, web search, memory). Same table: Qwen3.5 9B 58.5. ToolHop 49.1 (Qwen3.5 9B 52.0) and WorkBench 44.6 (39.7) are also on the card.
data checked Oct 2026
- vendor-model-card — IFEval = 90.6 @ bf16 · vendor-reported · 2026-10-30
JetBrains evaluated every model in its table with one pipeline in thinking mode; non-agentic benchmarks use greedy decoding. Same table: Qwen3.5 9B 92.4, Gemma 4 E4B 90.8. No IFBench number is published.
§2 Known issues & what fixes them
Which llama.cpp build you run matters more than usual. The Mellum architecture has been in stock llama.cpp since June 2026, but this model's expert layers produce values past the range of 16-bit floats. Builds before mid-October can return NaN on Macs at Q8_0, Q6_K and Q4_K_M (issue #30579; generated text usually looks normal because only the last layer is hit). The first fix moved those layers to the CPU on NVIDIA, AMD and Vulkan, making it about eight times slower (issue #30704, from 44.7 to 5.5 tokens/s on an RTX 3050). A replacement fix (#30861) shipped in b11785 on 2026-10-21, and a Vulkan user confirmed the speed came back. Issue #30704 was still open on 2026-10-30, and a maintainer noted one remaining overflow path in some quantization kernels.
Use llama.cpp b11785 or newer, or Ollama 0.40.10 or newer (it pins b11803). If it is running at single-digit tokens per second on a GPU, or perplexity shows nan, the runtime is the first thing to check. LM Studio's bundled llama.cpp version was not checked.
Evidence · 5 sources · community-consensus
- llama.cpp #30579: Mellum NaN on Metal with Q8_0 (ffn_moe_down input exceeds F16 range) (github, 2026-10-30)
- llama.cpp #30704: Mellum 8x slower on CUDA since #30584 (open) (github, 2026-10-30)
- llama.cpp PR #30861: scale MoE down projection per expert token (merged 2026-10-21) (github, 2026-10-30)
- Order of magnitude slower than qwen3.6, partially offloaded on CUDA (other, 2026-10-30)
- This model does not run on the GPU on AMD hardware with either Vulkan or ROCm (other, 2026-10-30)
It loses more to quantization than most models in this catalogue. JetBrains' own measurements put its Q4_K_M at a KL divergence of 0.075 from BF16 (top token kept 88% of the time) and even Q8_0 at 0.008. On HumanEval+, an independent test found BF16 solved 93.3%, a 6-bit MLX build 89.0%, an NVFP4 build 88.4%, and a plain affine 4-bit build 81.1%, with the affine build reasoning 2.2 times as long and running out of tokens far more often. One user's verdict was that quants below Q8 are unusable; that is a single opinion, but it points the same way.
Q8_0 is 12.9GB and Q6_K 10.9GB, so on a 16GB GPU or a 24GB Mac the higher band costs little. On a Mac at 4-bit, prefer NVFP4 or MXFP4 MLX builds over plain affine 4-bit.
Evidence · 3 sources · community-consensus
- JetBrains GGUF repo: KLD and top-token match vs BF16 for every published quant (vendor, 2026-10-30)
- mellum-mlx: HumanEval+ for BF16 and five MLX quantizations, with reasoning-length audit (github, 2026-10-30)
- Overthinking (reply: "Use Q8. Smaller Quants are unusable.") (other, 2026-10-30)
The 3-bit files are barely smaller than the 4-bit ones: bartowski's Q3_K_M is 6.70GB against JetBrains' MXFP4_MOE at 7.03GB and bartowski's IQ4_XS at 6.97GB. Only the 2-bit files (IQ2_M 5.40GB, Q2_K 5.53GB) save more than half a gigabyte. Nobody has measured any of them, and since 4-bit already costs this model noticeably, this band is scored two points down on every quant-sensitive dimension.
Take JetBrains' MXFP4_MOE (7.03GB) or bartowski's IQ4_XS (6.97GB) instead; they cost about 0.3GB more than Q3_K_M.
If even 7GB of weights does not fit, there is no good build of this model for that machine.
Evidence · 2 sources · anecdotal
- bartowski imatrix GGUFs (IQ2_M 5.40GB to Q8_0 12.93GB) (other, 2026-10-30)
- JetBrains GGUF repo: MXFP4_MOE 7.0GB, smallest official file (vendor, 2026-10-30)
It is a thinking model and thinks at length, including on trivial prompts: one user posted a long reasoning trace in reply to "introduce yourself", and another, getting 6.5 tokens/s on an RTX 3080, asked whether the thinking could be halved. JetBrains' examples budget 81,920 output tokens. The chat template has an enable_thinking switch, but every benchmark here was run with thinking on, and nobody has published what turning it off costs.
Budget output tokens generously (MLX-LM's server defaults to 512, which cuts reasoning off). llama.cpp's reasoning budget can cap the trace, at a cost in quality that has not been measured.
Evidence · 3 sources · community-consensus
- Overthinking (other, 2026-10-30)
- it is amazing, but i hope the thinking process can be reduced by half (other, 2026-10-30)
- Mellum2.1 Thinking model card (quickstart with max_tokens 81920) (vendor, 2026-10-30)
Its agentic numbers come from one small harness (Pi, with four tools), and early users report it is fragile elsewhere. In the Continue extension it appends a stray quote to tool names, so every call errors. It fails many tool calls when working in a bare git repository. MLX-LM 0.32.0's server silently drops tool calls it cannot parse and returns reasoning under a field name the template does not read back, so the model loses its earlier reasoning in tool loops; the proposed fix (mlx-lm #1957) was closed without being merged.
Use a harness with a small tool set and a short system prompt (users report Pi works; JetBrains benchmarked with it), and test your own tool loop before relying on it.
The one passing agent test (14 of 17) was on Q4_K_M; lower widths are untested.
Evidence · 4 sources · community-consensus
- Always appends a " to tool calls when using the VS Code extension Continue (other, 2026-10-30)
- Trouble with bare git repos (other, 2026-10-30)
- mellum-mlx findings 4 and 5: MLX-LM drops unparseable tool calls; reasoning lost in tool loops (github, 2026-10-30)
- mlx-lm PR #1957: Fix silent drop of unparseable tool calls in server (closed, not merged) (github, 2026-10-30)
The window is 131K tokens, but JetBrains publishes no long-context benchmark, and three of every four layers only see the last 1,024 tokens. One user building an agent extension reports it getting lost and confused past about 60K tokens of context. One report is not a measurement, so the long-context cell stays unrated.
Keep the working context well under the window; retrieve the relevant files instead of loading a whole repository.
Evidence · 1 source · anecdotal
- Reply by pauleveritt: context over 60K starts to get lost and confused (other, 2026-10-30)
Every full-precision score here comes from JetBrains' own table, run with its own pipeline against two rivals it chose. The only independent measurement found is a HumanEval+ run, which agrees with the vendor's figure. As of 2026-10-30 it is absent from the Aider polyglot leaderboard, the Vectara HHEM leaderboard (updated 2026-10-22) and EQ-Bench Creative Writing, so factuality and creative writing are unrated.
Not a defect but a caveat. Revisit when independent numbers land.
Evidence · 3 sources · anecdotal
- Mellum2.1 Thinking model card (vendor benchmark table, "All values are self-reported by JetBrains") (vendor, 2026-10-30)
- Aider polyglot leaderboard (no Mellum entry) (leaderboard, 2026-10-30)
- Vectara HHEM leaderboard (no Mellum entry, updated 2026-10-22) (leaderboard, 2026-10-30)