For a long time, the coding assistant race meant scaling up parameter counts: jumping from 70B models to hundreds of billions. Developers were forced to either pay for expensive cloud APIs or build multi-GPU home servers. Meanwhile, lightweight autocomplete models inside IDEs often produced code that looked syntactically right but failed at runtime.
JetBrains took a different path by releasing the open-source coding model Mellum 2.1 (Mellum2.1-12B-A2.5B-Thinking) under the permissive Apache 2.0 license.
The network uses a Mixture-of-Experts (MoE) architecture with 12 billion total parameters, activating just 2.5 billion per token. The real breakthrough isn't the architecture itself, though—it is the post-training method: large-scale Reinforcement Learning across millions of isolated sandboxes.
Earlier, we compared open tools in GLM 5.2 vs. Claude Code, noting how open coders are catching up to closed leaders. Mellum 2.1 focuses squarely on compactness and near-instant response inside the editor.
Training on Tests: From Guessing Tokens to Working in the Terminal
Standard pre-training teaches a neural network to predict the next token in code. As a result, models memorize common patterns well but get lost when they hit compiler errors or type mismatches.
To train Mellum 2.1, JetBrains engineers placed the model inside isolated virtual environments containing real repositories in Python, Kotlin, Java, Go, and TypeScript. The model interacted with projects just like a human developer:
- It inspected file trees and build configs (Gradle, Maven, npm).
- It made targeted edits to source files using standard shell commands.
- It ran project linters and test suites.
- It received a reward strictly based on the binary
pass/failresult of those tests.
Whenever an edit broke the build, the model received negative feedback. It had to inspect the diagnostic output and work through an internal reasoning chain (Thinking Process) before writing the next patch.
Benchmark Breakthrough and IDE Integration
The results of hands-on training exceeded expectations. On the industry-standard SWE-bench Verified benchmark for real-world software engineering tasks, Mellum 2.1 jumped from 2.0% (the previous Mellum 2) to an impressive 43.8%. The physical model size didn't change by a single byte—all of that gain came from adapting the weights to solve real engineering problems.
The model is tuned for seamless integration across JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion):
- Low time-to-first-token: Because only 2.5B parameters activate per token, inference on a local GPU or small server feels instant and doesn't interrupt your flow.
- Repository context awareness: The model navigates project symbol graphs and inserts internal classes and methods accurately without hallucinating.
- Subagent support: Its lightweight footprint lets you run multiple Mellum instances in parallel—for example, one checking syntax while another writes unit tests.
Limitations and Engineering Verdict
Despite its strong scores, Mellum 2.1 was built as a specialized IDE tool rather than a general-purpose planner. For designing large architectures from scratch or handling deep, open-ended reasoning, flagship cloud models remain essential.
For everyday coding—refactoring methods, generating tests, and tracking down local bugs—Mellum 2.1 sets a new efficiency bar. JetBrains' release proves that the future of open coding models lies not in bloating parameter counts, but in training models to act inside real development environments.

