# Which quantization should I download?

> Start at Q4. Go up if it fits with room to spare, and go down only to reach a bigger model class.

Download `Q4_K_M`, or the `4bit` MLX build on a Mac. It is the right file for most people on most machines. The rest of this page is about the cases where it is not.

## The decision ladder

Three steps, in order. Stop at the first one that gives you a file that fits.

1. Start at Q4
2. Fits with room to spare: go up to Q5, Q6 or Q8
3. Does not fit: drop a model size, not a bit level
4. Only below Q4 to reach a bigger class

1. Start at Q4. Check its file size on the download page and add room for context and the operating system. [Will it fit?](https://localagi.co/will-it-fit) does the sums.
2. If it fits with several GB to spare, go up. Q5 and Q6 cost a little more memory for a little more quality. Q8 is close to the original.
3. If Q4 does not fit, pick a smaller model of the same family at Q4 before you try Q3.

The exception is the bigger class. If Q3 of a mid model fits where Q4 does not, it will usually beat a small model at Q8. Below about 3 bits, drop a class instead, because the damage outweighs the extra size. [What is quantization?](https://localagi.co/quantization) explains why.

**Rule of thumb.** 
Spend memory on parameters first, then on bits. A bigger model at Q4 beats a smaller one at Q8 of the same file size.

## Sizes and quality

Each level stores a different number of bits per weight. The file size scales with it. Here are the common GGUF levels for an 8B model.

| Label | Bits per weight | 8B file | Quality |
| --- | --- | --- | --- |
| F16 / BF16 | about 16 | about 16 GB | The original. Reference quality. |
| Q8_0 | about 8.5 | about 9 GB | Indistinguishable from the original in practice. |
| Q6_K | about 6.6 | about 7 GB | Close to the original. |
| Q5_K_M | about 5.7 | about 6 GB | A small, rarely visible loss. |
| Q4_K_M | about 4.8 | about 5 GB | The common default. Most people never notice. |
| Q3_K_M | about 3.9 | about 4 GB | Noticeable on small models. Often fine on big ones. |
| Q2_K | about 3 | about 3 GB | Clearly degraded. Only to squeeze a much bigger model in. |

To get the size for any other model, multiply the parameter count by the bits per weight and divide by 8. A 27B model at Q4_K_M is about 27 × 4.8 ÷ 8, or about 16 GB. At 4-bit, the shortcut is about 0.6 GB.

MLX builds come in `4bit`, `6bit` and `8bit`, and sit close to the GGUF levels of the same number. Models that ship in a native format, such as `MXFP4` for gpt-oss, are already quantized by the maker. Run the official file and skip this page.

### BaseQuant tiers

BaseQuant builds from Base Compute come in size tiers instead of bit levels, from XS to XL. Qwen3.8-27B, for example, runs from about 8.4 GB at XS to about 25.3 GB at XL, with Medium at about 16.4 GB. They live in the [BaseQuant V1 collection](https://huggingface.co/collections/basecompute/basequant-v1) on Hugging Face, and the [models page](https://www.basecompute.co/models) lists the tiers.

Base Compute reports about 3 to 17 percent lower KL divergence than Unsloth's quants of Qwen3.8-27B at the same file size. That is a vendor-reported measurement against the original BF16 model, where lower means the output stays closer to the original. We have not seen an independent test, so compare on your own prompts with [How do I test a model for my own use?](https://localagi.co/testing-a-model).

**The catch.** 
BaseQuant covers only a handful of models, mostly Qwen and Gemma. Base Compute serves them on [BaseRT](https://localagi.co/basert) and measured them in llama.cpp, so check each repository's file list for a format your runtime reads.

**The catch.** 
The quality notes are averages from general text. Your task may be more sensitive. Code, maths and non-English text often show damage at a level where chat looks fine.

## When Q8 is worth it

Q8 costs nearly twice the memory of Q4 and runs at nearly half the speed. Three cases earn it.

### Coding

Code has to be exactly right. A Q4 model makes slightly more small errors, such as a wrong variable name or a missing bracket. In chat you never notice.

In code, each one is a failed build, and in an agent loop they compound. If a mid model fits at Q6 or Q8, use it for [Can I run a coding agent on a local model?](https://localagi.co/coding-agents).

### Long reasoning chains

A [reasoning model](https://localagi.co/reasoning-models) writes thousands of tokens before it answers. Each token is a small chance to drift, and lower precision raises that chance. On long maths or planning problems, Q6 or Q8 holds together better.

### Small models

Small models have less slack. Each weight carries more of the model's knowledge, so rounding hurts more. A 4B model loses more at Q4 than a 70B does.

Since small models are small anyway, running them at Q8 is cheap: about 4 GB for a 4B model.

**Try it.** 
Download Q4 and Q8 of the same small model and give both the same coding prompt from your own work. If you cannot tell them apart over five prompts, keep Q4. [How do I test a model for my own use?](https://localagi.co/testing-a-model) shows a fuller method.

## Go deeper

### Why the K-quant labels end in S, M or L

`Q4_K_S`, `Q4_K_M` and `Q4_K_L` share the same base precision. The suffix sets how many sensitive layers are kept at higher precision. M is the usual balance, S saves a few hundred MB, L or XL spends a little more for quality.

### I-quants

Labels such as `IQ4_XS` or `IQ3_M` use a newer scheme that packs more quality into fewer bits, using an importance matrix. They are useful below 4 bits. On some hardware they run a little slower than K-quants of the same size, especially on CPU.

### Quantizing the context too

The [context](https://localagi.co/context-window) lives in the KV cache, which most runtimes keep at 16-bit. Some let you store it at 8-bit to fit a longer context. That is a separate choice from the model file, with a small quality cost of its own, covered in [How do I make it faster?](https://localagi.co/tuning-for-speed).
