If you have ever downloaded a local language model and stared at filenames like Q4_K_M and Q8_0, you have already bumped into quantization in AI models — the compression method that shrinks a model so it fits on ordinary hardware. Instead of storing every weight as a precise 16-bit or 32-bit number, quantization re-records those numbers with fewer bits, trading a small amount of precision for a large saving in memory and speed.
This guide explains the idea in plain language, puts real numbers on the Q4-versus-Q8 trade-off, and shows you how to pick the right level for your machine and your work. By the end, you will know exactly which file to download, why it is the right size for your hardware, and what quality you are giving up — or not giving up — in exchange.
What Quantization in AI Models Actually Does
A neural network is mostly a giant list of numbers called weights. Trained models usually store each weight as a 16-bit or 32-bit decimal — very precise, and very large. A 7-billion-parameter model at 16 bits needs about 14 GB just for the weights, before you count the memory needed to actually run a conversation. That is more than many laptops and mid-range graphics cards can spare, which is why local AI felt out of reach for so long.
Quantization re-records those numbers in a coarser format, the way you might round 3.14159 to 3.14: almost the same value, written with far less ink. At 8 bits per weight (Q8), the same 7B model shrinks to roughly 7 GB. At 4 bits (Q4), it drops to about 3.5–4 GB — small enough for a laptop or a modest GPU. The number after the Q is simply the bits per weight, so the label on the file tells you the compression level at a glance.
Why Rounding a Model Does Not Break It
Naive rounding would wreck a model, but modern quantizers are far cleverer than that. They scale groups of weights together instead of rounding each one in isolation, and they keep a few especially sensitive numbers at higher precision. The result is a model that behaves almost like the original, even though every weight has been squeezed into a smaller box.
Think of it like compressing a photo. A JPEG throws away detail your eye cannot see, and the picture still looks right. Quantization does the same for weights: it discards precision the model does not really need for most outputs, and keeps the structure that matters. The quality loss is real, but it is far smaller than the raw numbers suggest — and, as the measurements below show, often too small to notice in everyday use.

Q4 vs Q8: The Size, Speed and Memory Numbers
Q8_0 keeps weights at 8-bit precision: roughly half the size of the original 16-bit model, with quality loss so small that benchmarks struggle to measure it. Q4 variants cut the size roughly in half again versus Q8, at a small but real quality cost. The most popular Q4 variant, Q4_K_M, mixes 4-bit storage with slightly higher precision where it matters most, which is why it has become the default choice in the local-model community.
Here is what that means for real models. A 7B model is about 7.2 GB in Q8 and about 4.1 GB in Q4_K_M. A 13B model is roughly 13.5 GB in Q8 versus 7.9 GB in Q4_K_M. That gap decides whether a model runs on your machine at all: a 13B model at Q8 needs a serious GPU, while the same model at Q4_K_M fits on a good laptop or an 8 GB graphics card with room to spare.
What Q8_0 Gives You
Q8 is the near-lossless option. Measured quality sits within a hair of the full-precision model, so if a model fits at Q8, there is no reason to go lower. You get the full vocabulary, the full reasoning ability, and the full instruction-following behaviour of the original, at half the memory. For coding help, long documents, and analytical work where small errors compound, Q8 is worth the extra gigabytes whenever your hardware allows it.
What Q4_K_M Gives You
Q4_K_M is the sweet spot most local-AI users actually run. It halves the size again, which often means the difference between running a model and not running it — and on memory-bandwidth-limited hardware it usually generates tokens faster, too. The quality cost is small for chat, drafting, and summarisation, and only shows up in the hardest tasks. If you can only fit one quant, this is the one to choose.
There is also a middle step many people overlook: Q5. A Q5_K_M file sits between the two, noticeably closer to Q8 quality while staying modestly bigger than Q4. If Q8 is just slightly too large for your machine, Q5 is often the answer rather than dropping all the way to Q4.

How Much Quality Do You Actually Lose?
Measured on standard perplexity benchmarks, Q8 is typically within about 0.1–0.2 points of the full-precision model — for practical purposes, indistinguishable. Good Q4 quants, the K-series in particular, land roughly 0.3–0.8 points above the original depending on the model. That is small, and most users cannot spot it in chat, summarisation, or everyday coding help. The model still writes fluently, still follows instructions, and still answers sensibly.
The gap shows up first in hard reasoning, long maths chains, and subtle instruction-following — the tasks where a model has to hold many details in mind at once. It also grows as models get smaller: a 3B model at Q4 suffers more than a 70B model at Q4, because a small model has less spare capacity to absorb the rounding. A large model at Q4 still has plenty of headroom; a tiny one is already working close to its limits.
Below Q4, quality falls off a cliff for most models. Q3 and especially Q2 quants exist for desperate fits, but they produce noticeably weaker, sometimes incoherent output. The community’s standing advice is simple: run the largest model you can at Q4_K_M or better rather than a bigger model crushed to Q2. A smart small model beats a lobotomised large one, every time.
Speed, Memory and the Context Trade-Off
Speed follows memory. Smaller models move less data, so on memory-bandwidth-limited hardware — most consumer GPUs and all Apple Silicon laptops — Q4 often generates tokens noticeably faster than Q8. When the bottleneck is how fast weights can be read from memory rather than how fast the chip can multiply, halving the weight size roughly halves the waiting. That is why a Q4 model can feel snappier than its Q8 twin on the same machine.
The deciding constraint is usually fit, not speed. The model plus its context memory — the KV cache, which grows with conversation length — must fit in your GPU’s VRAM or your machine’s unified memory, or generation slows to a crawl. This is where the context trade-off bites: a Q4 model with room for a long context window often serves real work better than a Q8 model that runs out of memory after a few pages of conversation. A model that can remember the whole document beats a slightly cleverer model that forgets the first half of it.
Before you download anything, work out how much memory you can actually spare. On a dedicated GPU, that is the VRAM minus what your display and other apps use. On Apple Silicon, it is the unified memory you are willing to lend the model, remembering the operating system and your other apps need their share too. If you need a bigger model for your work, our guide to the best GPU for local LLM use explains which cards give you the most VRAM for the money.
How to Choose the Right Quant for Your Machine
Choosing is a short, practical exercise. Work backwards from your hardware, adjust for what you actually do with the model, and test the result on your own tasks rather than trusting a benchmark chart.
- Check your available memory. Note your VRAM on a dedicated GPU, or the unified memory you can spare on Apple Silicon. Write the number down — guessing leads to downloads that will not run.
- Subtract 2–4 GB of headroom. Reserve that space for the context (KV) cache and system needs. A model that fits with zero room for context is a model that cannot hold a conversation.
- Pick the largest quant that fits comfortably. If a model fits at Q8, run Q8 — free quality. If it only fits at Q4, run Q4_K_M without anxiety; it is the most-used quant in the local-LLM world for good reason.
- Adjust for your use case. Casual chat, drafting, and summarisation are fine at Q4 on almost any model size. Serious coding assistance and analytical work deserve Q8 when it fits, or the largest Q4_K_M model your machine holds.
- Test on your own tasks. Run the same prompts through both quants on work you actually do. Your ears — and your own documents — are the final benchmark, not a leaderboard.
If the model fits at neither Q8 nor Q4, drop to a smaller model at Q4 rather than forcing the big one into an extreme quant. A 7B model at Q4_K_M will give you better answers than a 13B model squeezed into Q2, and it will do it faster, on hardware you already own.

Reading Quant Labels Like a Pro
Labels follow patterns worth knowing. In GGUF-land — the format used by llama.cpp and most local apps — names like Q4_K_M, Q5_K_M, Q6_K, and Q8_0 describe the scheme. K-quants mix precisions intelligently, and the S, M, and L suffixes mean small, medium, or large variants within a level. A Q4_K_S file is a touch smaller than Q4_K_M; a Q4_K_L file is a touch larger and slightly better. Once you know the pattern, you can read a download page like a menu instead of a puzzle.
You will also meet other families. AWQ and GPTQ are GPU-oriented 4-bit schemes used with different runtimes, and MLX quants on Apple hardware are labelled simply 4-bit or 8-bit. The underlying trade-off is identical everywhere — bits versus fidelity — so the Q4-versus-Q8 intuition you built here transfers directly, whatever the badge on the file.
One practical footnote: quantization quality also depends on the quantizer’s data. The best GGUF releases are produced with an importance matrix — a calibration step that measures which weights matter most, using sample text, and protects them during rounding. Files labelled with imatrix in their description generally squeeze slightly better quality from the same bit budget, especially at Q4 and below. When two downloads offer the same model at the same level, prefer the one that mentions an importance matrix. It is a quiet mark of a careful release, and the difference shows up exactly in the hard cases where Q4 needs the help.
Frequently Asked Questions
What does the Q number mean in Q4 or Q8?
The bits used to store each model weight on average. Q8 uses 8 bits per weight; Q4 uses about 4. Fewer bits mean a smaller, faster model with slightly less precision.
Is Q4 noticeably worse than Q8?
For most everyday use, barely. Q8 is nearly identical to the original model, while a good Q4 like Q4_K_M loses a small amount of quality that shows mainly in difficult reasoning tasks and in very small models.
Which quant should I run on an 8 GB GPU?
A 7B model at Q4_K_M (about 4 GB) fits comfortably with room for context. A 7B at Q8 (about 7.2 GB) leaves too little headroom on most 8 GB cards once context is included.
Does quantization affect speed or just size?
Both. Smaller weights mean less memory traffic, and memory bandwidth is the main bottleneck in local generation, so Q4 models usually generate tokens faster than Q8 on the same hardware.
Can I quantize a model myself?
Yes. Tools such as llama.cpp include a quantize command that converts a full-precision model into GGUF quants, including Q4_K_M and Q8_0. Most people download a ready-made quant instead, since a good release also applies an importance matrix during calibration — but doing it yourself is a solid way to learn exactly what the process does to a model.

