Hardware

What Is LLM Quantization? Big Models, Small GPUs

LLM quantization shrinks a model by storing its numbers with fewer bits, so big models fit on small GPUs. Learn the formats, trade-offs and what to pick.

By OmniAI Editorial · Nov 19, 2026 · 8 min read

LLM quantization is the trick that lets you run large AI models on ordinary hardware. A language model is made of billions of numbers called weights. Normally each weight is stored with 16 bits. Quantization stores them with fewer bits, often 8 or 4, so the whole model takes up a half or a quarter of the memory. The model becomes a little less precise, but usually far less than you'd expect.

If you've ever downloaded a model with a name like Q4_K_M or AWQ, you've already used quantization. This guide explains what it is in plain language, how much quality you lose, what the common formats mean, and which version to pick for your GPU.

What Is LLM Quantization?

Imagine measuring the length of everything in your house with a ruler that has a mark every millimeter. Now swap it for a ruler with a mark only every centimeter. Each measurement gets rounded to the nearest mark, so you lose some detail, but for most purposes the results are still close enough. And you only need to remember a tenth as many marks.

Quantization does the same with a model's weights. Instead of storing each one as a precise 16-bit number, it rounds it to one of a smaller set of values that fit in 8, 4 or even fewer bits. Clever methods choose those values carefully, so the most important weights keep their accuracy.

Two horizontal rulers, the top one with many fine tick marks and a grey dot, the bottom one with a few wide tick marks and an orange dot snapped to the nearest mark.
Quantization rounds each weight to the nearest of fewer allowed values, trading a little precision for a much smaller model.

Why it matters

Memory is the main limit for running models at home. A model has to fit in your GPU's memory (VRAM) to run fast, and most consumer graphics cards have between 8 and 32 GB. Our guide on how much VRAM you need for AI covers this in detail. Without quantization, most capable models simply wouldn't fit.

Smaller weights also make models faster. Generating text is mostly limited by how quickly the GPU can read weights from memory, so reading half as many bytes per word often means noticeably quicker answers.

How Much Memory Does LLM Quantization Save?

The math is simple: memory for the weights is roughly the number of parameters times the bits per weight, divided by eight.

Model size16-bit (FP16)8-bit4-bit
7–8B parametersabout 14–16 GBabout 7–8 GBabout 4–5 GB
14B parametersabout 28 GBabout 14 GBabout 8–9 GB
32B parametersabout 64 GBabout 32 GBabout 18–20 GB
70B parametersabout 140 GBabout 70 GBabout 40 GB

These numbers are approximate and cover only the weights. You also need room for the context (the KV cache), which grows with longer conversations, plus some overhead. Real 4-bit files are usually a bit larger than a strict 4 bits per weight, because some layers are kept at higher precision.

Three vertical grey bars getting shorter from left to right, the shortest bar in orange.
Each halving of the bits roughly halves the memory a model needs: 16-bit, 8-bit and 4-bit versions of the same model.

The practical effect is huge. With 4-bit quantization, a 7–8B model fits comfortably on an 8 GB card, a 32B model fits on a 24 GB card, and a 70B model fits across two 24 GB cards or on a Mac with plenty of unified memory.

How Much Quality Do You Lose?

Less than most people expect, down to about 4 bits. After that, quality drops faster.

  • 8-bit: practically the same as the original for most uses.
  • 5- and 6-bit: very small loss, hard to notice in normal chats.
  • 4-bit: a small but measurable loss. This is the most popular choice because it hits the best balance of size and quality.
  • 3-bit and below: noticeable mistakes, weaker reasoning and more repetition, especially with smaller models.

Two rules of thumb help:

  1. Bigger models handle quantization better. A 70B model at 4 bits loses less than a 7B model at 4 bits.
  2. A bigger quantized model usually beats a smaller full-precision one. If your GPU can hold either a 14B model at 4 bits or a 7B model at 8 bits, the 14B model will usually give better answers. Our comparison of 7B vs 70B models shows why size matters so much.

Tasks that need exact details, like math, code and long reasoning chains, tend to suffer first. If those are your main use, choose a higher bit level when you can.

Common Quantization Formats

The format you need depends on the software and hardware you use to run the model.

GGUF

GGUF is the file format of llama.cpp, the engine behind popular tools like Ollama and LM Studio. It runs on almost anything: Nvidia and AMD graphics cards, Apple Silicon Macs, and even plain CPUs. It can also split a model between GPU and system memory when it doesn't fully fit. If you run models on a laptop or desktop, GGUF is usually the right choice.

GGUF files come in many sizes, named by their quantization type.

What Q4_K_M means

A name like Q4_K_M packs three pieces of information:

  • Q4: about 4 bits per weight.
  • K: the "k-quant" method, which stores weights in small blocks with their own scale, so accuracy holds up better than older methods.
  • M: medium. Some important layers are kept at a higher bit level. S (small) saves more memory, L (large) keeps more quality.

Q4_K_M is the most common default because it gives a good balance of size and quality. Q5_K_M and Q6_K are worth it if you have spare memory. Q8_0 is nearly lossless but twice the size of a 4-bit file. You may also see IQ types, newer methods that keep quality better at very low bit levels.

AWQ vs GPTQ

AWQ and GPTQ are 4-bit methods built for running models on Nvidia GPUs with serving software like vLLM or Hugging Face Transformers. Both quantize the model ahead of time using a small sample of text to decide which weights matter most.

In the AWQ vs GPTQ comparison, AWQ (activation-aware weight quantization) usually keeps quality slightly better at the same size and is the more common choice for serving today. GPTQ is older and very widely supported. In practice the gap is small, and the right pick is often simply whichever version your serving software supports best.

Other formats you may see

  • MLX: Apple's format for running models efficiently on Mac.
  • EXL2 and EXL3: formats for the ExLlama engine, which allow very fine size control on Nvidia GPUs.
  • FP8 and FP4: low-precision number types built into newer Nvidia GPUs. Some recent models are even trained or released directly in these formats.

How to Pick the Right Quantization

Start with your memory, then work backwards.

  1. Check your memory. Note your GPU's VRAM, or your Mac's unified memory.
  2. Leave room for context. Keep at least 1–2 GB free for the KV cache, more if you work with long documents.
  3. Pick the largest model that fits at 4 bits. Q4_K_M in GGUF, or AWQ for GPU serving.
  4. Step up if you have room. If the model fits easily, try Q5_K_M, Q6_K or Q8_0 for a bit more quality.
  5. Step down carefully. Below 4 bits, test on your real tasks before you rely on it.

If you're just getting started, our guide to running an LLM locally shows how to download and run a quantized model in a few minutes.

A tall grey block standing beside an open grey box that is too short for it, and a smaller orange block sitting neatly inside the box.
Quantization is often the difference between a model that doesn't fit on your GPU and one that runs smoothly.

Quantizing the KV cache

The weights aren't the only thing that uses memory. The KV cache, which stores the conversation so far, can also be quantized, for example to 8 bits. That lets you use much longer contexts on the same card, with a very small effect on quality. Tools like llama.cpp and vLLM offer it as a setting.

FAQ

What is quantization in LLMs?

It is a way to make a language model smaller by storing its weights with fewer bits, such as 8 or 4 instead of 16. The model needs less memory and often runs faster, with a small loss in accuracy.

Does quantization reduce quality?

A little. At 8 bits the difference is barely noticeable, and at 4 bits the loss is small for most everyday tasks. Below 4 bits, mistakes become more common, especially in smaller models and in math or coding tasks.

Is 4-bit quantization good enough?

For most people, yes. 4-bit quantization is the most popular choice for running models at home because it cuts memory by about three quarters while keeping most of the quality. If you have spare memory, 5 or 6 bits is a safe step up.

What does Q4_K_M mean?

It is a GGUF quantization type: about 4 bits per weight, using the k-quant method, at the medium size variant that keeps some important layers at higher precision. It is the most common default for local models.

Is AWQ better than GGUF?

They target different setups. AWQ is built for fast serving on Nvidia GPUs with tools like vLLM. GGUF is more flexible and runs on GPUs, Macs and CPUs through llama.cpp, Ollama and LM Studio. For a single home computer, GGUF is usually easier.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog