mistralai · text

Mistral-7B-Instruct-v0.3

mistralai/Mistral-7B-Instruct-v0.3

Mistral-7B-Instruct-v0.3 at Q4_K_M is exactly 4,372,811,712 bytes (4.07 GiB / 4.37 GB) — an effective 4.827 bits per weight, not the nominal 4. Its KV cache at 32K is 4.00 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S1.50 GiB1,615,319,2001.783MaziyarPanahi
IQ1_M1.64 GiB1,757,663,3921.940MaziyarPanahi
IQ2_XS2.05 GiB2,201,473,1842.430MaziyarPanahi
Q2_K2.54 GiB2,722,877,3763.005SanctumAI
Q2_K2.54 GiB2,722,877,6003.005MaziyarPanahi
IQ3_XS2.82 GiB3,022,770,3363.336MaziyarPanahi
Q3_K_S2.95 GiB3,168,522,1763.497SanctumAI
Q3_K_S2.95 GiB3,168,522,4003.497MaziyarPanahi
IQ3_M3.06 GiB3,288,846,5603.630lmstudio-community
Q3_K_M3.28 GiB3,522,940,8643.888291SanctumAI
Q3_K_M3.28 GiB3,522,941,0883.888291MaziyarPanahi
Q3_K_L3.56 GiB3,825,979,3284.223SanctumAI
Q3_K_L3.56 GiB3,825,979,5524.223MaziyarPanahi
Q3_K_L3.56 GiB3,825,979,6164.223lmstudio-community
IQ4_XS3.64 GiB3,911,962,7844.318291MaziyarPanahi
Q4_03.83 GiB4,113,289,1524.540291SanctumAI
IQ4_NL3.85 GiB4,130,066,6564.559lmstudio-community
Q4_K_S3.86 GiB4,144,746,4324.575SanctumAI
Q4_K_S3.86 GiB4,144,746,6564.575MaziyarPanahi
Q4_K_M4.07 GiB4,372,811,7124.827SanctumAI
Q4_K4.07 GiB4,372,811,7124.827SanctumAI
Q4_K_M4.07 GiB4,372,811,9364.827MaziyarPanahi
Q4_K_M4.07 GiB4,372,812,0004.827291lmstudio-community
Q4_14.24 GiB4,557,885,3765.031SanctumAI
Q5_K_S4.66 GiB5,002,481,6005.521SanctumAI
Q5_04.66 GiB5,002,481,6005.521SanctumAI
Q5_K_S4.66 GiB5,002,481,8245.521MaziyarPanahi
Q5_K4.78 GiB5,136,175,0405.669SanctumAI
Q5_K_M4.78 GiB5,136,175,0405.669SanctumAI
Q5_K_M4.78 GiB5,136,175,2645.669MaziyarPanahi
Q5_K_M4.78 GiB5,136,175,3285.669291lmstudio-community
Q5_15.07 GiB5,447,077,8246.012SanctumAI
Q6_K5.54 GiB5,947,248,5766.564SanctumAI
Q6_K5.54 GiB5,947,248,8006.564MaziyarPanahi
Q6_K5.54 GiB5,947,248,8646.564291lmstudio-community
Q8_07.17 GiB7,702,564,8008.502SanctumAI
Q8_07.17 GiB7,702,565,0248.502MaziyarPanahi
Q8_07.17 GiB7,702,565,0888.502291lmstudio-community
F1613.50 GiB14,497,337,28016.001291SanctumAI
F3227.00 GiB28,992,851,90432.001lmstudio-community

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.50 GiB0.50 GiB32 / 0 / 0
8,1921.00 GiB1.00 GiB32 / 0 / 0
16,3842.00 GiB2.00 GiB32 / 0 / 0
32,7684.00 GiB4.00 GiB32 / 0 / 0
65,5368.00 GiB8.00 GiB32 / 0 / 0
131,07216.00 GiB16.00 GiB32 / 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 3.80 GiB. The real file is 4.07 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does Mistral-7B-Instruct-v0.3 need?
Q4_K_M is exactly 4,372,811,712 bytes (4.07 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Mistral-7B-Instruct-v0.3's KV cache?
4.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 Mistral-7B-Instruct-v0.3 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.