JetBrains has released Mellum2, a 12-billion-parameter Mixture-of-Experts (MoE) model designed for fast, specialized tasks within multi-model AI pipelines. Open-sourced under the Apache 2.0 license, Mellum2 is the successor to the company's earlier 4B dense model, now focusing on software engineering capabilities including code generation, debugging, tool use, and agentic coding.
Architecture
Mellum2 employs an MoE architecture with 64 experts, activating only 8 per token (2.5B active parameters). This keeps per-token compute comparable to a 2.5B dense model while providing higher capacity for specialization. Key specs: 28 layers, hidden size 2304, context length 131,072 tokens, and Grouped-Query Attention with 32 query heads and 4 KV heads. The model also features a Multi-Token Prediction head that serves as a built-in draft model for speculative decoding, enhancing inference speed.
Performance and Benchmarks
JetBrains reports strong coding results: EvalPlus (78.4) and MultiPL-E (67.1) outperform many comparable models in the 4B–14B range. However, LiveCodeBench v6 (37.2) trails behind Qwen3.5 9B (63.7). In tool use, Mellum2 achieves 66.3 on BFCL v3. The model lags in general knowledge benchmarks like MMLU-Redux (78.1) and GPQA Diamond (40.9), consistent with its specialization focus.
Use Cases
JetBrains positions Mellum2 as a "focal model" for production scenarios including routing and orchestration in multi-model systems, low-latency RAG pipelines, sub-agents in complex workflows, and private local deployment. The Apache 2.0 license enables unrestricted self-hosting and fine-tuning.
Availability
Six checkpoints are released: base pretrain, base (with context extension), SFT instruct, SFT thinking, RL-tuned instruct, and RL-tuned thinking variants. vLLM support is available, including optional tool-calling.