A GGUF file packages the model weights, the tokenizer and metadata into a single file, and it can hold weights at various quantization levels, named in the filename. The names trip everyone up: Q4_K_M means 4-bit K-quant medium, Q5_K_M is 5-bit, Q8_0 is 8-bit and very close to the original, and Q2_K is 2-bit, smallest and lowest quality. The practical recommendation for most users is Q4_K_M, which hits a good balance of size and quality.
What you need
- The model you want to run and its GGUF download page
- How much memory you have
- The tasks the model must still do well
Step 1: List the variants and their sizes
Write down the variants available for the model: Q4_K_M, Q5_K_M, Q8_0 and Q2_K, with their file sizes. A 7B model at Q4_K_M needs about 4 to 4.5 GB of RAM or VRAM, while FP16 needs about 14 GB.
Step 2: Match the variant to your memory
Pick Q4_K_M as the default. If you have memory to spare and want a bit more quality, go to Q5_K_M; if you are desperate for memory, Q3_K_M still works reasonably for larger models.
Step 3: Test the pick on a real task
Download the chosen variant and run it on a task you care about, such as following instructions or writing code. If the output degrades, step up one level rather than blaming the model.
Worked example: synthetic GGUF variant choice for a 7B model
The table below is a synthetic example. It shows the expected result of choosing a variant; no file was downloaded.
| Variant | Size for 7B | Quality |
|---|---|---|
| Q8_0 | About 7 GB | Very close to the original |
| Q5_K_M | About 5 GB | Higher than Q4 |
| Q4_K_M | About 4 to 4.5 GB | Good balance – picked |
| Q2_K | About 3 GB | Lowest quality – avoided |
Expected result (UNTESTED). Q4_K_M is picked for a 7B model because it balances size and quality, and a real-task test confirms the output is acceptable. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- GGUF is the format, not the method; the Q-name in the filename tells the quantization level.
- Q4_K_M is the most widely used GGUF variant; Q5_K_M is larger and higher quality than Q4.
- Small models of 7B and under feel quantization loss more, so prefer Q5 or AWQ over aggressive 4-bit for them.
- The K-quants use a mix of bit widths across different parts of the model to balance quality and size.
