JetBrains launched Mellum2, open-sourcing the weights underneath the Apache 2.0 license. The primary model of Mellum was a completion-focused 4B dense mannequin. Mellum2 is its successor: a general-purpose mannequin specialised in software program engineering. It covers code technology and enhancing, debugging, multi-step reasoning, software use and performance calling, agentic coding, and conversational programming help.
JetBrains staff positions Mellum2 as a “focal mannequin” — a quick, specialised part inside bigger AI techniques, not a standalone substitute for frontier fashions.
Structure
Mellum2 makes use of a Combination-of-Specialists (MoE) structure with 12B complete parameters and a pair of.5B lively parameters per token. In MoE fashions, solely a subset of parameters runs on every token. Right here, the mannequin has 64 specialists and prompts 8 per token. This retains per-token compute equal to a 2.5B dense mannequin, whereas the full parameter rely gives greater capability for specialization.
Key architectural particulars:
- Layers: 28
- Hidden measurement: 2304
- MoE specialists: 64 complete, 8 activated per token
- Consideration: Grouped-Question Consideration (GQA) with 32 question heads and 4 KV heads
- Sliding Window Consideration (SWA): Utilized to 3 of each 4 layers, with a window measurement of 1,024. Full consideration runs on the remaining layer.
- Context size: 131,072 tokens
- Multi-Token Prediction (MTP) head: Serves as an auxiliary pre-training goal and as a built-in draft mannequin for speculative decoding
- Precision: bfloat16
- Vocabulary measurement: 98,304
The mannequin handles pure language and code. It’s not multimodal — there is no such thing as a picture or video enter.
Pre-Coaching
Pre-training spans roughly 10.6 trillion tokens by means of a three-phase curriculum. The info combination progressively shifts from numerous internet content material towards curated code and mathematical content material throughout the three phases.
Coaching used the Muon optimizer underneath FP8 hybrid precision with a Warmup-Maintain-Decay studying fee schedule with linear decay to zero.
After pre-training, the bottom mannequin’s context window was prolonged to 128K tokens utilizing a layer-selective YaRN methodology earlier than post-training started.
The Mannequin Household
JetBrains staff launched six checkpoints protecting the complete coaching pipeline:
| Checkpoint | Description |
|---|---|
| Mellum2-12B-A2.5B-Base-Pretrain | Base checkpoint earlier than long-context extension |
| Mellum2-12B-A2.5B-Base | Last base mannequin after context extension |
| Mellum2-12B-A2.5B-Instruct-SFT | Supervised fine-tuned instruction checkpoint |
| Mellum2-12B-A2.5B-Considering-SFT | Supervised pondering checkpoint |
| Mellum2-12B-A2.5B-Instruct | RL-tuned instruction mannequin |
| Mellum2-12B-A2.5B-Considering | RL-tuned pondering mannequin |
Publish-training follows two levels: supervised fine-tuning (SFT), then reinforcement studying with verifiable rewards (RLVR) on math, executable coding, software use, instruction following, reasoning, and data duties.
The Instruct variant solutions immediately, with out an externalized chain of thought. Use it for low-latency duties: direct solutions, software use, and instruction following.
The Considering variant emits an specific reasoning hint earlier than its last reply. Use it for complicated debugging, multi-step planning, or agentic flows the place step-by-step reasoning issues.
Benchmark Outcomes
All numbers under are self-reported by JetBrains. The comparability set is open-weight fashions within the 4B–14B vary.
Coding:
| Benchmark | Mellum2 Instruct | Qwen3.5 (4B) | Qwen3.5 (9B) | Ministral 3 (14B) | OLMo-3 (7B) | Seed-Coder (8B) |
|---|---|---|---|---|---|---|
| LiveCodeBench v6 | 37.2 | 51.0 | 63.7 | 42.4 | 28.2 | 28.1 |
| EvalPlus | 78.4 | 69.4 | 71.8 | 74.1 | 67.3 | 73.8 |
| MultiPL-E | 67.1 | 51.0 | 67.1 | 71.5 | 36.1 | 77.0 |
Software Use:
| Benchmark | Mellum2 Instruct | Qwen3.5 (4B) | Qwen3.5 (9B) | Ministral 3 (14B) | OLMo-3 (7B) |
|---|---|---|---|---|---|
| BFCL v3 | 66.3 | 64.1 | 70.5 | 52.7 | 41.9 |
| BFCL v4 | 44.2 | 52.0 | 60.6 | 38.8 | 19.8 |
Math:
| Benchmark | Mellum2 Instruct | Qwen3.5 (4B) | Qwen3.5 (9B) | Ministral 3 (14B) | OLMo-3 (7B) |
|---|---|---|---|---|---|
| AIME 2025+2026 | 41.7 | 38.3 | 58.3 | 33.3 | 40.0 |
| GSM-Plus | 80.5 | 85.2 | 87.9 | 86.6 | 85.8 |
Information and Conversational:
| Benchmark | Mellum2 Instruct | Qwen3.5 (4B) | Qwen3.5 (9B) | Ministral 3 (14B) | OLMo-3 (7B) |
|---|---|---|---|---|---|
| MMLU-Redux | 78.1 | 87.5 | 91.1 | 85.9 | 71.8 |
| GPQA Diamond | 40.9 | 76.8 | 79.8 | 58.6 | 40.9 |
| IFEval | 75.8 | 82.1 | 83.9 | 67.3 | 83.2 |
| MixEval | 62.2 | 65.9 | 71.1 | 71.2 | 59.4 |
Benchmark notes:
- EvalPlus is the imply of HumanEval+ and MBPP+
- AIME is the imply of AIME 2025 and AIME 2026 (30 questions every)
- BFCL v4 is the macro-average of 5 subtasks: v1, v2, v3, internet search, reminiscence
- Seed-Coder (8B) doesn’t help native software calling; BFCL scores should not listed for it

Use Circumstances
JetBrains identifies 4 manufacturing situations the place Mellum2’s latency and effectivity profile is related:
- Routing and orchestration: In a multi-model system, a router analyzes incoming prompts and selects the suitable mannequin or software for every job. Mellum2’s low per-token compute makes it appropriate for this high-frequency classification step.
- Low-latency RAG pipelines: Retrieval-Augmented Era (RAG) techniques retrieve related context, summarize it, and generate a response. Mellum2 handles retrieval summarization at decrease latency than bigger dense fashions.
- Sub-agents in complicated workflows: Agent pipelines break duties into steps: context gathering, planning, validation, and execution. Mellum2 can deal with repetitive or latency-sensitive steps as an alternative of routing each step by means of a single massive frontier mannequin.
- Non-public and native deployment: The Apache 2.0 license permits self-hosting with out restrictions. Engineers can run Mellum2 on their very own infrastructure, maintaining code and knowledge underneath their management.
Strengths and Limitations
Strengths:
- MoE design prompts solely 2.5B of 12B parameters per token — per-token compute equal to a 2.5B dense mannequin
- MTP head permits speculative decoding with no separate draft mannequin
- 131,072 token context window
- Full checkpoint set launched: base pretrain, base, SFT, and RL-tuned variants for each Instruct and Considering
- Apache 2.0 license — permits business use, self-hosting, and fine-tuning
- Robust EvalPlus (78.4) and BFCL v3 (66.3) scores relative to 4B–14B comparisons
- vLLM help, together with non-compulsory tool-calling through
--tool-call-parser hermes
Limitations:
- Textual content and code solely — no picture or multimodal enter
- LiveCodeBench v6 (37.2) trails Qwen3.5 9B (63.7) and Ministral 3 14B (42.4)
- GPQA Diamond (40.9) and MMLU-Redux (78.1) are under most fashions within the comparability set
- GSM-Plus (80.5) is under all comparable fashions listed
- Not designed for frontier-level duties — JetBrains explicitly positions Mellum2 as a part mannequin
Marktechpost’s Visible Explainer
Getting Began
Serve Mellum2 with vLLM:
pip set up vllm
vllm serve JetBrains/Mellum2-12B-A2.5B-Instruct --max-model-len 131072
With software calling enabled:
vllm serve JetBrains/Mellum2-12B-A2.5B-Instruct
--max-model-len 131072
--enable-auto-tool-choice
--tool-call-parser hermes
Utilizing the Hugging Face Transformers library:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("JetBrains/Mellum2-12B-A2.5B-Instruct")
mannequin = AutoModelForCausalLM.from_pretrained("JetBrains/Mellum2-12B-A2.5B-Instruct")
messages = [{"role": "user", "content": "Write a Python function to reverse a string."}]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(mannequin.gadget)
outputs = mannequin.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0][inputs["input_ids"].form[-1]:]))
Take a look at the Mannequin Weights and Technical particulars. Additionally, be happy to observe us on Twitter and don’t neglect to affix our 150k+ ML SubReddit and Subscribe to our E-newsletter. Wait! are you on telegram? now you possibly can be part of us on telegram as effectively.
Must associate with us for selling your GitHub Repo OR Hugging Face Web page OR Product Launch OR Webinar and so on.? Join with us
