Model reference · open weights

Mellum2.1-Thinking

LLMs JetBrains Text gen 1 build Open weights 583 dl/mo

Mellum2.1-Thinking is an open-weight language model from JetBrains. Mellum2.1-12B-A2.5B-Thinking (BF16) weighs 24.3 GB; the smallest configuration that runs it is 2× RTX 4060 Ti 16 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Mellum2.1-Thinking is a 12.1B parameter mixture-of-experts model developed by JetBrains for complex agentic tasks and reasoning.
  • It features a 131,072 token context length, supports English, and is released under the Apache 2.0 license.

Summary of the JetBrains/Mellum2.1-12B-A2.5B-Thinking model card, 2026-10-11

What it is

Released byJetBrains
Released2026-09-20
Parameters12.1B
VRAM24.3 GB for the weights

What it runs on

Memory and cards for Mellum2.1-12B-A2.5B-Thinking (BF16)

24.3 GBweights, file size
14 MBcache per 1K tokens
220 MBwindow cache per request
1.2 GBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4090 24 GB
4 smaller cards
RTX 5090 32 GB168all 128K31.0 GB
L40S 48 GB5426all 128K44.0 GB
A100 80 GB15676all 128K78.2 GB
H100 80 GB10139all 128K78.1 GB
RTX PRO 6000 Blackwell 96 GB13451all 128K93.8 GB
DGX Spark (GB10) 128 GB unified16363all 128K107 GB
H200 141 GB22888all 128K138 GB
B200 180 GB30476all 128K176 GB
2× RTX 4060 Ti 16 GB
tensor parallel
126all 128K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
5929all 128K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
5929all 128K23.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
125.8 GB26.1 GB
527.1 GB28.9 GB
828.2 GB31.0 GB
1630.9 GB36.5 GB
3236.3 GB47.5 GB
6447.1 GB69.6 GB

One card, with vLLM's small-card settings.

From the model card

What JetBrains says about Mellum2.1-Thinking

Read the model card

[!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

Serving with vLLM

# 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

GGUF builds for llama.cpp, Ollama, and LM Studio, as well as the multi-token prediction (MTP) head for speculative decoding in vLLM, are coming soon.

Quickstart

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)

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.

BenchmarkMellum2.1 ThinkingMellum2 ThinkingGemma 4 (E4B)Qwen3.5 (9B)
Coding
LiveCodeBench v682.069.469.475.4
HumanEval+91.590.989.189.6
MBPP+79.475.470.969.8
Math
AIME 25/2683.360.145.086.7
GSM-Plus88.387.187.491.4
Agentic
SWE-bench Verified47.02.023.050.0
Terminal-Bench 2.117.40.63.421.7
SWE-bench Pro28.00.04.038.0
Tool Use
BFCL v462.349.652.558.5
WorkBench44.645.146.139.7
ToolHop49.146.739.952.0
Conversational
IFEval90.679.590.892.4
Knowledge
GPQA Diamond64.651.053.177.8
MMLU-Redux87.886.084.989.5
MixEval-Hard46.441.641.450.3
Safety
XSTest88.891.295.295.6
HarmBench (↓)8.521.538.16.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.

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Benchmarks

Reported results

As published on the model card: the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
Text GenerationLiveCodeBench v6pass@182
Text GenerationHumanEval+pass@191.500
Text GenerationMBPP+pass@179.400
Text GenerationAIME 25/26exact match83.300
Text GenerationGSM-Plusexact match88.300
Text GenerationSWE-bench Verifiedresolved rate47
Text GenerationTerminal-Bench 2.1resolved rate17.400
Text GenerationSWE-bench Proresolved rate28
Text GenerationBFCL v4accuracy62.300
Text GenerationWorkBenchtask completion44.600
Text GenerationToolHopaccuracy49.100
Text GenerationIFEvalaccuracy90.600
Text GenerationGPQA Diamondaccuracy64.600
Text GenerationMMLU-Reduxaccuracy87.800
Text GenerationMixEval-Hardaccuracy46.400
Text GenerationXSTestsafe compliance88.800
Text GenerationHarmBench (harmful rate, lower is better)harmful rate8.500
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms