Model reference · open weights

Mellum2.1-12B-A2.5B-Thinking-MTP

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

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.

  • Mellum2.1-Thinking-MTP is a 12.1B parameter mixture-of-experts model by JetBrains designed for complex agentic tasks and reasoning in coding, math, and science.
  • It features a 131,072 token context length, supports English, and is released under the Apache 2.0 license.
  • The model includes a multi-token prediction head that enables speculative decoding to speed up inference without changing the output.

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

What it is

Released byJetBrains
Released2026-10-30
Parameters12.1B
VRAM25.2 GB for the weights

What it runs on

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

25.2 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 GB136all 128K31.0 GB
L40S 48 GB5225all 128K44.0 GB
A100 80 GB15375all 128K78.2 GB
H100 80 GB9938all 128K78.1 GB
RTX PRO 6000 Blackwell 96 GB13251all 128K93.8 GB
DGX Spark (GB10) 128 GB unified16162all 128K107 GB
H200 141 GB22687all 128K138 GB
B200 180 GB30275all 128K176 GB
2× RTX 4060 Ti 16 GB
tensor parallel
94all 128K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
5627all 128K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
5728all 128K23.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
126.7 GB27.0 GB
528.0 GB29.8 GB
829.0 GB31.8 GB
1631.7 GB37.4 GB
3237.1 GB48.4 GB
6447.9 GB70.5 GB

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

From the model card

What JetBrains says about Mellum2.1-12B-A2.5B-Thinking-MTP

Read 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 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
  • Multi-token prediction head: 1 layer, used as a speculative decoding draft
  • License: Apache 2.0

Serving with vLLM

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.

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-MTP",
    messages=messages,
    max_tokens=81920,
    temperature=0.6,
    top_p=0.95,
    extra_body={"top_k": 20},
)
print("Chat response:", chat_response)

Multi-token prediction head

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.

  • vLLM 0.33 or newer: --speculative-config '{"method": "mtp", "num_speculative_tokens": 1}', as in the serving commands above.
  • transformers 5.20 or newer: pass use_mtp=True to generate.
  • llama.cpp: use the GGUF repository with --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.

Evaluation

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.

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

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. Compare on the benchmarks page

Model or taskBenchmarkMetricScoreSource
Text GenerationLiveCodeBench v6pass@182The lab's own numbers
Text GenerationHumanEval+pass@191.5The lab's own numbers
Text GenerationMBPP+pass@179.4The lab's own numbers
Text GenerationAIME 25/26exact match83.3The lab's own numbers
Text GenerationGSM-Plusexact match88.3The lab's own numbers
Text GenerationSWE-bench Verifiedresolved rate47The lab's own numbers
Text GenerationTerminal-Bench 2.1resolved rate17.4The lab's own numbers
Text GenerationSWE-bench Proresolved rate28The lab's own numbers
Text GenerationBFCL v4accuracy62.3The lab's own numbers
Text GenerationWorkBenchtask completion44.6The lab's own numbers
Text GenerationToolHopaccuracy49.1The lab's own numbers
Text GenerationIFEvalaccuracy90.6The lab's own numbers
Text GenerationGPQA Diamondaccuracy64.6The lab's own numbers
Text GenerationMMLU-Reduxaccuracy87.8The lab's own numbers
Text GenerationMixEval-Hardaccuracy46.4The lab's own numbers
Text GenerationXSTestsafe compliance88.8The lab's own numbers
Text GenerationHarmBench (harmful rate, lower is better)harmful rate8.5The lab's own numbers
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms