JetBrainsNo. 54
Mellum2.1

Mellum2.1-12B-A2.5B

Instruct replied faster. Thinking fixed more functions.

Test
Python repairs and customer rules at a fictional booking desk
Model files
12.93 GB each on disk
Ran on
One RTX 5090 graphics card with 32 GB. We also ran Instruct on an ASUS Z13 laptop using only its processor.
License
Apache 2.0

Model guides · JetBrains · At home

Mellum2.1 Thinking fixed 47 of 64 Python functions

JetBrains’ Mellum2.1-12B-A2.5B-Instruct answers code questions directly. On our graphics card it usually replied in under a second. Mellum2.1-12B-A2.5B-Thinking typically took tens of seconds but fixed more Python functions and got more booking decisions right. Instruct ran on a laptop processor.

In short

  • What JetBrains designed each model to do JetBrains lists “small fixes” and “questions about code” as uses for Instruct. For “long, difficult tasks that benefit from reasoning before acting” it recommends Thinking. JetBrains trained the models separately. We also allowed Thinking to write longer replies. These tests cannot tell us how much of the difference came from thinking alone.
  • Thinking fixed 47 functions on the first run We gave each model 64 short Python functions to repair. Instruct fixed 18 on the first run. We then repeated the same 64 tasks with one fresh answer per task. Thinking fixed 48 on the repeat and Instruct fixed 16.
  • Which time met the customer’s rules? At our fictional booking desk a customer could request a time in a preferred wing and set a spending limit. A time in the right wing could still cost too much. Given the available times, Thinking made the right decision in 151 of 192 cases. Instruct did so in 32. Nothing was actually booked.

What our tests showed

Instruct ran on the laptop processor alone

We gave Instruct the same 64 functions twice on an ASUS Z13. It returned working code on 42 of those 128 attempts. For the first 32 functions on the first run, a typical reply took 8.0 seconds on the laptop and 0.6 seconds on the card. We tested Thinking only on the card.

Both models could look up the available times

For 48 extra requests we left out the list of times. Both models asked for the list correctly every time. Once they had it, Thinking made the right decision on 38 of 48 requests and Instruct on nine of 48.

What to watch for

Instruct often asked the customer to pick

Instruct asked the customer to choose in 105 of the 192 cases where we supplied the list. The best times were tied in only 29 of those cases. When just one time qualified for a new booking, Instruct still asked the customer to pick in 46 of 48 cases.

Thinking sometimes chose the wrong time

When we supplied the list, Thinking would have made or changed a booking incorrectly in 36 of 192 cases. It asked the customer to choose once when it should have changed a booking. Four other requests ended without a decision.

These tests did not cover work across files in a real project, code completion in an editor or languages other than Python.

The facts

How many repairs worked by 10, 30 and 60 seconds?

Each function processed receipts. We made the 64 tasks from eight sets of receipt rules. We planted one to three bugs in each function and gave the model the rules to follow. None of the examples in the question exposed the bugs. The model had to find them by reading the rules and return the whole function without using tools. We tested the code on inputs the model had never seen. Every result had to be right.

We timed each reply separately. The table counts first-run repairs that passed every test and came back within the time shown.

Working repairsBy 10 secondsBy 30 secondsBy 60 secondsAt the end
Instruct18181818
Thinking5444747

Typical times here are medians, halfway down the list of waits from shortest to longest. Across both runs the typical repair reply on the card took 0.6 seconds for Instruct and 19.5 seconds for Thinking. That includes failed repairs. The most common failure was code that ran but gave a wrong answer on a hidden input. This happened on 75 of 128 attempts for Instruct and 30 of 128 for Thinking.

What counted as a correct booking decision?

A customer could specify how long a booking had to last or ask for a time that did not overlap an existing booking. The model had to reserve the qualifying time or change a named booking as requested. If times were equally good it had to ask the customer to choose. If none met the rules it had to say so.

We checked the action and the customer account. We also checked the time chosen or the reason for leaving the booking alone. Each of the 192 requests came up once per model. With the list supplied, the typical reply took 0.2 seconds for Instruct and 14.7 seconds for Thinking on the card.

How much graphics memory was in use?

We tested the two Mellum models on 28 and 29 November 2026. We loaded one model at a time on an RTX 5090 with 32 GB of memory. Just after we loaded Instruct the whole card showed 14,937 mebibytes (MiB) in use. After we loaded Thinking it showed 14,944 MiB. Other desktop programs were included in each reading. We measured once per model after loading. Peak use while answering and the minimum memory needed are unknown.

The two downloads were 12.93 GB each. In their names 12B means 12 billion parameters, the stored numbers that shape a model’s answers. A2.5B means the model uses 2.5 billion of those numbers to produce each piece of text.

How did our settings compare with the maker’s?

We used llama.cpp, a program that runs model files on your own computer. JetBrains offers a larger file that preserves more of the original model’s detail and recommends a smaller download. We used the larger file for each model. We followed the recommended settings for choosing the next small piece of text, called a token.

We allowed 65,536 tokens for the question and reply together. JetBrains lists 131,072. Every question fit easily. We did not test long inputs. We limited each reply to 16,384 tokens for Instruct and 49,152 for Thinking. The JetBrains examples allow 81,920. Thinking reached its limit before giving an answer on two repair attempts and two booking requests. All counted as misses.

We timed one request at a time without the optional feature JetBrains provides to speed up replies.

How did a larger model do on the same tasks?

Qwen3.8-27B has 27 billion parameters, more than twice as many as either Mellum model. We tried two downloads of Qwen. The larger file was 20.22 GB and the smaller was 17.56 GB. JetBrains compares Mellum with the earlier Mellum2 and with Qwen3.5 9B and Gemma 4 E4B. We did not run those models or repeat the maker’s own agent tests, where models can run commands and work with files.

With thinking switched off the larger Qwen file fixed 40 of 64 functions on the first run. We compared the models task by task after the run. Thinking fixed 14 functions that Qwen missed. Qwen fixed seven that Thinking missed. With so few cases separating them, chance could explain the gap.

With thinking on, the larger Qwen file fixed 62 of 64 functions on the first run and the smaller file fixed 63 of 64. Mellum2.1 Thinking returned all 47 of its working repairs within 60 seconds each. The larger Qwen file returned 18 that quickly and the smaller file returned 17. With thinking on, we repeated only the first 32 functions for each Qwen file.

With thinking on, each Qwen file got 191 of the 192 booking decisions right. We set the difficulty using separate practice requests. The smaller Qwen file got every practice request right at every level we tried, so the test could not show whether another model could do better.

We ran each repair on hidden inputs. A separate program checked the answer key for the booking requests.

Read more