Text Generation
Transformers
Safetensors
English
mellum
conversational
Eval Results (legacy)
Eval Results
Instructions to use JetBrains/Mellum2-12B-A2.5B-Thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JetBrains/Mellum2-12B-A2.5B-Thinking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JetBrains/Mellum2-12B-A2.5B-Thinking") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JetBrains/Mellum2-12B-A2.5B-Thinking") model = AutoModelForCausalLM.from_pretrained("JetBrains/Mellum2-12B-A2.5B-Thinking", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JetBrains/Mellum2-12B-A2.5B-Thinking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JetBrains/Mellum2-12B-A2.5B-Thinking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JetBrains/Mellum2-12B-A2.5B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/JetBrains/Mellum2-12B-A2.5B-Thinking
- SGLang
How to use JetBrains/Mellum2-12B-A2.5B-Thinking with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "JetBrains/Mellum2-12B-A2.5B-Thinking" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JetBrains/Mellum2-12B-A2.5B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "JetBrains/Mellum2-12B-A2.5B-Thinking" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JetBrains/Mellum2-12B-A2.5B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use JetBrains/Mellum2-12B-A2.5B-Thinking with Docker Model Runner:
docker model run hf.co/JetBrains/Mellum2-12B-A2.5B-Thinking
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ language:
|
|
| 4 |
- en
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
model-index:
|
| 7 |
-
- name:
|
| 8 |
results:
|
| 9 |
- task:
|
| 10 |
type: text-generation
|
|
@@ -143,12 +143,12 @@ license: apache-2.0
|
|
| 143 |
|
| 144 |
<img alt="Mellum" src="mellum-logo-dark.svg" width="320">
|
| 145 |
|
| 146 |
-
#
|
| 147 |
|
| 148 |
> [!Note]
|
| 149 |
> Use this model when you want explicit chain-of-thought before the final answer — complex debugging, multi-step planning, agentic workflows, and math- or reasoning-heavy tasks. For direct, low-latency answers without reasoning traces, use [Instruct](https://huggingface.co/JetBrains/Mellum2-12B-A2.5B-Instruct) instead.
|
| 150 |
|
| 151 |
-
##
|
| 152 |
|
| 153 |
Mellum 2 Thinking is a post-trained reasoning-augmented assistant model trained by JetBrains.
|
| 154 |
|
|
@@ -156,7 +156,7 @@ The model uses a Mixture-of-Experts architecture with 64 experts and activates 8
|
|
| 156 |
|
| 157 |
It is produced from [`Mellum2-12B-A2.5B-Base`](https://huggingface.co/JetBrains/Mellum2-12B-A2.5B-Base) by supervised fine-tuning (loss computed only on the final assistant turn) followed by reinforcement learning with verifiable rewards (RLVR) on a harder data mix that includes a long-form math subset. The model emits its reasoning inside `<think>...</think>` blocks before the final answer.
|
| 158 |
|
| 159 |
-
##
|
| 160 |
|
| 161 |
This repository contains one checkpoint from the Mellum 2 family.
|
| 162 |
|
|
@@ -171,7 +171,7 @@ This repository contains one checkpoint from the Mellum 2 family.
|
|
| 171 |
|
| 172 |
## Model Overview
|
| 173 |
|
| 174 |
-
**
|
| 175 |
|
| 176 |
- Number of Layers: 28
|
| 177 |
- Hidden Size: 2304
|
|
@@ -232,7 +232,7 @@ print("Chat response:", chat_response)
|
|
| 232 |
|
| 233 |
Post-training evaluation for the thinking/reasoning variants. All values are percentages; higher is better except HarmBench, where lower is better. All values self-reported by JetBrains.
|
| 234 |
|
| 235 |
-
| Benchmark |
|
| 236 |
| :----------------- | --------------------: | ----------------: | -----------: | -----------: | ----------: | ----------------: |
|
| 237 |
| **Coding** | | | | | | |
|
| 238 |
| LiveCodeBench v6 | 75.1 | 69.9 | 59.4 | 68.3 | 59.8 | 42.7 |
|
|
@@ -260,7 +260,7 @@ Notes:
|
|
| 260 |
- **JetBrains pairwise** is win rate against `Qwen2.5-7B-Instruct` on an internal benchmark.
|
| 261 |
- `—` indicates the model lacks native tool calling (OLMo-3-7B-Thinking).
|
| 262 |
|
| 263 |
-
For more details, see the [
|
| 264 |
|
| 265 |
## License
|
| 266 |
|
|
|
|
| 4 |
- en
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
model-index:
|
| 7 |
+
- name: Mellum2 Thinking
|
| 8 |
results:
|
| 9 |
- task:
|
| 10 |
type: text-generation
|
|
|
|
| 143 |
|
| 144 |
<img alt="Mellum" src="mellum-logo-dark.svg" width="320">
|
| 145 |
|
| 146 |
+
# Mellum2 Thinking
|
| 147 |
|
| 148 |
> [!Note]
|
| 149 |
> Use this model when you want explicit chain-of-thought before the final answer — complex debugging, multi-step planning, agentic workflows, and math- or reasoning-heavy tasks. For direct, low-latency answers without reasoning traces, use [Instruct](https://huggingface.co/JetBrains/Mellum2-12B-A2.5B-Instruct) instead.
|
| 150 |
|
| 151 |
+
## Mellum2 Thinking Highlights
|
| 152 |
|
| 153 |
Mellum 2 Thinking is a post-trained reasoning-augmented assistant model trained by JetBrains.
|
| 154 |
|
|
|
|
| 156 |
|
| 157 |
It is produced from [`Mellum2-12B-A2.5B-Base`](https://huggingface.co/JetBrains/Mellum2-12B-A2.5B-Base) by supervised fine-tuning (loss computed only on the final assistant turn) followed by reinforcement learning with verifiable rewards (RLVR) on a harder data mix that includes a long-form math subset. The model emits its reasoning inside `<think>...</think>` blocks before the final answer.
|
| 158 |
|
| 159 |
+
## Mellum2 Model Family
|
| 160 |
|
| 161 |
This repository contains one checkpoint from the Mellum 2 family.
|
| 162 |
|
|
|
|
| 171 |
|
| 172 |
## Model Overview
|
| 173 |
|
| 174 |
+
**Mellum2 Thinking** has the following features:
|
| 175 |
|
| 176 |
- Number of Layers: 28
|
| 177 |
- Hidden Size: 2304
|
|
|
|
| 232 |
|
| 233 |
Post-training evaluation for the thinking/reasoning variants. All values are percentages; higher is better except HarmBench, where lower is better. All values self-reported by JetBrains.
|
| 234 |
|
| 235 |
+
| Benchmark | Mellum2 Thinking SFT | Mellum2 Thinking | Qwen3.5 (4B) | Qwen3.5 (9B) | OLMo-3 (7B) | Ministral 3 (14B) |
|
| 236 |
| :----------------- | --------------------: | ----------------: | -----------: | -----------: | ----------: | ----------------: |
|
| 237 |
| **Coding** | | | | | | |
|
| 238 |
| LiveCodeBench v6 | 75.1 | 69.9 | 59.4 | 68.3 | 59.8 | 42.7 |
|
|
|
|
| 260 |
- **JetBrains pairwise** is win rate against `Qwen2.5-7B-Instruct` on an internal benchmark.
|
| 261 |
- `—` indicates the model lacks native tool calling (OLMo-3-7B-Thinking).
|
| 262 |
|
| 263 |
+
For more details, see the [Mellum2 Technical Report](TODO).
|
| 264 |
|
| 265 |
## License
|
| 266 |
|