The Research Report
Mellum2
Mellum2: A 12B Mixture-of-Experts Model by JetBrains
Source: https://huggingface.co/blog/jetbrains/mellum2-launch
For End Users
Mellum2 is a 12‑billion‑parameter code assistant you can run on your own hardware. It costs about half the compute of a dense 12B model, so you can get fast completions without blowing your GPU budget. The model works well for code completion, in‑IDE suggestions, and quick Q&A about code. It also handles normal text tasks like summarizing docs or answering questions, so you can use a single model for many developer workflows. You can download it from Hugging Face under Apache 2.0 and run it in any environment that supports PyTorch or vLLM. No API key is required and your code never leaves your machine.
For Engineers and Researchers
Mellum2 uses a Mixture‑of‑Experts architecture with 64 experts, activating 8 experts per token. It combines sliding‑window attention (1 024 tokens) with full attention, giving a context window of 131 072 tokens. The model has 28 layers, hidden size 2 304, intermediate size 7 168, and MoE intermediate size 896. It runs in bfloat16 precision. Benchmarks show competitive performance:
- HumanEval 41.5 (vs 45.1 for OLMo‑3, 55.5 for Qwen2.5)
- HumanEval+ 37.2
- MBPP 62.4 (vs 50.6 for OLMo‑3)
- MBPP+ 61.4
- MultiPL‑E (7 langs) 21.0
- MMLU 70.9 and MMLU‑Pro 59.3
- GSM8K 81.7 and Math 10.0
The model is released under Apache 2.0, making it easy to fine‑tune or embed in private pipelines. JetBrains provides three variants: Base (pre‑training checkpoint), Instruct (supervised instruction‑tuned), and Thinking (RL‑tuned for reasoning). The base model can be served with vLLM using --max-model-len 131072. The open‑source release fills a gap for high‑throughput, low‑latency coding models that can be deployed on‑premise.
The Skeptical Take
Mellum2’s MoE design adds routing overhead that can hurt latency on small batches. Load‑balancing across 64 experts may be uneven on some hardware, leading to spikes in memory usage. Benchmarks focus on standard code‑generation suites; real‑world IDE usage may expose latency differences not captured in HumanEval. The model’s reasoning scores lag behind the strongest 7B dense models on some math benchmarks (e.g., MATH 10.0). Open‑source releases also raise the risk of misuse, as the model can be fine‑tuned for harmful code generation without any guardrails.
Word count: 311
Written at: 2026-06-21T01:45:45Z