Skip to content
,

Mellum2.1 Instruct: Run JetBrains’ Free Coding Model Locally (Ollama, llama.cpp, vLLM)

10–15 minutes
Woman developer at a coding desk holding a tablet with a MELLUM card, hook free coder runs locally

JetBrains has released Mellum2.1 Instruct, a free, open-weight coding model that answers directly instead of “thinking out loud” first. It was announced on 25 November 2026 under the Apache 2.0 licence, with official GGUF files on day one.

It is a small mixture-of-experts model: 12B parameters in total, only 2.5B active per token, with a 131K-token context. The recommended Q4_K_M file is just 8.1 GB, so it fits on a normal 12-16 GB graphics card.

This guide covers what changed from Mellum2, every download and its size, exact Ollama, llama.cpp, LM Studio and vLLM commands, the full benchmark table (vendor-reported), how it stacks up against Qwen3.5 9B and Gemma 4, and when to pick the Thinking version instead.

TL;DR

  • What: JetBrains Mellum2.1 Instruct, a non-reasoning coding model for agents and chat. 12B MoE, 2.5B active, 64 experts (8 active), 131,072-token context.
  • Licence: Apache 2.0, so commercial use is allowed with no revenue caps.
  • Run it fast: ollama run hf.co/JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q4_K_M (8.1 GB download).
  • Big jump: SWE-bench Verified rises from 20.2% (Mellum2) to 40.4%, AIME from 32.3 to 61.1 (all vendor-reported).
  • Speed angle: JetBrains says it writes about half as many tokens as Mellum2.1 Thinking on its repo tasks.
  • Catch: Qwen3.5 9B still beats it on SWE-bench Verified (49.8%), GPQA and MMLU-Redux in JetBrains’ own table. Mellum2.1 wins on MBPP+, MultiPL-E and HumanEval+.

What Is Mellum2.1 Instruct?

Mellum is JetBrains’ own model family, the company behind IntelliJ IDEA, PyCharm and the Junie coding agent. Mellum2 launched on 1 June 2026 as a 12B-A2.5B model trained from scratch on natural language and code.

Mellum2.1 keeps the exact same architecture. The model card says it plainly: “The architecture is unchanged… What changed is post-training.” That post-training is where the big score jumps come from.

JetBrains ran large-scale reinforcement learning, including agentic training inside real repositories with shell and file tools. The model was “rewarded when the tests pass”, which is exactly the skill a coding agent needs. Training used NVIDIA NeMo RL and NeMo Megatron-Bridge.

Date (2026) Release
1 June Mellum2 launch (Base, Instruct and Thinking, 12B-A2.5B)
Before 25 Nov Mellum2.1 Thinking published on Hugging Face (RL becomes the main training stage)
25 Nov Mellum2.1 Instruct announced, generally available, with official GGUF and MTP draft files

Specs and Architecture

Both Mellum2.1 variants share these numbers, taken from the Hugging Face config and model cards:

Spec Mellum2.1 Instruct
Type Mixture-of-experts (MoE), text in, text out
Total / active parameters 12B / 2.5B
Experts 64, with 8 active per token
Layers 28 (hidden size 2304, MoE intermediate 896)
Attention GQA, 32 query heads and 4 KV heads; sliding window of 1,024 tokens on 3 of every 4 layers
Context length 131,072 tokens
Vocabulary 98,304 tokens
Precision BF16 weights
Library Transformers 5.11.0 or later (architecture name mellum)
Licence Apache 2.0

Note: the sliding-window layers matter for home users. Only 1 in 4 layers keeps the full context in its KV cache, so long contexts cost much less memory than on a plain dense model.

Instruct vs Thinking: Which One to Download

JetBrains ships two post-trained versions of the same base model. The card puts the split simply: Instruct “answers directly, without a chain of thought”. For “long, difficult tasks”, use Thinking.

Use case Pick Why
Inline chat, quick edits, explaining code Instruct No reasoning preamble, answers start at once
Agent loops with many tool calls Instruct About half the output tokens on JetBrains’ repo tasks, so each step is faster
Hard algorithms, maths, competitive programming Thinking LiveCodeBench 82.0 vs 53.7; AIME 83.3 vs 61.1
Tough multi-file bug fixes Thinking SWE-bench Verified 47.0% vs 40.4%; SWE-bench Pro 28.0 vs 20.0

Tip: both use the same 12B-A2.5B weights layout and the same file sizes. Keep both on disk and switch per task; you lose nothing but disk space.

Every Download and Its Size

