Mellum2.1 Hands-On: JetBrains Bet Everything on RL Post-Training for This 12B MoE — Here’s What It Bought

JetBrains released Mellum2.1 on October 8, 2026, with the model card and official blog dropping the same day. Compared to Mellum2, which was open-sourced in June, the architecture hasn’t changed a single line — it’s still a 12B total / 2.5B active MoE under Apache 2.0. Everything that changed happened after pre-training, specifically by promoting reinforcement learning from a finishing stage to the bulk of training and throwing the model into real repositories. The two numbers that tell the story best: SWE-bench Verified jumped from 2.0% to 47.0%, and Terminal-Bench 2.1 went from 0.6% to 17.4%.

If you’re looking for a model that runs on your own hardware, edits files inside a codebase, and calls tools, here’s everything — deployment commands, sampling parameters, benchmark breakdowns, and what you still can’t get.

Mellum2.1 compared with Mellum2, Qwen3.5-9B, and Gemma 4 E4B

Architecture Didn’t Move — Post-Training Did

The version number only bumped by 0.1 because the backbone is a straight carry-over. 28 layers, hidden size 2304, intermediate size 7168, MoE intermediate size 896, 64 experts with 8 activated per token, 32 attention heads for Q and 4 for KV (GQA), vocabulary size 98,304, bfloat16 precision. Context length is 131,072, with 1,024 sliding window on 3 of every 4 layers. The base model is JetBrains/Mellum2-12B-A2.5B-Base.

Three things changed, and JetBrains is blunt about them in the blog.

First, RL’s weight in training. In Mellum2, RL was a short final stage. In Mellum2.1, it became the main part. JetBrains says they ran many experiments on both methods and data and kept only what held up.

Second, more data with harder filtering. New RL tasks span math, competitive programming, science, tool use, and software engineering, combining open RL datasets with self-built tasks. Open data typically comes with broken test cases, unverifiable answers, or problems that are either too easy or impossible for the model — so every source gets filtered before it reaches training.

Third, real environments for agentic skills. JetBrains built infrastructure to run thousands of RL environments in parallel and launched millions of sandboxes over the course of training. For software engineering, the model trains inside real repositories with shell and file-editing tools, and the reward signal is whether tests pass.

This explains what otherwise looks like an absurd gap. On SWE-bench Verified, Mellum2 scored 2.0%. Mellum2.1 scores 47.0%. Same model size — the difference is whether it ever practiced inside a real repo.

Getting It Running: Two vLLM Commands

The model card only gives vLLM as a deployment path. Two commands, differing on whether you want tool calling.

# Without tool calling
vllm serve JetBrains/Mellum2.1-12B-A2.5B-Thinking \
  --max-model-len 131072 \
  --reasoning-parser qwen3

# With tool calling
vllm serve JetBrains/Mellum2.1-12B-A2.5B-Thinking \
  --max-model-len 131072 \
  --reasoning-parser qwen3 \
  --enable-auto-tool-choice \
  --tool-call-parser hermes

Both parsers deserve a note. --reasoning-parser qwen3 separates chain-of-thought content from the final answer. Without it, you’ll see reasoning and answer mixed together in the output. --tool-call-parser hermes paired with --enable-auto-tool-choice is what makes the server parse tool calls in Hermes format — if you’re building an agent, both flags are essentially required.

--max-model-len goes straight to 131072, the model’s supported ceiling, but VRAM is on you to calculate. 12B parameters in bfloat16 puts weights around the 24GB mark, plus KV cache for 128K context. A single H200 is the safe bet.

Don’t Copy the Default Sampling Values

The model card’s Quickstart uses the OpenAI-compatible interface. The key detail is top_k inside extra_body — this parameter isn’t part of the standard OpenAI API and has to be passed separately.

from openai import OpenAI
# Configured by environment variables
client = OpenAI()

messages = [
    {"role": "user", "content": "Find the bug in this function and explain the fix: def mean(xs): return sum(xs) / len(xs) - 1"},
]

chat_response = client.chat.completions.create(
    model="JetBrains/Mellum2.1-12B-A2.5B-Thinking",
    messages=messages,
    max_tokens=81920,
    temperature=0.6,
    top_p=0.95,
    extra_body={"top_k": 20},
)
print("Chat response:", chat_response)

temperature=0.6, top_p=0.95, top_k=20 suits conversation and reasoning. What’s interesting is that evaluation uses different sampling. Non-agentic benchmarks use greedy decoding, while the agentic batch gives Mellum2.1 temperature 1.0. In other words, for agent work the official stance encourages higher temperature — between exploration and tool-call stability, they picked the former.

max_tokens at 81920 is because this is a thinking model and reasoning tokens eat a chunk of the budget. Set it too low and you’ll get truncated mid-thought.

Reading the Benchmarks: The Biggest Gain Isn’t in Coding

Flattening all benchmarks into one view will misjudge this model. Breaking them out by category shows what it’s actually good at.

Benchmark Mellum2.1 Mellum2 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

Among the three coding benchmarks, LiveCodeBench v6 gained 12.6 points while HumanEval+ gained only 0.6. HumanEval+-style problems are near ceiling for current models and losing reference value; LiveCodeBench’s rolling, time-gated question bank better reflects real capability.

