GGUF quantization explained

The best quant for a 16 GB card is the most precise one that still fits with room for context: on the RTX 4060 Ti 16GB at 8K context that is Q8_0 for Llama 3.1 8B (10.3 GB), Q8_0 for Gemma 4 12B (14.2 GB) and Q3_K_M for Qwen3.8 27B (15.0 GB). GGUF files for llama.cpp, Ollama and LM Studio come in a dozen quantization types. The name says how many bits each weight gets, which decides the file size, the memory the model needs and part of its quality. Llama 3.1 8B is 15.0 GB in BF16, 7.95 GB at Q8_0 and 4.52 GB at Q4_K_M.

How to read the names

Bits per weight and file size

Average bits per weight across a whole model, as llama.cpp reports them, and the resulting weights for a few popular models. The KV cache and runtime overhead come on top; the calculator adds them.

The table's 4.35 bits/weight for IQ4_XS is a whole-model estimate from public uploads, not its nominal 4.25. GGUF files mix tensor types; the IQ4_XS and IQ3_XXS estimates are medians of public uploads, whose tensors can use different precision. Two IQ4_XS files of the same model can differ by 5–10% (Qwen3.8 27B: 13.3 GB from unsloth, 14.3 GB from mradermacher). On a card where a gigabyte decides, go by the download size.

Type Bits/weight Llama 3.1 8BGemma 4 12BQwen3.6 27BGemma 4 31BQwen3.6 35B-A3BLlama 3.1 70B
BF16 (unquantized) 16 15.0 GB22.3 GB51.7 GB58.3 GB67.0 GB131 GB
Q8_0 8.5 7.95 GB11.8 GB27.5 GB30.9 GB35.6 GB69.8 GB
Q6_K 6.56 6.13 GB9.13 GB21.2 GB23.9 GB27.5 GB53.9 GB
Q5_K_M 5.67 5.30 GB7.89 GB18.3 GB20.6 GB23.7 GB46.6 GB
Q4_K_M 4.84 4.52 GB6.74 GB15.7 GB17.6 GB20.3 GB39.8 GB
IQ4_XS 4.35 4.07 GB6.06 GB14.1 GB15.8 GB18.2 GB35.7 GB
Q3_K_M 3.91 3.66 GB5.44 GB12.6 GB14.2 GB16.4 GB32.1 GB
IQ3_XXS 3.3 3.08 GB4.59 GB10.7 GB12.0 GB13.8 GB27.1 GB
Q2_K 3.35 3.13 GB4.66 GB10.8 GB12.2 GB14.0 GB27.5 GB

Which one to pick

What fits on your GPU

Each page lists the most precise type every model fits in, with the longest context and the speed:

Model sizes computed from the files on Hugging Face on .