Q4_K_M – explained simply
Q4_K_M is a common 4-bit quantization level for GGUF models and is considered a good compromise between size and quality.
Also: Q4_K_S, Q5_K_M, Q8_0, K-Quant, K-Quants
The name is made up of Q4 (roughly 4 bits per weight), K (the so-called K-quants, a refined method with blocks and scaling values), and M for the medium variant. Within a level, S variants are smaller and L variants are larger.
According to the llama.cpp documentation, Q4_K_M is at about 4.9 bits per weight. A Llama-3.1 model with 8 billion parameters is 4.58 GiB in this format, compared with 7.95 GiB in Q8_0. In the same test, Q4_K_M also produced text faster than Q8_0.
Q8_0 is almost lossless, but nearly twice as large. Levels below 4 bits (Q3, Q2) save even more space, but noticeably lose quality.
What does that mean for you? If you have enough VRAM, try Q5_K_M or Q6_K; if it just barely isn't enough, Q4_K_M is usually the best choice.