1. Home
  2. AI PC & Hardware
  3. AI model quantization explained: Q4, Q8 and VRAM
AI PC & Hardware

AI model quantization explained: Q4, Q8 and VRAM

Published on November 8, 2026 · by Qubira 10 min read
AI model quantization explained: Q4, Q8 and VRAM

You open a model page, and instead of one download you find a wall of files: Q2_K, Q3_K_M, Q4_K_M, Q5_K_M, Q6_K, Q8_0, and sometimes a hefty F16 at the bottom. Nobody tells you which one to pick, and picking wrong means either a model that refuses to load or one that answers worse than it should. This guide explains what those letters and numbers mean, what you give up at each step, and how to choose the right quantization for the memory you actually have.

It is the natural companion to our guide on how much VRAM you need to run AI models locally: that article tells you how much room you have, this one tells you how to fill it wisely. If you are still at the very beginning, start with the beginner’s guide to running AI locally on your PC.

Q4_K_M
Our short answerStart with Q4_K_M. Move up to Q5_K_M or Q6_K if you have spare memory, to Q8_0 only when quality is the whole point, and avoid anything under Q3 unless nothing else fits.

What quantization actually is

A language model is a very large collection of numbers, the weights. When researchers publish a model, those numbers are normally stored with 16 bits each, which gives them plenty of fine detail. Quantization is the practice of re-storing the same numbers with fewer bits, rounding each one to the nearest value a smaller scale can represent.

Think of it like saving a photo as a JPEG. The original file has every last bit of detail, and a well-compressed copy looks the same to your eyes while taking a fraction of the space. Compress it too hard and you start to see blocky artifacts. Models behave similarly: a gentle squeeze is nearly invisible, an aggressive one makes the answers get vague, repetitive or plain wrong.

The reason this matters for you is simple arithmetic. Dropping from 16 bits to 4 bits cuts the memory a model needs to roughly a quarter. A model that would have demanded a 24 GB card in its original form can suddenly sit comfortably on a 8 or 12 GB one. Without quantization, local AI on a normal PC would barely exist.

Decoding the names

The names look cryptic, but they follow a pattern, at least in the GGUF format used by llama.cpp, Ollama and LM Studio.

The number after the Q is the rough bit count: Q4 is around 4 bits per weight, Q8 around 8. The letter K tells you it uses the newer “K-quant” scheme, which is smarter than plain rounding because it groups weights into blocks and gives each block its own scale. The final S, M or L stands for small, medium or large, and it tells you how many of the more sensitive tensors keep extra precision. M is the usual middle ground.

So Q4_K_M reads as: about 4 bits, K-quant method, medium mix. Q8_0 is the older, simpler 8-bit scheme and is close to lossless for practical purposes. F16 is the original half-precision data, with no compression at all.

One small caveat that trips up beginners: the real bits per weight are a bit higher than the name suggests, because of the scale information stored alongside. Q4_K_M works out to somewhere around 4.8 bits in practice, and Q8_0 to about 8.5. That is why a 4-bit file is a little bigger than the “four bits per weight” arithmetic would suggest.

How much memory each level needs

Here is a practical reference for a model with 8 billion parameters, a very common size. The figures are approximate: exact file sizes vary by model architecture, and you still need extra memory for the context cache on top.

QuantizationApprox. bits/weight8B model file sizeQuality vs. originalOur take
Q2_K~3~3.2 GBClearly degradedLast resort
Q3_K_M~3.9~4.0 GBNoticeable lossOnly if nothing else fits
Q4_K_M~4.8~4.9 GBSmall, rarely noticeable lossThe default pick
Q5_K_M~5.7~5.7 GBVery small lossGood upgrade with spare memory
Q6_K~6.6~6.6 GBAlmost indistinguishableFor the quality-conscious
Q8_0~8.5~8.5 GBPractically losslessWhen memory is no issue
F1616~16 GBThe originalRarely worth it at home

Treat the sizes as ballpark numbers, because they differ a little from one model to the next. What matters is the shape of the curve: the savings are big when you go from 16 bits down to 8 and again down to 5 or 4, and the quality cost stays small until you push below roughly 4 bits.

What you lose, honestly

We should be upfront: we are not running our own benchmark suite here, so what follows is what the community measurements and the llama.cpp project’s own perplexity comparisons consistently indicate. At 8 bits the difference from the original is so small that it falls inside the noise. At 5 and 6 bits it is still tiny. At Q4_K_M there is a measurable but modest degradation, the kind that shows up in a statistic far more than in a conversation. Below that, at Q3 and Q2, the losses become visible: the model loses facts, mangles instructions and drifts more.

The damage is also uneven across tasks. Casual chat and summarising are forgiving. Code, maths and strict structured output, such as clean JSON, are less so, because one wrong token can break the result. Small models suffer more from heavy quantization than big ones, since they have less redundancy to spare. If you are running a 3B or 7B model, lean toward Q5 or Q6 when you can afford it; a 70B model tolerates Q4 much better.

Q3 and below (quality kept)
2.5
Q4_K_M (balance)
4.6
Q5_K_M / Q6_K (quality per GB)
4.2
Q8_0 (value for memory)
3.3

These bars are our editorial judgement of overall value for a typical home user, not lab scores. Q8 scores low on value only because the memory it eats could usually buy you a bigger model instead, which brings us to the most useful rule in this whole topic.

Bigger model, heavier compression: usually the better trade

