mistralai · text

Devstral-Small-2507

mistralai/Devstral-Small-2507

Devstral-Small-2507 at Q4_K_M is exactly 14,333,915,904 bytes (13.35 GiB / 14.33 GB) — an effective 4.865 bits per weight, not the nominal 4. Its KV cache at 32K is 5.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
23.6B
Architecture
llama
40 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_S5.18 GiB5,558,566,1121.887unsloth
UD-IQ1_M5.60 GiB6,017,318,1122.042unsloth
UD-IQ2_XXS6.29 GiB6,750,911,7122.291unsloth
UD-IQ2_M7.68 GiB8,243,330,2722.798unsloth
Q2_K8.28 GiB8,890,334,4323.017unsloth
Q2_K_L8.43 GiB9,047,620,8323.071unsloth
UD-IQ3_XXS8.76 GiB9,409,215,7123.193unsloth
Q3_K_S9.69 GiB10,400,283,8723.530unsloth
Q3_K_M10.69 GiB11,474,091,2323.894unsloth
IQ4_XS11.90 GiB12,779,896,0324.337unsloth
IQ4_NL12.54 GiB13,468,024,0324.571unsloth
Q4_012.57 GiB13,494,238,4324.580unsloth
Q4_K_S12.62 GiB13,549,288,6724.598unsloth
Q4_K_M13.35 GiB14,333,915,9044.865mistralai
Q4_K_M13.35 GiB14,333,916,1604.865lmstudio-community
Q4_K_M13.35 GiB14,333,918,4324.865unsloth
Q4_113.85 GiB14,873,115,8725.048unsloth
Q5_K_S15.18 GiB16,304,422,1125.533unsloth
Q5_K_M15.61 GiB16,763,990,7845.689mistralai
Q5_K_M15.61 GiB16,763,993,3125.689unsloth
Q6_K18.02 GiB19,345,945,6006.566lmstudio-community
Q6_K18.02 GiB19,345,947,8726.566unsloth
Q8_023.33 GiB25,054,786,3048.503mistralai
Q8_023.33 GiB25,054,786,5608.503lmstudio-community
Q8_023.33 GiB25,054,788,5768.503unsloth
BF1643.92 GiB47,153,525,50416.003mistralai
BF1643.92 GiB47,153,527,77616.003unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.63 GiB0.63 GiB40 / 0 / 0
8,1921.25 GiB1.25 GiB40 / 0 / 0
16,3842.50 GiB2.50 GiB40 / 0 / 0
32,7685.00 GiB5.00 GiB40 / 0 / 0
65,53610.00 GiB10.00 GiB40 / 0 / 0
131,07220.00 GiB20.00 GiB40 / 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 12.35 GiB. The real file is 13.35 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
40
Attention heads
32
KV heads
8
Head dim
128
Hidden size
5120
Vocab
131,072
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Devstral-Small-2507 need?
Q4_K_M is exactly 14,333,915,904 bytes (13.35 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Devstral-Small-2507's KV cache?
5.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 Devstral-Small-2507 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.