mistralai · text

Mistral-7B-v0.3

mistralai/Mistral-7B-v0.3

Mistral-7B-v0.3 at Q4_K_M is exactly 4,372,811,680 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
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S1.50 GiB1,615,318,7201.783legraphista
IQ1_M1.64 GiB1,757,662,9121.940legraphista
IQ2_XXS1.86 GiB1,994,903,2322.202legraphista
IQ2_XS2.05 GiB2,201,472,7042.430legraphista
IQ2_XS2.05 GiB2,201,481,5362.430bartowski
IQ2_S2.16 GiB2,314,456,7682.555legraphista
IQ2_S2.16 GiB2,314,466,4322.555bartowski
IQ2_M2.33 GiB2,504,249,0242.764legraphista
IQ2_M2.33 GiB2,504,258,6882.764bartowski
Q2_K_S2.36 GiB2,532,560,5762.795legraphista
Q2_K2.54 GiB2,722,877,1203.005legraphista
Q2_K2.54 GiB2,722,877,3443.005mradermacher
Q2_K2.54 GiB2,722,887,0403.005bartowski
IQ3_XXS2.64 GiB2,830,880,4483.125legraphista
IQ3_XXS2.64 GiB2,830,890,1123.125bartowski
IQ3_XS2.82 GiB3,022,769,8563.336legraphista
IQ3_XS2.82 GiB3,022,770,0803.336mradermacher
IQ3_XS2.82 GiB3,022,780,6083.336bartowski
Q3_K_S2.95 GiB3,168,521,9203.497legraphista
Q3_K_S2.95 GiB3,168,522,1443.497mradermacher
Q3_K_S2.95 GiB3,168,532,6723.497bartowski
IQ3_S2.97 GiB3,186,347,7123.517legraphista
IQ3_S2.97 GiB3,186,347,9363.517mradermacher
IQ3_M3.06 GiB3,288,846,0163.630legraphista
IQ3_M3.06 GiB3,288,846,2403.630mradermacher
IQ3_M3.06 GiB3,288,856,7683.630bartowski
Q3_K3.28 GiB3,522,940,6083.888legraphista
Q3_K_M3.28 GiB3,522,940,8323.888mradermacher
Q3_K_M3.28 GiB3,522,951,3603.889bartowski
Q3_K_L3.56 GiB3,825,979,0724.223legraphista
Q3_K_L3.56 GiB3,825,979,2964.223mradermacher
Q3_K_L3.56 GiB3,825,989,8244.223bartowski
IQ4_XS3.64 GiB3,911,962,3044.318legraphista
IQ4_XS3.64 GiB3,911,973,8884.318bartowski
IQ4_XS3.68 GiB3,948,662,6884.358mradermacher
IQ4_NL3.85 GiB4,130,066,1124.559legraphista
Q4_K_S3.86 GiB4,144,746,1764.575legraphista
Q4_K_S3.86 GiB4,144,746,4004.575mradermacher
Q4_K_S3.86 GiB4,144,758,0164.575bartowski
Q4_K4.07 GiB4,372,811,4564.827legraphista

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-v0.3 need?
Q4_K_M is exactly 4,372,811,680 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-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-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.