Introducing Mellum2: A 12B Mixture-of-Experts Model by JetBrains

Hugging Face Blog Models

Summary

JetBrains introduces Mellum2, a 12B parameter Mixture-of-Experts model optimized for code generation and reasoning tasks, with a focus on private deployment and integration into development workflows.

No content available
Original Article
View Cached Full Text

Cached at: 06/01/26, 06:57 PM

Introducing Mellum2: A 12B Mixture-of-Experts Model by JetBrains

Source: https://huggingface.co/blog/JetBrains/mellum2-launch Back to Articles

Nikita Pavlichenko’s avatar

Mellum Logo

  • Mellum2 is a 12B-parameter Mixture-of-Experts model trained from scratch on natural language and code.
  • The model activates only 2.5B parameters per token, making it efficient for high-throughput, low-latency inference. Mellum2 is can be used for routing, RAG, summarization, sub-agents, high-throughput coding features, and private deployments.
  • It is released under the Apache 2.0 license.
  • Compared with similar-sized models, Mellum2 delivers competitive benchmark performance while achieving more than 2x faster inference.
  • Download the model on Hugging Face:https://huggingface.co/collections/JetBrains/mellum-2
  • For architecture details, training setup, benchmarks, and evaluation methodology, read the full technical report:https://arxiv.org/pdf/2605.31268

Today we’re releasing Mellum2, an open Mixture-of-Experts model optimized for low-latency text-and-code workloads. Mellum originally started as a code completion model. With Mellum2, we extend that foundation to a broader set of natural language and software engineering tasks while keeping the model focused on efficient inference and deployability. Modern AI systems increasingly rely on multiple model calls: routing, retrieval, summarization, planning, validation, and tool use. Many of these operations are latency-sensitive and do not require the largest available model. Mellum2 targets these workloads.

https://huggingface.co/blog/JetBrains/mellum2-launch#benchmark-highlightsBenchmark highlights

Mellum 2 Evals

In our technical report, we evaluate Mellum2 across code generation, reasoning, science, and math benchmarks. Mellum2 is competitive with similarly sized open models while delivering more than 2x faster inference, making it suitable for high-throughput production workloads. Model architecture Mellum2 is a Mixture-of-Experts model:

ModelTotal parametersActive parameters per tokenModalityLicenseMellum212B2.5BText and codeApache 2.0 The MoE architecture keeps total model capacity high while activating only a subset of parameters for each token. This makes inference more efficient and helps reduce serving cost for real-time workloads. Mellum2 is intentionally focused on text and code rather than multimodal tasks. This specialization keeps the model compact and efficient for software engineering workloads.

https://huggingface.co/blog/JetBrains/mellum2-launch#key-use-casesKey use cases

https://huggingface.co/blog/JetBrains/mellum2-launch#routing-and-orchestrationRouting and orchestration

Mellum2 works well as a lightweight routing and orchestration model in multi-model systems, including prompt classification, tool selection, and intermediate control-flow steps.

https://huggingface.co/blog/JetBrains/mellum2-launch#rag-pipelinesRAG pipelines

The model is well suited for latency-sensitive retrieval pipelines, including context compression, summarization, and retrieval post-processing.

https://huggingface.co/blog/JetBrains/mellum2-launch#sub-agentsSub-agents

Mellum2 can be used for agent subtasks such as planning, validation, transformation, and context preparation, reducing the need to invoke larger models for intermediate operations.

https://huggingface.co/blog/JetBrains/mellum2-launch#private-deploymentPrivate deployment

Because Mellum2 is open and efficient to serve, it can be deployed in self-hosted environments involving proprietary code or internal data.

https://huggingface.co/blog/JetBrains/mellum2-launch#why-well-scoped-models-matterWhy well-scoped models matter

As AI systems mature, the most effective architectures are becoming less monolithic. A single frontier model can be powerful, but production systems often need several specialized components working together: retrievers, routers, code-aware models, validators, tool callers, and larger reasoning models. We think of Mellum2 as a “focal” model: a fast, well-scoped model optimized for high-frequency tasks inside larger AI systems. The goal is not to replace every model in the stack. The goal is to make the stack faster, cheaper, and easier to control.

https://huggingface.co/blog/JetBrains/mellum2-launch#getting-started-with-mellum2Getting started with Mellum2

If you are building AI systems for software engineering – inside an IDE, in a RAG pipeline, as part of an agent workflow, or on private infrastructure – Mellum2 isready to try.

Similar Articles

JetBrains's Mellum 2 (49 minute read)

TLDR AI

JetBrains releases Mellum 2, a 12B-parameter open-weight Mixture-of-Experts language model specialized in software engineering, with competitive performance in code generation, reasoning, and tool use, available under Apache 2.0.

Mellum2 Technical Report

Hugging Face Daily Papers

Mellum 2 is a 12B-parameter open-weight MoE language model by JetBrains with 2.5B active parameters, specialized in software engineering tasks and optimized for efficient inference on commodity GPUs.

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

Hugging Face Models Trending

JetBrains releases Mellum2-12B-A2.5B-Thinking, an open-source Mixture-of-Experts reasoning model with 131k context length, trained with RLVR for explicit chain-of-thought reasoning.

Mellum 2 12B A2.5B

Reddit r/LocalLLaMA

JetBrains released Mellum 2 12B A2.5B, a coding-focused small MoE model with reasoning performance comparable to Qwen 3.5 9B but weaker in other tasks.