Model Sizes And Quantisation
Most models are published in several sizes, and each size in several files. This page explains the two numbers that tell them apart — the parameter count and the quantisation — and how to choose between them.
You do not need to understand how a model works to choose well. Two rules cover most cases:
- Choose the biggest model that fits your GPU at Q4_K_M or better.
- Leave room for the context window. See Context And Memory.
Parameters
A model's parameters are the numbers it learned in training. Their count is the model's size, written in billions: 8B is 8 billion parameters, 27B is 27 billion.
In general, a bigger model knows more, follows complicated instructions better, and makes fewer mistakes. It also needs more memory, and answers more slowly. As a rough guide:
| Size | What to expect |
|---|---|
| Under 2B | Fast, and runs on almost anything. Good for simple, narrow jobs such as sorting text or short summaries. Easily confused |
| 3–4B | A useful everyday assistant on a laptop or a small GPU. Weaker on hard problems and long instructions |
| 7–14B | A capable all-rounder on one ordinary GPU. A common choice for a first deployment |
| 20–35B | Noticeably better at reasoning, code, long documents and tool use. Needs a 24–32 GB GPU, or a Mac with 32 GB or more |
| 70B and above | The strongest models you can run on one machine. Needs several GPUs or a Mac with a lot of memory |
Size is not everything. A newer model is often better than an older model twice its size, and models of the same size differ in what they are good at. See What To Look For In A Model.
Quantisation
A model's parameters are first stored at full precision — 16 bits each. Quantisation stores them with fewer bits, so that the file is smaller, needs less memory, and runs faster. The cost is a small loss of precision, which shows up as slightly worse answers.
A quantised file has its type in its name. For example, Llama-3.1-8B-Instruct-Q4_K_M.gguf is quantised as Q4_K_M. The number after the Q is how many bits most of its parameters use. Some parts of the model are kept at higher precision, so the average is a little higher, as the table shows.
| Type | Bits per parameter (about) | Size of an 8B model (about) | Quality |
|---|---|---|---|
| F16, BF16 | 16 | 16 GB | Full precision. Rarely worth the memory |
| Q8_0 | 8.5 | 8.5 GB | Practically the same as full precision |
| Q6_K | 6.6 | 6.6 GB | Very close to full precision |
| Q5_K_M | 5.7 | 5.7 GB | Close to full precision. A good choice if it fits |
| Q4_K_M | 4.9 | 4.9 GB | A small loss. The usual choice: the best balance of quality and size |
| IQ4_XS | 4.4 | 4.4 GB | About as good as Q4_K_M, a little smaller |
| Q3_K_M | 4.0 | 4.0 GB | A noticeable loss. Use it only to fit a bigger model |
| IQ2_M, Q2_K | 2.9–3.2 | 2.9–3.2 GB | A large loss. For very large models only |
A few models are published in a 4-bit format of their own, such as MXFP4. Download that file as it is: it is the model's native form, not a lower-quality copy.
The sizes are for the model's weights alone. The context window needs memory on top. See Context And Memory.
Tip
If you are not sure, download Q4_K_M. If the memory estimate shows plenty of room to spare, try Q5_K_M or Q6_K instead.
K-Quants And I-Quants
The types beginning Q with a K (Q4_K_M, Q5_K_M and so on) are K-quants. The letter at the end is the mix: S (small), M (medium) or L (large). M is the usual choice.
The types beginning IQ are I-quants. They keep more quality for their size, and are the better choice at 4 bits and below. They can be slower on the CPU and on a Mac, so prefer a K-quant there if both fit.
Some publishers also make files with an importance matrix (sometimes marked imatrix or i1). These are tuned on sample text, and are slightly better than an ordinary file of the same type. You can use them exactly as any other file.
Bigger Model Or Better Quantisation?
When you have a fixed amount of memory, you will often have a choice between a bigger model at a lower quantisation and a smaller model at a higher one. For example, a 14B model at Q4_K_M and an 8B model at Q8_0 are about the same size.
In general, the bigger model at Q4 will give better answers. This stops being true at about 3 bits: below that, a smaller model at Q4 or above is usually better. Small models (under about 4B) lose more from quantisation than large ones, so give them Q5 or above if you can.
Mixture-Of-Experts Models
Some models are made of many smaller experts, and use only a few of them for each word they write. These mixture-of-experts (MoE) models have two sizes in their name: the total, and the part that is active. For example, Qwen3-30B-A3B has 30 billion parameters, of which about 3 billion are active for each word.
- Memory follows the total. The whole model must be loaded, so
30B-A3Bneeds about the memory of a 30B model. - Speed follows the active part. It writes about as fast as a 3B model, and much faster than a 30B one.
- Quality falls between the two. An MoE model is usually better than a dense model of its active size, but not as good as a dense model of its total size.
MoE models are a good choice when you have plenty of memory but a slow GPU, or no GPU at all — for example a Mac, or a server answering on its CPU.
Tip
An MoE model that does not fit your GPU can keep its experts in system memory, and still run reasonably fast. To do this, add --n-cpu-moe and a number of layers to Extra Server Arguments in the model's settings — for example --n-cpu-moe 20. Raise the number until the memory estimate shows that the model fits. See Executor Settings.
Choosing A File To Download
On Hugging Face, one model is usually published as a repository of files, one per quantisation. When you click a model in Install Executors, its Files are listed with their sizes. See Managing Models.
To choose a file:
- Work out how much memory you have for the model. See Context And Memory.
- Take away what you need for the context window. The memory calculator will help.
- Choose the largest file that fits in what is left, up to Q6_K. Prefer Q4_K_M or above.
The same model is often published by several people, so you will find more than one repository for it. The following are well known for good GGUF files:
- The model's own maker, where it publishes GGUF files.
- ggml-org — the makers of llama.cpp, which OnVeris uses to run models.
- lmstudio-community, unsloth and bartowski — who publish GGUF files of most popular models, often within a day of their release.
Files of the same type from different publishers are usually much alike. Some publishers add extras, such as image support or a speculative decoding head (see What To Look For In A Model), so check the model card if you need one.
Note
Very large models are split into several files, such as -00001-of-00003.gguf. Download all of them — Download (N files) on the first part does this for you.