Skip to content

JetBrains

Mellum2.1-12B-A2.5B-Instruct

A 12B mixture-of-experts (about 2.5B active) model by JetBrains that uses tools such as web search and can think before answering.

Tools Thinking
Downloads
6,521 downloads last month
Likes
3 likes
Uploaded
Uploaded 25 Nov 2026

Get it in Zero1LLM

Then open Explore in the app and search for:

Parameters
12,149,923,072 (12.1B)
Context length
131,072 tokens
Architecture
mellum
Task
text-generation
Licence
apache-2.0
Released
13 Nov 2026
Last updated
19 Nov 2026

This is bartowski's upload of JetBrains/Mellum2.1-12B-A2.5B-Instruct, which is based on JetBrains/Mellum2-12B-A2.5B-Base.

Languages listed in the model card

  • English

Tools

Uses tools, so web search and the browser work best with it.

Thinking

Can think step by step before it answers.

Each version is the same model stored at a different precision: smaller files use less memory and lose a little quality.

VersionFile sizeFileSHA-256
IQ2_M5.40 GBMellum2.1-12B-A2.5B-Instruct-IQ2_M.gguf
Q2_K5.53 GBMellum2.1-12B-A2.5B-Instruct-Q2_K.gguf
Q3_K_S6.05 GBMellum2.1-12B-A2.5B-Instruct-Q3_K_S.gguf
IQ3_XS6.29 GBMellum2.1-12B-A2.5B-Instruct-IQ3_XS.gguf
Q3_K_M6.70 GBMellum2.1-12B-A2.5B-Instruct-Q3_K_M.gguf
IQ4_XS6.97 GBMellum2.1-12B-A2.5B-Instruct-IQ4_XS.gguf
Q4_07.00 GBMellum2.1-12B-A2.5B-Instruct-Q4_0.gguf
Q3_K_L7.13 GBMellum2.1-12B-A2.5B-Instruct-Q3_K_L.gguf
Show all 21 versions
VersionFile sizeFileSHA-256
IQ3_M7.24 GBMellum2.1-12B-A2.5B-Instruct-IQ3_M.gguf
IQ4_NL7.66 GBMellum2.1-12B-A2.5B-Instruct-IQ4_NL.gguf
Q4_17.71 GBMellum2.1-12B-A2.5B-Instruct-Q4_1.gguf
Q4_K_S7.86 GBMellum2.1-12B-A2.5B-Instruct-Q4_K_S.gguf
Q4_K_M8.82 GBMellum2.1-12B-A2.5B-Instruct-Q4_K_M.gguf
Q5_K_S8.96 GBMellum2.1-12B-A2.5B-Instruct-Q5_K_S.gguf
Q4_K_L9.23 GBMellum2.1-12B-A2.5B-Instruct-Q4_K_L.gguf
Q5_K_M9.97 GBMellum2.1-12B-A2.5B-Instruct-Q5_K_M.gguf
Q6_K_S11.13 GBMellum2.1-12B-A2.5B-Instruct-Q6_K_S.gguf
Q6_K11.45 GBMellum2.1-12B-A2.5B-Instruct-Q6_K.gguf
Q6_K_L11.81 GBMellum2.1-12B-A2.5B-Instruct-Q6_K_L.gguf
Q8_012.93 GBMellum2.1-12B-A2.5B-Instruct-Q8_0.gguf
BF1624.31 GBMellum2.1-12B-A2.5B-Instruct-bf16.gguf
Model class
MellumForCausalLM
Model type
mellum
Layers
28
Hidden size
2304
Attention heads
32
Key/value heads
4
Experts
64 (8 used per token)
Vocabulary
98,304
Context length
131,072 tokens
Sliding window
1,024 tokens
Weights
bfloat16

Results as reported in the model card's metadata, not tested by us.

BenchmarkMetricResult
LiveCodeBench v6Text Generationpass@153.7
HumanEval+Text Generationpass@189.1
MBPP+Text Generationpass@174.3
MultiPL-E (7 languages, chat mode)Text Generationpass@173.7
AIME 25/26Text Generationexact match (avg@8)61.1
GSM-PlusText Generationexact match86.7
SWE-bench VerifiedText Generationresolved rate40.4
Terminal-Bench 2.1Text Generationresolved rate8.2
SWE-bench ProText Generationresolved rate20
BFCL v4Text Generationaccuracy46.5
WorkBenchText Generationtask completion38
ToolHopText Generationaccuracy51.4
IFEvalText Generationaccuracy87.2
GPQA DiamondText Generationaccuracy48.6
MMLU-ReduxText Generationaccuracy82.8
MixEval-HardText Generationaccuracy31.7
XSTestText Generationsafe compliance72.3
HarmBench (harmful rate, lower is better)Text Generationharmful rate15.6