When you have a fixed amount of VRAM, you face a choice: a small model at high precision, or a larger one squeezed harder. In our experience of reading what users report, and consistent with the published comparisons, the larger squeezed model tends to win as long as you stay at about 4 bits or above. A 14B model at Q4 will generally out-reason a 7B model at Q8, even though they need a similar amount of memory.

The intuition is that parameters hold knowledge and capability, while the extra precision mostly protects against small rounding errors. Spending your memory budget on more parameters buys more of the first. The exception is when you drop under about 3 bits: past that point the rounding errors stop being small, and a lighter model at a safer level is the wiser call.

So the practical method is to pick the biggest model whose Q4_K_M file fits your card with some margin, and only then ask whether you have enough room left over to bump it up to Q5 or Q6. If you do not know your limits yet, work them out with the formula in our VRAM guide.

Quantization, speed and context

There is a bonus that people often miss. Producing each word means reading essentially all the weights from memory, and memory bandwidth is usually the bottleneck rather than raw compute. A smaller file therefore tends to produce text faster, provided it all lives in VRAM. That is why a Q4 model often feels snappier than the same model at Q8 on the same card.

There is also an interaction with the context cache. The conversation history takes memory on top of the model, and in some tools it can be stored at lower precision too. If you work with long documents, quantizing the model a notch further, or capping the context length, can free the gigabytes you need. Our guide to cooling a PC for AI workloads is worth a look if you plan long generation sessions, since a card running flat out for hours gets warm.

💡 How to test it in two minutes: download the same model at Q4_K_M and at Q6_K, give both the same three or four prompts you really use, and compare. If you cannot tell the difference, keep the smaller one and spend the saved memory on a longer context or a bigger model.

How to choose in practice

If your card has 8 GB, a 7-8B model at Q4_K_M or Q5_K_M is the comfortable region, with a moderate context. At 12 GB, you can either run an 8B model at Q8 or, better in most cases, step up to a 13-14B model at Q4. With 16 GB, 14B models at Q5 or Q6 fit, and 20B-class ones at Q4 are within reach. At 24 GB, 30B-class models at Q4 become the interesting target.

If your hardware is light, an NPU or integrated graphics will be the limit rather than a discrete card; our explainer on whether you need an NPU in your PC covers where that fits in. And if you are shopping with these numbers in mind, our pick of desktop PCs for local AI and the broader AI PC hardware guide turn them into concrete hardware.

A few mistakes come up again and again. People download the largest file in the list “for best quality” and then wonder why the model crawls, when part of it has spilled into system RAM. Others grab Q2 to squeeze a giant model onto a small card and are disappointed by the nonsense it produces. And some forget that two files with the same Q label from different uploaders can differ in quality, so stick with well-known publishers of GGUF files when you can.

Key takeaways
  • Quantization stores model weights with fewer bits, cutting memory use to a quarter at 4 bits.
  • Q4_K_M is the best default; Q5_K_M and Q6_K are worth it with spare memory.
  • A bigger model at Q4 usually beats a smaller one at Q8 on the same memory budget.
  • Below about 3 bits, quality falls quickly; small models suffer most.
  • Smaller files are often faster too, as long as everything fits in VRAM.

Bottom line

We would not overthink this. Pick the largest model you like, download its Q4_K_M, check that it fits with a margin for context, and use it for a week. If you find it too soft on code or long reasoning, try Q5 or Q6 next. Most people will never feel the need to go beyond that, and the memory you save is better spent on a model that knows more. If it ever feels too slow because the model spills out of VRAM, the fix is a smaller quantization or a smaller model, not a panic buy.

Ready to pick hardware around the numbers? Browse graphics cards for local AI on Amazon and check the memory capacity first, or see our advice on buying a used GPU if your budget is tight.

FAQ

What does Q4 or Q8 mean in a model name?
It is the approximate number of bits used to store each weight of the model. Q8 uses about 8 bits, Q4 about 4. Fewer bits means a smaller file and less memory needed, in exchange for a small loss in precision.
What is Q4_K_M and why does everyone recommend it?
Q4_K_M is a 4-bit format from the GGUF family that uses a smarter scheme: more sensitive parts of the model keep a bit more precision than others. It lands at a very good point between size and quality, which is why it is the default suggestion in most guides and apps.
Is Q8 noticeably better than Q4?
For everyday chat, summaries and coding help most people struggle to tell them apart in a blind comparison. Q8 is closer to the original and is worth it when you have memory to spare; Q4 is worth it when memory is the bottleneck.
Is a bigger model at Q4 better than a smaller one at Q8?
Usually yes, within reason. A 14B model at 4-bit generally beats a 7B model at 8-bit for the same or similar memory budget, because the extra parameters carry more knowledge than the extra precision does. Below about 3 bits the picture changes and quality drops quickly.
Does quantization make the model faster?
Often, yes. Generating text is mostly limited by how fast the hardware can read the weights from memory, so a smaller file usually means more tokens per second, as long as the whole model fits in VRAM.
Can I quantize a model myself?
You can, with tools from the llama.cpp project, but most people never need to. Popular models are already published in several quantization levels, so you download the one that fits your hardware.
What is the difference between GGUF, GPTQ and AWQ?
They are different file formats and methods for storing compressed models. GGUF is the one used by llama.cpp, Ollama and LM Studio and works on CPUs and GPUs alike. GPTQ and AWQ are mainly aimed at GPU inference in other toolchains.