Math gains are substantial — AIME 25/26 went from 60.1 to 83.3 — but on the same table, Qwen3.5-9B sits at 86.7 and still leads. On GSM-Plus, all three competitors cluster between 87 and 91, basically inseparable.

On tool use, Mellum2.1 beats Qwen3.5-9B on BFCL v4 and ToolHop. WorkBench is actually 0.5 points below Mellum2, which falls within noise — don’t read much into it.

Two rows need a cooler look. On GPQA Diamond, 64.6 versus Qwen3.5-9B’s 77.8 is a 13-point gap. Knowledge density isn’t this model’s strength, and it wasn’t built for that. XSTest dropped from 91.2 to 88.8 while HarmBench fell from 21.5 to 8.5. Read together, this is the typical post-RL safety alignment distribution shift — over-refusal decreases, harmful output decreases, but occasionally the model may fail to refuse when it should.

One more thing must be stated plainly: all numbers are self-reported by JetBrains under a unified pipeline. The agentic batch uses the open-source harness Pi v0.73.1 with shell and file tools, 114K context, up to 16K tokens per turn. Mellum2’s scores were re-run under the new pipeline, so they don’t match the Mellum2 Technical Report (arXiv 2605.31268).

Speed Advantage Comes from MTP, Not Just a Small Architecture

Post-training didn’t touch the architecture, so Mellum2.1 and Mellum2 have identical theoretical speed. The real gain comes from multi-token prediction (MTP).

Per JetBrains, under heavy load Mellum2.1 is the fastest in the group, serving nearly twice as many tokens as Qwen3.5-9B. For a single request, MTP delivers roughly 1.6× speedup. Test platform is a single H200.

Output tokens per second on one H200 for Mellum2.1, Qwen3.5-9B, and Gemma 4 E4B

The 2.5B active parameters are the foundation for its speed; MTP layers on top of that. For sub-agent scenarios, single-request latency matters more than throughput — 1.6× is more practically meaningful than 2× throughput.

Three Scenarios Where It Fits Best

JetBrains positions it in three ways, each mapping to a different usage pattern.

As an execution unit inside agent systems. Once an agent’s plan is decomposed, some steps don’t need the strongest model — pinpointing the root cause of a failing test, drafting a fix, checking your own changes. Hand those to Mellum2.1 and both cost and latency stay manageable.

For hard problems beyond coding. It works through math and reasoning step by step, and the AIME numbers show it genuinely competes at this scale. Everyday Q&A works too.

Private deployment. Apache 2.0, downloadable weights, runs on your own machine or infrastructure, code and data stay inside the network. For teams with compliance requirements, this often matters more than benchmark scores.

What You Still Can’t Get

GGUF builds aren’t out. llama.cpp, Ollama, and LM Studio — all three paths are blocked for now. If you want to run a quantized version on a consumer GPU, you’ll have to wait.

The MTP speculative decoding head for vLLM also isn’t released. The blog mentions 1.6× from MTP, but that head is “coming soon.” Current deployments run without speculative decoding and don’t get that gain.

The Hugging Face page already lists 8 quantized models, but all are transformer-stack based, not GGUF. The model card shows 110 downloads last month — a number that means little the day after launch.

Quick Action Checklist

  • Check your hardware first. 12B bf16 weights plus 128K context — plan for a single H200 to be safe
  • Include --reasoning-parser qwen3 when serving, or chain-of-thought and answers will mix in the output
  • For tool use, add --enable-auto-tool-choice --tool-call-parser hermes
  • Pass top_k via extra_body on the client — it’s not part of the standard OpenAI API
  • For conversation, use temperature 0.6 / top_p 0.95 / top_k 20
  • For agent work, raise temperature to 1.0 per the official evaluation setup
  • Leave enough max_tokens — 81920 is the model card’s value, and truncated mid-thought is common with thinking models
  • Check the GPQA Diamond row before knowledge-heavy tasks — this isn’t the optimal choice there
  • If you need GGUF or MTP acceleration, hold off on production until those ship

FAQ

Does Mellum2.1 differ architecturally from Mellum2?
No. Still a 12B total / 2.5B active MoE, 28 layers, 64 experts with 8 activated, 131,072 context. All changes are in post-training.

How did SWE-bench Verified jump from 2.0% to 47.0%?
During post-training, the model trained inside real repositories with shell and file-editing tools, rewarded by whether tests pass. Millions of sandboxed environments were run during training.

Do I have to use vLLM to deploy it?
The model card only provides vLLM for now. GGUF builds are still coming, so llama.cpp, Ollama, and LM Studio aren’t usable yet.

What does --reasoning-parser qwen3 do?
It separates chain-of-thought content from the final answer. This is a thinking model — without parsing, reasoning and answers will be mixed together.

What temperature should I use for agent work?
Official agentic evaluation uses 1.0; non-agentic evaluation uses greedy decoding. For agent work, go with 1.0.

Where does the speed advantage come from?
2.5B active parameters are the base, and MTP adds roughly 1.6× single-request speedup. However, the MTP head isn’t released yet.

It trails Qwen3.5-9B by a lot on GPQA Diamond — is it bad at knowledge Q&A?
The 64.6 vs 77.8 gap is real. For knowledge-intensive tasks, prioritize other models. Its strengths are agentic work and coding.

Can I still compare against old Mellum2 scores directly?
No. JetBrains re-ran Mellum2 under the new pipeline, so the model card numbers don’t match those in the Mellum2 Technical Report.