mistralai · text

Codestral-22B-v0.1

mistralai/Codestral-22B-v0.1

Codestral-22B-v0.1 at Q4_K_M is exactly 13,341,237,600 bytes (12.42 GiB / 13.34 GB) — an effective 4.797 bits per weight, not the nominal 4. Its KV cache at 32K is 7.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
22.2B
Architecture
llama
56 layers
Context
32,768
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S4.50 GiB4,829,487,5521.737legraphista
IQ1_M4.91 GiB5,267,136,9601.894legraphista
IQ2_XXS5.58 GiB5,996,552,6402.156legraphista
IQ2_XS6.19 GiB6,646,145,3762.390bartowski
IQ2_XS6.19 GiB6,646,145,4722.390legraphista
IQ2_S6.55 GiB7,035,429,2162.530bartowski
IQ2_S6.55 GiB7,035,429,3122.530legraphista
IQ2_M7.10 GiB7,618,961,7602.740bartowski
IQ2_M7.10 GiB7,618,961,8562.740legraphista
Q2_K_S7.12 GiB7,650,025,9202.751legraphista
Q2_K7.70 GiB8,272,093,5362.975lmstudio-community
Q2_K7.70 GiB8,272,093,5362.975bartowski
Q2_K7.70 GiB8,272,093,6322.975legraphista
IQ3_XXS8.01 GiB8,598,856,0323.092bartowski
IQ3_XXS8.01 GiB8,598,856,1283.092legraphista
IQ3_XS8.55 GiB9,176,097,1203.300bartowski
IQ3_XS8.55 GiB9,176,097,2163.300legraphista
Q3_K_S8.98 GiB9,641,271,6483.467bartowski
Q3_K_S8.98 GiB9,641,271,7443.467legraphista
IQ3_S9.02 GiB9,688,064,4483.484legraphista
IQ3_M9.37 GiB10,062,405,9843.618bartowski
IQ3_M9.37 GiB10,062,406,0803.618legraphista
Q3_K_M10.02 GiB10,756,825,4403.868bartowski
Q3_K_M10.02 GiB10,756,825,4403.868507lmstudio-community
Q3_K10.02 GiB10,756,825,5363.868legraphista
Q3_K_L10.92 GiB11,730,428,2564.218bartowski
Q3_K_L10.92 GiB11,730,428,2564.218lmstudio-community
Q3_K_L10.92 GiB11,730,428,3524.218legraphista
IQ4_XS11.12 GiB11,935,293,7924.292507bartowski
IQ4_XS11.12 GiB11,935,293,7924.292lmstudio-community
IQ4_XS11.12 GiB11,935,293,8884.292legraphista
IQ4_NL11.75 GiB12,613,198,2724.536legraphista
Q4_K_S11.79 GiB12,660,384,0964.553bartowski
Q4_K_S11.79 GiB12,660,384,1924.553legraphista
Q4_K_M12.42 GiB13,341,237,6004.797lmstudio-community
Q4_K_M12.42 GiB13,341,237,6004.797507bartowski
Q4_K12.42 GiB13,341,237,6964.797legraphista
Q5_K_S14.27 GiB15,324,815,5525.511legraphista
Q5_K_S14.27 GiB15,324,815,7125.511bartowski
Q5_K14.64 GiB15,722,553,5365.654legraphista

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.88 GiB0.88 GiB56 / 0 / 0
8,1921.75 GiB1.75 GiB56 / 0 / 0
16,3843.50 GiB3.50 GiB56 / 0 / 0
32,7687.00 GiB7.00 GiB56 / 0 / 0
65,53614.00 GiB14.00 GiB56 / 0 / 0
131,07228.00 GiB28.00 GiB56 / 0 / 0

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 11.65 GiB. The real file is 12.42 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
56
Attention heads
48
KV heads
8
Head dim
128
Hidden size
6144
Vocab
32,768
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Codestral-22B-v0.1 need?
Q4_K_M is exactly 13,341,237,600 bytes (12.42 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Codestral-22B-v0.1's KV cache?
7.00 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.
Which quantization of Codestral-22B-v0.1 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.