Model reference · open weights
Mellum2.1-12B-A2.5B-Thinking-MTP is an open-weight language model from JetBrains. Mellum2.1-12B-A2.5B-Thinking-MTP (BF16) weighs 25.2 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.
Summary of the JetBrains/Mellum2.1-12B-A2.5B-Thinking-MTP model card, 2026-11-07
What it is
| Released by | JetBrains |
|---|---|
| Released | 2026-10-30 |
| Parameters | 12.1B |
| VRAM | 25.2 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4090 24 GB 4 smaller cards | ||||
| RTX 5090 32 GB | 13 | 6 | all 128K | 31.0 GB |
| L40S 48 GB | 52 | 25 | all 128K | 44.0 GB |
| A100 80 GB | 153 | 75 | all 128K | 78.2 GB |
| H100 80 GB | 99 | 38 | all 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 132 | 51 | all 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 161 | 62 | all 128K | 107 GB |
| H200 141 GB | 226 | 87 | all 128K | 138 GB |
| B200 180 GB | 302 | 75 | all 128K | 176 GB |
| 2× RTX 4060 Ti 16 GB tensor parallel | 9 | 4 | all 128K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel | 56 | 27 | all 128K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel | 57 | 28 | all 128K | 23.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 26.7 GB | 27.0 GB |
| 5 | 28.0 GB | 29.8 GB |
| 8 | 29.0 GB | 31.8 GB |
| 16 | 31.7 GB | 37.4 GB |
| 32 | 37.1 GB | 48.4 GB |
| 64 | 47.9 GB | 70.5 GB |
One card, with vLLM's small-card settings.
From the model card
[!Note] This repository is Mellum2.1 Thinking with its multi-token prediction (MTP) head included. The model weights are byte-identical to that release; the head adds one shard and one config key. Use this repository for speculative decoding with vLLM 0.33 or newer and transformers 5.20 or newer, and the Thinking repository with older versions, which cannot load the extra tensors.
[!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 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):
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.
Mellum2.1 Thinking has the following features:
Requires vLLM 0.33 or newer with transformers 5.20 or newer. The
--speculative-config flag turns on speculative decoding with the MTP head;
without it the server runs the plain model and ignores the head.
# Without tool calling
vllm serve JetBrains/Mellum2.1-12B-A2.5B-Thinking-MTP \
--max-model-len 131072 \
--reasoning-parser qwen3 \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 1}'
# With tool calling
vllm serve JetBrains/Mellum2.1-12B-A2.5B-Thinking-MTP \
--max-model-len 131072 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser hermes \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 1}'
GGUF builds for llama.cpp, Ollama, and LM Studio, including the MTP head as a draft file, are in JetBrains/Mellum2.1-12B-A2.5B-Thinking-GGUF.
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-MTP",
messages=messages,
max_tokens=81920,
temperature=0.6,
top_p=0.95,
extra_body={"top_k": 20},
)
print("Chat response:", chat_response)
The multi-token prediction (MTP) head is one extra transformer block, trained
together with the model, that predicts the token after the one just sampled.
Inference engines use it as a speculative draft: the model verifies every
drafted token, so the output is unchanged while decoding runs 1.4–1.8x faster,
with about 90% of the drafted tokens accepted. The head lives in
model-mtp.safetensors under the mtp. prefix, announced by
num_nextn_predict_layers: 1 in config.json; everything else is identical to
Mellum2.1 Thinking.
--speculative-config '{"method": "mtp", "num_speculative_tokens": 1}',
as in the serving commands above.use_mtp=True to generate.--spec-type draft-mtp --spec-draft-n-max 1.Older versions cannot load the extra tensors: transformers before 5.20 skips them with a warning, vLLM releases up to 0.32 refuse the checkpoint. With those, serve Mellum2.1 Thinking instead.
The model weights are those of Mellum2.1 Thinking, so its results apply unchanged. 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.
| Benchmark | Mellum2.1 Thinking | Mellum2 Thinking | 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 |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
Benchmarks
As published on the model card: the maker's own numbers, not measured by AxForge. Compare on the benchmarks page
| Model or task | Benchmark | Metric | Score | Source |
|---|---|---|---|---|
| Text Generation | LiveCodeBench v6 | pass@1 | 82 | The lab's own numbers |
| Text Generation | HumanEval+ | pass@1 | 91.5 | The lab's own numbers |
| Text Generation | MBPP+ | pass@1 | 79.4 | The lab's own numbers |
| Text Generation | AIME 25/26 | exact match | 83.3 | The lab's own numbers |
| Text Generation | GSM-Plus | exact match | 88.3 | The lab's own numbers |
| Text Generation | SWE-bench Verified | resolved rate | 47 | The lab's own numbers |
| Text Generation | Terminal-Bench 2.1 | resolved rate | 17.4 | The lab's own numbers |
| Text Generation | SWE-bench Pro | resolved rate | 28 | The lab's own numbers |
| Text Generation | BFCL v4 | accuracy | 62.3 | The lab's own numbers |
| Text Generation | WorkBench | task completion | 44.6 | The lab's own numbers |
| Text Generation | ToolHop | accuracy | 49.1 | The lab's own numbers |
| Text Generation | IFEval | accuracy | 90.6 | The lab's own numbers |
| Text Generation | GPQA Diamond | accuracy | 64.6 | The lab's own numbers |
| Text Generation | MMLU-Redux | accuracy | 87.8 | The lab's own numbers |
| Text Generation | MixEval-Hard | accuracy | 46.4 | The lab's own numbers |
| Text Generation | XSTest | safe compliance | 88.8 | The lab's own numbers |
| Text Generation | HarmBench (harmful rate, lower is better) | harmful rate | 8.5 | The lab's own numbers |