Papers the model's Hugging Face page links to (the model's own report and papers it cites).

Mellum2.1 Instruct

Note

Mellum2.1 Instruct answers directly, without a chain of thought. Use it for fast agentic work, such as sub-agents, tool loops, small fixes, and questions about code. For long, difficult tasks that benefit from reasoning before acting, use Mellum2.1 Thinking.

Mellum2.1 Instruct Highlights

Mellum2.1 Instruct is the next version of Mellum2 Instruct and the direct-answer sibling of Mellum2.1 Thinking. The architecture is unchanged (a 12B mixture-of-experts model with 2.5B active parameters). What changed is post-training:

  • Reinforcement learning in real environments: like Mellum2.1 Thinking, the model was trained with large-scale reinforcement learning, including agentic training inside real repositories with shell and file tools, where it is rewarded when the tests pass. Training was built on NVIDIA's open-source NeMo RL and NeMo Megatron-Bridge libraries.
  • Direct, concise answers: the model answers without a chain of thought. On our repository-level validation tasks, it generates about half as many tokens as Mellum2.1 Thinking.
  • Large gains over Mellum2 Instruct: the model resolves 40.4% of SWE-bench Verified tasks, up from 20.2%. It also improves on most coding, math, tool-use, and instruction-following benchmarks, for example from 32.3 to 61.1 on AIME and from 22.2 to 38.0 on WorkBench.

Model Overview

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

The mellum architecture is supported in transformers 5.11.0 and later.

Serving with vLLM

# Without tool calling
vllm serve JetBrains/Mellum2.1-12B-A2.5B-Instruct --max-model-len 131072

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

Quickstart

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

messages = [
    {"role": "user", "content": "Write a Python function to reverse a string."},
]

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

Evaluation

All values are percentages; higher is better except HarmBench, where lower is better. All values are self-reported by JetBrains.

BenchmarkMellum2.1 (Instruct / Thinking)Mellum2 (Instruct / Thinking)Qwen3.5 9B (non-thinking / thinking)Gemma 4 E4B (non-thinking / thinking)
Coding
LiveCodeBench v653.7 / 82.040.4 / 70.565.2 / 74.864.8 / 69.7
HumanEval+89.1 / 91.584.8 / 89.184.8 / 89.085.4 / 89.6
MBPP+74.3 / 79.472.2 / 74.663.8 / 69.065.6 / 69.5
MultiPL-E (7 languages, chat mode)73.7 / 81.568.7 / 75.166.4 / 75.967.7 / 79.6
Math
AIME 25/26 (avg@8)61.1 / 83.332.3 / 56.769.2 / 79.836.7 / 44.6
GSM-Plus86.7 / 88.380.4 / 86.889.4 / 90.885.3 / 87.4
Agentic
SWE-bench Verified40.4 / 47.020.2 / 3.849.8 / 55.66.4 / 16.8
Terminal-Bench 2.18.2 / 17.46.7 / 1.917.6 / 18.51.9 / 3.7
SWE-bench Pro20.0 / 28.012.0 / 0.012.7 / 33.04.7 / 7.3
Tool Use
BFCL v446.5 / 62.346.2 / 50.561.2 / 60.042.7 / 52.5
WorkBench38.0 / 44.622.2 / 45.741.3 / 41.332.2 / 45.5
ToolHop51.4 / 49.147.2 / 46.451.6 / 52.239.0 / 39.3
Conversational
IFEval87.2 / 90.680.8 / 82.087.1 / 92.289.1 / 90.8
Knowledge
GPQA Diamond48.6 / 64.640.0 / 53.081.3 / 81.852.1 / 56.5
MMLU-Redux82.8 / 87.877.6 / 86.090.7 / 89.984.0 / 85.7
MixEval-Hard31.7 / 46.428.9 / 43.835.9 / 51.028.9 / 39.8
Safety
XSTest72.3 / 88.882.0 / 90.091.2 / 96.486.8 / 94.8
HarmBench (↓)15.6 / 8.521.2 / 21.526.8 / 6.928.7 / 38.4

Notes:

  • Non-agentic benchmarks use greedy decoding, except AIME.
  • AIME is AIME 2025 plus AIME 2026 (30 questions each).
  • 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, a 114K-token context, and up to 16K tokens per turn.
  • BFCL v4 is the benchmark's official overall score, a weighted mean of its category accuracies.
  • Mellum2 Thinking and Mellum2 Instruct were re-evaluated with this pipeline, so their numbers differ slightly from their model cards and the Mellum2 Technical Report.

License

Released under the Apache 2.0 license.

On Hugging Face

Everything on this page comes from these pages and is refreshed every few hours; Hugging Face always has the latest.