JetBrains published the full-precision model and its own GGUF quantisations. Sizes and quality numbers below come from the official GGUF card (KLD and top-token match measured against BF16 on Wikitext-2).

File Size KLD vs BF16 Top-token match
Mellum2.1-12B-A2.5B-Instruct-BF16.gguf 24.3 GB reference reference
...-Instruct-Q8_0.gguf 12.9 GB 0.010 96.2%
...-Instruct-Q6_K.gguf 10.9 GB 0.022 94.3%
...-Instruct-Q4_K_M.gguf (recommended) 8.1 GB 0.100 87.4%
...-Instruct-MXFP4_MOE.gguf 7.0 GB 0.166 84.3%
  • Safetensors (BF16): JetBrains/Mellum2.1-12B-A2.5B-Instruct for vLLM, SGLang and Transformers.
  • Official GGUF: JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF.
  • MTP draft files: same GGUF repo. A 1.8 GB draft head, plus combined files in the mtp/ folder (Q4_K_M 8.4 GB, Q8_0 13.4 GB) for faster speculative decoding.
  • Community builds: bartowski/Mellum2.1-12B-A2.5B-Instruct-GGUF (more quant levels) and randmaru/Mellum2.1-12B-A2.5B-Instruct-mlx-mxfp4 for Apple MLX.
  • Thinking version: JetBrains/Mellum2.1-12B-A2.5B-Thinking and its -GGUF repo.

What Hardware Do You Need?

JetBrains gives no official VRAM table, so the figures below are my estimates from the file sizes plus room for the KV cache. Because only 2.5B parameters are active, speed is closer to a 3B model than a 12B one once it is loaded.

Your hardware Suggested file Context you can expect
8 GB GPU MXFP4_MOE (7.0 GB) or Q4_K_M with some layers on CPU Short (8K-16K)
12 GB GPU (RTX 3060/4070) Q4_K_M (8.1 GB) 32K comfortably
16 GB GPU (RTX 4060 Ti 16 GB / 5080) Q6_K (10.9 GB) or Q4_K_M with long context 64K or more
24-32 GB GPU Q8_0 (12.9 GB) Full 131K
CPU only, 32 GB RAM Q4_K_M Usable; MoE with 2.5B active runs well on CPU
Apple Silicon 16 GB+ MLX mxfp4 or Q4_K_M GGUF 32K+

Warning: the llama.cpp example on the card sets --ctx-size 131072. On a 12 GB card that may not fit next to the weights. Start at 32768 and raise it while watching VRAM.

How to Run It Locally (Ollama, llama.cpp, LM Studio)

Option 1: Ollama (easiest)

Mellum2.1 is not in the official Ollama library yet, but Ollama can pull any Hugging Face GGUF directly. Our hf.co guide for Ollama explains the format in detail.

  1. Update Ollama to the latest version, because new architectures need a recent llama.cpp inside it.
  2. Pull and run the model: ollama run hf.co/JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q4_K_M
  3. Raise the context if you paste big files. Ollama’s default is small; see how to set num_ctx in Ollama.
  4. Use it from code through Ollama’s OpenAI-compatible endpoint at http://localhost:11434/v1.

Option 2: llama.cpp server (fastest, with MTP)

The official GGUF card gives this command. It downloads the file and starts an OpenAI-compatible server on port 8080:

llama-server -hf JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q4_K_M --ctx-size 131072 --port 8080 --temp 0.6 --top-p 0.95 --top-k 20

For speculative decoding with the bundled draft head, add the two flags from the card: --spec-type draft-mtp --spec-draft-n-max 1. This needs llama.cpp build b11747 (19 October 2026) or newer.

New to the server? Our llama-server guide covers install, flags and connecting clients.

Option 3: LM Studio

  1. Open the Discover tab and search for Mellum2.1.
  2. Pick a GGUF from the JetBrains or bartowski repo (Q4_K_M for 12 GB cards). On a Mac, the MLX build is an option.
  3. Set the sampler to temperature 0.6, top-p 0.95, top-k 20, matching the card’s quickstart.
  4. Start the local server in the Developer tab if you want to use it from an editor.

Not sure which runner to choose? See LM Studio vs Ollama.

Docker Model Runner

docker model run hf.co/JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q4_K_M

vLLM, SGLang and Transformers

For a GPU server or a team endpoint, use the BF16 safetensors (about 24 GB). The model card gives these commands.

vLLM with tool calling (needed for agents):

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

SGLang:

python3 -m sglang.launch_server --model-path "JetBrains/Mellum2.1-12B-A2.5B-Instruct" --host 0.0.0.0 --port 30000

