Short answer: most local setups should run Q4_K_M: 4.89 bits per weight, 20.0 GB for a 32B model and 43.2 GB for a 70B, 2.79% more perplexity than F16 in llama.cpp’s LLaMA 3 8B measurements, in a file 58% the size of Q8_0. Move up only when the VRAM is paid for and mistakes are expensive. Q5_K_M at 5.70 bits costs 0.89% and needs 25.0 GiB all-in on that 32B, which is the 32 GB tier; Q6_K at 6.56 bits costs 0.32% and needs 28.8 GiB on the same model. Move down and the curve breaks: Q3_K_M costs 10.5%, Q2_K costs 39% to 56%.

What the letters actually encode

The Q means quantized; the number after it is the nominal bit width; the suffix is the part people skip. K-quants group 256 weights into a super-block, store a scale per 32-weight sub-block, and push selected tensors to a wider type in the S, M and L variants, so the true average sits above the name: Q4_K_M is 4.89 bits per weight, not 4.00. I-quants (IQ2, IQ3, IQ4) swap the block scale for a small codebook and lean on an importance matrix measured from real text, buying quality at a lower bit rate.

Our diagram: the suffix, not the digit, decides how much of the model stays wide.

The ladder, one row per type

Sizes are our arithmetic from the published bits per weight and the parameter counts: 7.62B, 32.76B and 70.55B. For other models, the VRAM cheat sheet has the grid.

Type
bpw
7B
32B
70B
vs Q8_0

Q2_K
3.16
3.0 GB
12.9 GB
27.9 GB
37%

Q3_K_M
4.00
3.8 GB
16.4 GB
35.2 GB
47%

Q4_K_S
4.67
4.4 GB
19.1 GB
41.2 GB
55%

Q4_K_M
4.89
4.7 GB
20.0 GB
43.2 GB
58%

Q5_K_M
5.70
5.4 GB
23.4 GB
50.3 GB
67%

Q6_K
6.56
6.3 GB
26.9 GB
57.9 GB
77%

Q8_0
8.50
8.1 GB
34.8 GB
75.0 GB
100%

How bits per weight become a file size

The arithmetic is one line: gigabytes = parameters in billions × bits per weight ÷ 8. Q4_K_M on 32.76B parameters is 32.76 × 4.8944 ÷ 8 = 20.0 GB. Divide by 1.0737 for GiB, the unit llama.cpp prints. Check it against published files: llama.cpp lists 4.58 GiB for Llama-3.1-8B at Q4_K_M, and 8.03 × 4.8944 ÷ 8 = 4.91 GB = 4.58 GiB; the same check on the 70B gives 43.16 GB against 43.1 GB. Metadata adds under 1%, and the wider output tensor in the M variants is already inside the measured bpw.

Photo: Samsung 980 PRO PCIe 4.0 NVMe SSD by D-Kuru, CC BY-SA 4.0, via Wikimedia Commons. Resized.

What the loss looks like in numbers

llama.cpp’s scoreboard covers LLaMA 3 8B at every type on one RTX 4090; F16 scores 6.2332.

Type
Perplexity
vs F16
File, 8B

Q8_0
6.2343
+0.02%
7.95 GiB

Q6_K
6.2534
+0.32%
6.14 GiB

Q5_K_M
6.2886
+0.89%
5.33 GiB

Q4_K_M
6.4071
+2.79%
4.58 GiB

Q4_K_S
6.5005
+4.29%
4.36 GiB

Q3_K_M
6.8885
+10.51%
3.74 GiB

Q2_K
9.7516
+56.45%
2.96 GiB

An average hides the tail. In the same scoreboard Q4_K_M leaves the worst 1% of token probabilities 19.6% below F16 and the worst 0.1% 56% below; Q6_K 6.8% and 16.6%; Q8_0 3.7% and 6.6%. That is the cost of four bits: not a uniform fog, but a thin set of rare tokens, names, figures and code identifiers where the model turns unsure.

Two limits. These are 8B numbers, and the claim that larger models tolerate quantization better is community consensus, not measured here. The importance matrix moves the low end: IQ2_M with one scores 8.60 against Q2_K at 9.75 in a slightly smaller file, but at four bits IQ4_XS reaches only 6.46 against Q4_K_M at 6.41 and runs a few percent slower.

Our chart: the published perplexity values plotted against bits per weight. The bend sits at roughly 4.9 bits, where Q4_K_M lives.

