CoolFace
Modelpublic

JetBrains/Mellum2-12B-A2.5B-Instruct

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
86likes4kdownloads
Model Card

<img alt="Mellum" src="mellum-logo-dark.svg" width="320">

Mellum2 Instruct

[!Note] Use this model when you want direct, low-latency answers without an explicit chain of thought — interactive chat, code assistance, tool use, and instruction following. If you need explicit reasoning before the answer (complex debugging, planning, multi-step agentic flows), use Thinking instead.

Mellum2 Instruct Highlights

Mellum2 Instruct is a post-trained assistant model trained by JetBrains.

The model uses a Mixture-of-Experts architecture with 64 experts and activates 8 experts per token. It uses a combination of sliding-window and full attention layers, with a context length of 131,072 tokens.

It is produced from `Mellum2-12B-A2.5B-Base` by supervised fine-tuning followed by reinforcement learning with verifiable rewards (RLVR) on math, executable coding, tool use, instruction following, reasoning, and knowledge tasks. Mellum2 Instruct answers directly, without an externalized chain of thought.

Mellum2 Model Family

This repository contains one checkpoint from the Mellum2 family.

CheckpointDescription
Base PretrainBase checkpoint before long-context extension
BaseFinal base model
Instruct SFTSupervised instruction-tuned checkpoint
Thinking SFTSupervised thinking checkpoint
InstructRL-tuned instruction model
ThinkingRL-tuned thinking model

Model Overview

Mellum2 Instruct has the following features:

  • —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
  • —Vocabulary Size: 98,304
  • —Precision: bfloat16

Serving with vLLM

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

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

Quickstart

Text-Only Input

python
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-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

Post-training evaluation for the instruct (no-thinking) variants. All values are percentages; higher is better except HarmBench, where lower is better. All values self-reported by JetBrains.

BenchmarkMellum2 Instruct SFTMellum2 InstructQwen3.5 (4B)Qwen3.5 (9B)OLMo-3 (7B)Ministral 3 (14B)Seed-Coder (8B)
Coding
LiveCodeBench v630.937.251.063.728.242.428.1
EvalPlus76.278.469.471.867.374.173.8
MultiPL-E64.667.151.067.136.171.577.0
Tool Use
BFCL v431.844.252.060.619.838.8—
BFCL v343.166.364.170.541.952.7—
Math
AIME29.941.738.358.340.033.30.0
GSM-Plus73.080.585.287.985.886.650.4
Knowledge
MMLU-Redux77.478.187.591.171.885.938.1
GPQA Diamond38.940.976.879.840.958.620.2
Conversational
IFEval69.375.882.183.983.267.356.2
JetBrains pairwise66.768.160.677.844.472.443.0
MixEval62.962.265.971.159.471.237.2
BS-Bench24.018.056.961.022.09.05.0
Safety
HarmBench (↓)8.423.120.320.914.756.540.0
XSTest78.381.293.291.291.296.886.3

Notes:

  • —EvalPlus is the mean of HumanEval+ and MBPP+.
  • —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.
  • —JetBrains pairwise is win rate against Qwen2.5-7B-Instruct on an internal benchmark.
  • —— indicates the model lacks native tool calling.

For more details, see the Mellum2 Technical Report.

License

Released under the Apache 2.0 license.