Transformers (version 5.11.0+):

pip install -U transformers accelerate

from transformers import AutoModelForCausalLM, AutoTokenizer
name = "JetBrains/Mellum2.1-12B-A2.5B-Instruct"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(name, device_map="auto")

The quickstart client uses temperature=0.6, top_p=0.95, top_k=20 and max_tokens=81920. If vLLM is new to you, start with our vLLM install guide.

Note: the Hugging Face page states that no hosted Inference Provider serves this model yet. There is no paid API to compare against; it is self-host only for now.

Use It as a Coding Assistant in Your Editor

Once the model runs in Ollama, LM Studio or llama-server, any tool that speaks the OpenAI API can use it. Common setups:

  • JetBrains IDEs: recent AI Assistant versions can connect to local models served by Ollama or LM Studio from the AI Assistant model settings. Point it at your local server and choose the Mellum2.1 model.
  • VS Code: extensions such as Continue and Cline accept an Ollama or OpenAI-compatible endpoint. Our Cline and Continue setup guide shows the same steps with another model.
  • Agents and scripts: use vLLM with the hermes tool parser, or Ollama’s tool calling (see our Ollama tool calling guide).

Tip: for agent loops, Instruct’s shorter answers are the whole point. JetBrains ran its agentic benchmarks with a 114K-token context and up to 16K tokens per turn, so give the model a big window if you can.

Benchmarks (Vendor-Reported)

All numbers below are self-reported by JetBrains on the model card. No independent leaderboard had tested Mellum2.1 Instruct when this was written. Non-agentic tests use greedy decoding (except AIME); agentic tests use the Pi v0.73.1 harness.

Benchmark Mellum2.1 Instruct Mellum2 Instruct Mellum2.1 Thinking
SWE-bench Verified 40.4 20.2 47.0
SWE-bench Pro 20.0 12.0 28.0
Terminal-Bench 2.1 8.2 6.7 17.4
LiveCodeBench v6 53.7 40.4 82.0
HumanEval+ 89.1 84.8 91.5
MBPP+ 74.3 72.2 79.4
MultiPL-E (7 languages) 73.7 68.7 81.5
BFCL v4 (tool calls) 46.5 46.2 62.3
WorkBench 38.0 22.2 44.6
AIME 25/26 61.1 32.3 83.3
IFEval 87.2 80.8 90.6
GPQA Diamond 48.6 40.0 64.6
MMLU-Redux 82.8 77.6 87.8
HarmBench (lower is safer) 15.6 21.2 8.5

The clearest gain is agentic coding: SWE-bench Verified doubled and WorkBench jumped 16 points. Plain tool-call accuracy (BFCL v4) barely moved, though.

Mellum2.1 vs Qwen3.5 9B vs Gemma 4 E4B

JetBrains compares against the two most popular small open models, both in non-thinking mode. Same source, same caveats.

Benchmark Mellum2.1 Instruct (12B-A2.5B) Qwen3.5 9B (non-thinking) Gemma 4 E4B (non-thinking)
SWE-bench Verified 40.4 49.8 6.4
SWE-bench Pro 20.0 12.7 4.7
LiveCodeBench v6 53.7 65.2 64.8
HumanEval+ 89.1 84.8 85.4
MBPP+ 74.3 63.8 65.6
MultiPL-E 73.7 66.4 67.7
BFCL v4 46.5 61.2 42.7
GPQA Diamond 48.6 81.3 52.1
MMLU-Redux 82.8 90.7 84.0
Licence Apache 2.0 Apache 2.0 Gemma terms

Who should use which:

  • Mellum2.1 Instruct: code generation across many languages, short agent steps, and fast CPU or low-VRAM setups thanks to only 2.5B active parameters.
  • Qwen3.5 9B: the better all-rounder for knowledge, tool calling and harder repo fixes, at the cost of more compute per token (dense 9B).
  • Gemma 4 E4B: phones and tiny laptops; not an agentic coder. See how to run Gemma 4 locally.

For a wider list of what runs well at home, see our best Ollama models roundup.