What fits on 24 GB and 32 GB

File size is not the memory you need. At 8K of context the KV cache is about 2 GiB on a 32B and 2.5 GiB on a 70B, roughly 10% and 6% of the weights. I budget 15% on top of the weights for short prompts and 20% for long ones, against usable VRAM: about 23 GiB on a 24 GB card, 31 GiB on a 32 GB card.

Card
32B model
70B model

24 GB
Q4_K_S 20.5 GiB, Q4_K_M 21.5 GiB. Q5_K_M needs 25.0 GiB and does not fit.
Nothing. The smallest type, Q2_K, needs 29.8 GiB.

32 GB
Q5_K_M 25.0 GiB, Q6_K 28.8 GiB. Q8_0 needs 37.3 GiB.
Q2_K 29.8 GiB, leaving about 1 GiB. Not worth it.

48 GB
Q8_0 37.3 GiB with room for context.
Q4_K_M 46.2 GiB at short context only.

64 GB
Q8_0 with 25 GiB left over for cache.
Q6_K 62.0 GiB. Q8_0 needs 80 GiB.

So 24 GB tops out at 32B Q4_K_M, which is where most builds should aim, and 32 GB adds Q5_K_M and Q6_K for that same model. A 70B at Q2_K (27.9 GB) is smaller than a 32B at Q8_0 (34.8 GB), so the quality table matters more than file size. The 24 against 32 GB comparison takes capacity further, and the 24 GB model list shows what runs there.

Our chart: weights plus 15% overhead against the usable memory of each card. Green fits a 24 GB card, amber needs 32 GB, red needs 48 GB or more.

Common questions

Is Q4_K_M better than Q4_K_S?

Yes, and it is cheap: on a 32B the M variant is 0.9 GiB larger all-in, 21.5 against 20.5, and takes perplexity from 4.29% to 2.79%.

Can a 24 GB card run a 32B model at Q5_K_M?

No at normal context. Weights alone are 21.75 GiB, and 15% overhead puts it at 25.0 GiB against about 23 GiB usable. Q4_K_M at 21.5 GiB fits with 1.5 GiB left.

Are I-quants worth using?

At 2 to 3 bits, yes, and only with an importance matrix: IQ2_M scores 8.60 against Q2_K at 9.75 in a slightly smaller file. At 4 bits there is no clear win, IQ4_XS landing at 6.46 against Q4_K_M at 6.41, and prompt processing is a few percent slower. The 16 GB against 24 GB comparison covers the tier below.

Why is Q8_0 twice the size of Q4 for 0.02% better perplexity?

Because perplexity is a mean and the gap is in the tail: Q8_0 leaves the worst 1% of token probabilities 3.7% below F16, Q4_K_M 19.6% below. Q8_0 is also the base if you plan to requantize.

Does a smaller quant make the model faster?

Token generation, yes: it is limited by the bytes per token that reach the GPU. Prompt processing often favors the larger file; the Q4 and Q8 numbers are in the companion piece.

Sources

Every number above is either published by the project that ships the format or computed from a published number by us, and the working is shown so you can redo it. Pages were read on December 5, 2026.

  • llama.cpp, quantize README — the bits-per-weight and file-size table for Llama-3.1-8B, and the 43.1 GB figure for the 70B; read December 5, 2026.

  • llama.cpp, perplexity scoreboard — LLaMA 3 8B at every quant type on one RTX 4090, with perplexity, KLD and per-token percentiles; read December 5, 2026.

  • Hugging Face, GGUF documentation — quant types, importance matrices and GGUF metadata; read December 5, 2026.

  • Qwen2.5-7B-Instruct model card — 7.62B parameters; read December 5, 2026.

  • Qwen2.5-32B-Instruct model card — 32.76B parameters; read December 5, 2026.

  • Llama-3.1-70B (mirror) model card — 70.55B parameters; read December 5, 2026.

  • Wikimedia Commons, Sapphire Radeon RX 7900 XTX — header photo by Geni, CC BY-SA 4.0.

  • Wikimedia Commons, Samsung 980 PRO SSD — photo by D-Kuru, CC BY-SA 4.0.

Header photo: Sapphire Radeon RX 7900 XTX by Geni, CC BY-SA 4.0, via Wikimedia Commons. Resized.

Data reference

  • VRAM calculator

  • 64 GB VRAM: which models and quants fit