mistralai · text

Mistral-7B-Instruct-v0.2

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

Mistral-7B-Instruct-v0.2 at Q4_K_M is exactly 4,368,439,584 bytes (4.07 GiB / 4.37 GB) — an effective 4.826 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
I1-IQ1_S1.50 GiB1,612,103,5841.781mradermacher
I1-IQ1_M1.63 GiB1,754,447,7761.938mradermacher
I1-IQ2_XXS1.85 GiB1,991,688,0962.200mradermacher
I1-IQ2_XS2.05 GiB2,198,257,5682.428mradermacher
I1-IQ2_S2.15 GiB2,310,922,1442.553mradermacher
I1-IQ2_M2.33 GiB2,500,714,4002.763mradermacher
I1-Q2_K2.53 GiB2,719,244,1923.004mradermacher
I1-IQ3_XXS2.63 GiB2,827,345,8243.123mradermacher
I1-IQ3_XS2.81 GiB3,018,817,4403.335mradermacher
Q2_K2.87 GiB3,083,098,4003.406TheBloke
Q3_K_S2.95 GiB3,164,567,8403.496TheBloke
I1-Q3_K_S2.95 GiB3,164,569,5043.496mradermacher
I1-IQ3_S2.96 GiB3,182,395,2963.516mradermacher
I1-IQ3_M3.06 GiB3,284,893,6003.629mradermacher
Q3_K_M3.28 GiB3,518,986,5283.888291TheBloke
I1-Q3_K_M3.28 GiB3,518,988,1923.888mradermacher
Q3_K_L3.56 GiB3,822,024,9924.222TheBloke
I1-Q3_K_L3.56 GiB3,822,026,6564.222mradermacher
I1-IQ4_XS3.64 GiB3,907,690,4004.317mradermacher
Q4_03.83 GiB4,108,917,0244.539291TheBloke
I1-Q4_03.84 GiB4,123,598,7524.555mradermacher
Q4_K_S3.86 GiB4,140,374,3044.574TheBloke
I1-Q4_K_S3.86 GiB4,140,375,9684.574mradermacher
Q4_K_M4.07 GiB4,368,439,5844.826291TheBloke
I1-Q4_K_M4.07 GiB4,368,441,2484.826mradermacher
Q5_04.65 GiB4,997,716,2565.521TheBloke
Q5_K_S4.65 GiB4,997,716,2565.521TheBloke
I1-Q5_K_S4.65 GiB4,997,717,9205.521mradermacher
Q5_K_M4.78 GiB5,131,409,6965.669291TheBloke
I1-Q5_K_M4.78 GiB5,131,411,3605.669mradermacher
Q6_K5.53 GiB5,942,065,4406.564291TheBloke
I1-Q6_K5.53 GiB5,942,067,1046.564mradermacher
Q8_07.17 GiB7,695,857,9528.502291TheBloke
BF1613.49 GiB14,484,732,12816.001mozilla-ai

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.79 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,000
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.2 need?
Q4_K_M is exactly 4,368,439,584 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.2'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.2 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.