Limits, Licence and What Is Unknown

  • Licence: Apache 2.0. You can use it commercially, fine-tune it and ship it, keeping the licence and notice files.
  • English only: the Hugging Face card tags English. Code comments in other languages may work, but nothing is promised.
  • Not a knowledge model: GPQA 48.6 and MMLU-Redux 82.8 trail Qwen3.5 9B. Use it for code, not trivia or research.
  • Weak terminal work: Terminal-Bench 2.1 is only 8.2. Long shell-heavy agent tasks belong to Thinking or a bigger model.
  • Safety refusals: XSTest 72.3 is lower than rivals (91.2 for Qwen3.5 9B), which suggests more over-refusals on harmless prompts that look risky.
  • Numbers mismatch: the Instruct and Thinking cards list slightly different scores for the same older models (for example Mellum2 Thinking LiveCodeBench 70.5 vs 69.4). Treat small gaps as noise.
  • Unknown: no independent benchmarks yet, no official Ollama library entry, no hosted API and no published VRAM table.

Troubleshooting

“unknown model architecture: ‘mellum’”

Your llama.cpp, Ollama or LM Studio runtime is too old. Update it; the MTP files specifically need llama.cpp b11747 or newer.

Transformers fails to load the model

The model needs Transformers 5.11.0 or later. Run pip install -U transformers accelerate and restart your Python session.

Out of memory with –ctx-size 131072

Lower the context to 32768, or use MXFP4_MOE. In Ollama, reduce num_ctx. Long context is cheaper than usual here, but it is not free.

Tool calls come back as plain text in vLLM

Start vLLM with both --enable-auto-tool-choice and --tool-call-parser hermes, as shown on the model card.

Answers are repetitive or looping

Check you are not running greedy decoding in chat. Use the card’s settings: temperature 0.6, top-p 0.95, top-k 20.

Ollama “pull model manifest: file does not exist”

Check the tag spelling. It must be hf.co/JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q4_K_M, with the exact capital letters and quant name.

My Take

Mellum2.1 Instruct is not the smartest small model, and JetBrains’ own table admits that. Qwen3.5 9B still wins on SWE-bench Verified, tool calling and general knowledge.

What makes it interesting is the shape. A 2.5B-active MoE with sliding-window attention is cheap to run, fast on CPUs and laptops, and answers without a long reasoning preamble. For autocomplete-style chat and short agent steps, latency matters more than one extra benchmark point.

The Apache 2.0 licence and day-one official GGUFs with MTP files are a nice touch too. On a 16 GB card like the RTX 5080, I would keep Q6_K of Instruct for quick edits and the Thinking GGUF for harder bugs, and wait for independent SWE-bench runs before trusting it with big refactors.

FAQ

Is Mellum2.1 Instruct free?

Yes. The weights are free on Hugging Face under Apache 2.0, including for commercial use.

Can I run Mellum2.1 on an 8 GB GPU?

Yes, with the 7.0 GB MXFP4_MOE file and a short context, or Q4_K_M with some layers on the CPU. Because only 2.5B parameters are active, CPU offload hurts less than with dense models.

Is Mellum2.1 in the Ollama library?

Not as an official library entry at the time of writing. Run it straight from Hugging Face with ollama run hf.co/JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q4_K_M.

What is the difference between Mellum2.1 Instruct and Thinking?

Instruct answers directly and uses about half the tokens. Thinking reasons first and scores higher on hard problems, such as 47.0% vs 40.4% on SWE-bench Verified.

Does Mellum2.1 support tool calling?

Yes. The model card documents vLLM with --enable-auto-tool-choice --tool-call-parser hermes, and JetBrains reports BFCL v4 46.5 for Instruct.

Is Mellum2.1 better than Qwen3.5 9B for coding?

It depends on the task. JetBrains’ table shows Mellum2.1 ahead on HumanEval+, MBPP+, MultiPL-E and SWE-bench Pro, but behind on SWE-bench Verified and LiveCodeBench.

What context length does Mellum2.1 support?

131,072 tokens. Three of every four layers use a 1,024-token sliding window, which keeps long-context memory use lower.

Sources

  • Hugging Face model card: huggingface.co/JetBrains/Mellum2.1-12B-A2.5B-Instruct (architecture, training, benchmarks, commands, licence)
  • Hugging Face GGUF card: huggingface.co/JetBrains/Mellum2.1-12B-A2.5B-Instruct-GGUF (file sizes, KLD, llama.cpp/Ollama/Docker commands, MTP files)
  • Hugging Face model card: huggingface.co/JetBrains/Mellum2.1-12B-A2.5B-Thinking (Thinking benchmarks)
  • Hugging Face blog, “Mellum2 launch”, JetBrains, 1 June 2026
  • JetBrains AI blog, “Mellum2.1 Instruct is out, bringing faster answers for coding agents”, November 2026
  • nocode.mba AI release tracker, Mellum2.1 Instruct entry (announcement date 25 November 2026)
Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman developer at a coding desk holding a tablet with a MELLUM card, hook free coder runs locally