JetBrains · text · mixture of experts

Mellum2-12B-A2.5B-Thinking

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

Mellum2-12B-A2.5B-Thinking at Q4_K_M is exactly 8,071,295,040 bytes (7.52 GiB / 8.07 GB) — an effective 5.314 bits per weight, not the nominal 4. Its KV cache at 32K is 0.50 GiB, not the 1.75 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
12.1B
total, not active
Architecture
mellum
28 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q4_K_M7.52 GiB8,071,295,0405.314JetBrains
Q6_K10.13 GiB10,879,834,1767.164JetBrains
Q8_012.04 GiB12,925,417,5368.511JetBrains

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.12 GiB0.22 GiB1.88×7 / 21 / 0
8,1920.17 GiB0.44 GiB2.56×7 / 21 / 0
16,3840.28 GiB0.88 GiB3.12×7 / 21 / 0
32,7680.50 GiB1.75 GiB3.51×7 / 21 / 0
65,5360.94 GiB3.50 GiB3.74×7 / 21 / 0
131,0721.81 GiB7.00 GiB3.86×7 / 21 / 0

21 of 28 layers cache only a 1,024-token window rather than the full context, on a period of 4. Figures assume the default configuration; --swa-full disables the saving entirely.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 6.36 GiB. The real file is 7.52 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: a flat formula gives 1.75 GiB at 32K context where the real figure is 0.50 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
28
Attention heads
32
KV heads
4
Head dim
128
Hidden size
2304
Vocab
98,304
Sliding window
1024
SWA period
4
MLA
no
Experts
64
Experts per token
8
use_sliding_window
true

Questions people ask

How much VRAM does Mellum2-12B-A2.5B-Thinking need?
Q4_K_M is exactly 8,071,295,040 bytes (7.52 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Mellum2-12B-A2.5B-Thinking's KV cache?
0.50 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Is Mellum2-12B-A2.5B-Thinking a mixture-of-experts model?
Yes — 64 experts, 8 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of Mellum2-12B-A2.5B-Thinking should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.