
Introducing Mellum2: A 12B Mixture-of-Experts Model by JetBrains
Quick Answer
JetBrains has unveiled Mellum2, a 12B Mixture-of-Experts model that enhances performance on various NLP tasks.
Quick Take
JetBrains has unveiled Mellum2, a 12B Mixture-of-Experts model that enhances performance on various NLP tasks. This model utilizes a unique architecture to optimize resource usage, making it suitable for developers and researchers seeking efficient AI solutions. Initial benchmarks indicate significant improvements in processing speed and accuracy compared to previous models.
Key Points
- Mellum2 features a 12 billion parameter architecture for advanced NLP capabilities.
- The model employs a Mixture-of-Experts approach to optimize computational efficiency.
- Benchmarks show marked improvements in speed and accuracy over earlier models.
- Designed for developers and researchers in the AI and NLP fields.
- JetBrains aims to enhance accessibility to powerful AI tools with this release.
📖 Reader Mode
~3 min read- 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.
Benchmark highlights
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:
| Model | Total parameters | Active parameters per token | Modality | License |
|---|---|---|---|---|
| Mellum2 | 12B | 2.5B | Text and code | Apache 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.
Key use cases
Routing 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.
RAG pipelines
The model is well suited for latency-sensitive retrieval pipelines, including context compression, summarization, and retrieval post-processing.
Sub-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.
Private deployment
Because Mellum2 is open and efficient to serve, it can be deployed in self-hosted environments involving proprietary code or internal data.
Why 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.
Getting 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 is ready to try.
— Originally published at huggingface.co
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Hugging Face
See more →
From Hugging Face to Amazon SageMaker Studio in one click
Hugging Face has launched a deep-link integration with Amazon SageMaker Studio, allowing developers to seamlessly transition from model discovery to deployment with a single click. This integration streamlines the process by pre-configuring permissions and providing GPU quota visibility, significantly reducing the time from model selection to experimentation.

