# what is quantization, and why it's the reason you can run AI on a normal PC

Quantization is the trick that shrinks giant AI models to fit consumer GPUs, with almost no quality loss. Here's what those Q4/Q5/Q8 labels actually mean — in plain English.

Updated Nov 21, 2026 · By Ari Vale

This page has referral links. As an Amazon Associate we earn from qualifying purchases.

Our Vast referral code: 623346 (link: https://cloud.vast.ai/?ref_id=623346). New users get no bonus from it; we earn 3% of what referred users spend (Vast's referral program docs: https://docs.vast.ai/guides/reference/referral-program?ref_id=623346).

## What is quantization?

Quantization is the trick that makes local AI possible on normal hardware: it **stores an AI model's weights at lower precision** — for example 4-bit numbers instead of the original 16-bit — which **cuts the model's memory use by around 75% with almost no quality loss**. A model that would need 48GB of VRAM at full precision fits in ~12GB at 4-bit. Without quantization, running capable AI models at home would require data-center GPUs; with it, a [$220 used RTX 3060](https://aliteq.com/gpus/rtx-3060-12gb) runs models that rival cloud services. Those **Q4, Q5, Q8** labels you see on model files are just quantization levels. Here's what they actually mean, in plain English.

## The short answer

Quantization stores an AI model's weights at lower precision, such as 4-bit instead of 16-bit, which cuts memory use by about 75% with minimal quality loss. That is why a model needing 48GB at full precision fits in about 12GB at 4-bit. Q4, Q5 and Q8 are the bit levels, and Q4_K_M is the default to use.

- Q8 is 8-bit: highest quality, about half the 16-bit size
- Q5 and Q6: a little better than Q4 if you have spare VRAM
- Q4_K_M: the sweet spot, near-lossless at about a quarter of the memory
- Q3 and below: noticeable quality loss, only for tiny VRAM

**Run the bigger quant without buying a card** Only a 3-bit file fits your card? Rent a 24 GB card for the session and run the same model at Q4_K_M or Q8 instead. Pick a card, try it, then shut it down. [Rent a 24 GB GPU for an hour](https://cloud.vast.ai/?ref_id=623346) (Referral link: we earn a commission if you buy.) Live prices: https://aliteq.com/vast-ai-pricing

### Run the bigger quant, buy the VRAM or rent it

- **ASUS Prime GeForce RTX 5060 Ti 16GB**: Running 14B models at Q4_K_M or Q5 every day at home with room for context. [Check price on Amazon](https://www.amazon.com/dp/B0F4RZDFD5?tag=aliteqofficia-20)
- **A 24 GB GPU by the hour**: Running a model at Q4_K_M or Q8 for a session when only its 3-bit file fits your own card. [Rent 24 GB on Vast](https://cloud.vast.ai/?ref_id=623346) (live prices: https://aliteq.com/vast-ai-pricing)

Referral link: we earn a commission if you buy.

## The short version

- **Quantization = storing model weights at lower precision** (e.g. 4-bit vs 16-bit) to shrink memory use.
- **It cuts VRAM by ~75% at 4-bit** with minimal quality loss — the reason local AI fits on consumer GPUs.
- **Q4 / Q5 / Q8 = the bit level** — Q4 is 4-bit (smallest), Q8 is 8-bit (larger, higher fidelity).
- **Q4_K_M is the sweet spot** — near-lossless quality at a quarter of the memory. Use it unless you have spare VRAM.
- **Below ~Q4, quality drops noticeably** — Q3 and lower are only for squeezing into tiny VRAM.

## Why does a 20 GB model file run on a 16 GB GPU?

**Because the 20 GB file usually isn't the one people run, and with MoE models part of the model can sit in system RAM.** We saw this asked on X about Thinking Machines' Inkling 2 Mini this week ([@WorldStrategist](https://x.com/WorldStrategist/status/2123991258259488957) asked how a model listed at about 20 GB runs on 16 GB). Three things are going on, and they apply to almost every new model.

> **Updated November 21, 2026**
>
> New section with the file sizes Unsloth published for Inkling 2 Mini, the memory figures from our VRAM engine for Qwen3.8 27B, and the llama.cpp flag that moves MoE experts to system RAM. File sizes are decimal GB as Hugging Face lists them; the engine figures are GB of 1,024^3 bytes, the unit your GPU reports.

1. **1. The big file is the official checkpoint, not the quant.** Inkling 2 Mini's own release is about 20 GB, stored in a mixed NVFP4 + MXFP8 format. Community GGUF builds shrink it further: Unsloth's 2-bit file is 8.5 GB and its 3-bit file 13.6 GB, both small enough for a 16 GB card.
2. **2. MoE models don't need every expert on the GPU.** Inkling 2 Mini has 26.4B parameters but uses only 3.4B per token. llama.cpp's --n-cpu-moe N keeps the expert weights of the first N layers in system RAM, so a 4-bit file bigger than your VRAM still runs, just slower. Unsloth's own memory table counts RAM + VRAM together, which is how a 17 GB 4-bit file runs with 16 GB of VRAM.
3. **3. The file is not the whole bill.** What you need is the weights plus the KV cache for your context plus about 0.8 GB of runtime overhead. A file that just fits can still fail once you ask for a long context.

### Inkling 2 Mini, file size by version (GB, Hugging Face file lists read Nov 21, 2026). A 16 GB card holds about 17.2 decimal GB.

- **Full 16-bit (26.4B x 2 bytes, not published)**: about 52.8 GB
- **UD-Q8_K_XL (8-bit)**: 22.9 GB
- **Official NVFP4 + MXFP8 checkpoint**: about 20.2 GB
- **UD-Q4_K_XL (Unsloth's pick)**: 17.6 GB
- **UD-Q4_K_M (4-bit)**: 16.6 GB
- **UD-Q3_K_XL (3-bit)**: 13.6 GB
- **UD-IQ2_XXS (2-bit)**: 8.5 GB

One more unit trap makes the gap look worse than it is: Hugging Face lists files in decimal gigabytes (1,000^3 bytes), while a "16 GB" graphics card holds 16 x 1,024^3 bytes, about 17.2 decimal GB. So the 16.6 GB 4-bit file is 15.5 GB in the units your GPU reports. It fits the bytes, but not with a context window and overhead on top, which is why people move a few experts to RAM or drop to 3-bit.

### Inkling 2 Mini 3-bit with 32K of context, card by card

Inkling 2 Mini UD-Q3_K_XL at 32K context needs about 14.5 GB of VRAM.

- RTX 4060 8GB (8 GB): does not fit
- RTX 3060 12GB (12 GB): does not fit
- RTX 5060 Ti / 4060 Ti 16GB (16 GB): fits
- RTX 3090 / 4090 24GB (24 GB): fits

13.6 GB file (12.7 GB in GPU units) + 1.0 GB KV cache at 32K (fp16, our engine) + 0.8 GB overhead. Below 16 GB, llama.cpp keeps some experts in system RAM with --n-cpu-moe.

Doesn't fit your card? Rent a 24 GB+ GPU for the hours Inkling 2 Mini UD-Q3_K_XL at 32K context needs, then stop it. Want the 4-bit or 8-bit file with a long context instead? Rent a 24 GB card by the hour. [Rent on Vast.ai](https://cloud.vast.ai/?ref_id=623346) (Referral link: we earn a commission if you buy.) Live prices: https://aliteq.com/cloud-gpu

**Dense models are different.** A dense model reads every weight for every token, so there is no cheap part to park in RAM. If a dense model's file is bigger than your VRAM, you either pick a smaller quant or offload whole layers (-ngl in llama.cpp), and every token then waits on the CPU's memory. Here is the same question for Qwen3.8 27B, a dense model, from our VRAM engine.

### Qwen3.8 27B (dense), memory by quant from our VRAM engine (GB of 1,024^3 bytes, fp16 KV cache, Nov 21, 2026)

|   | Quant | Weights | Total at 8K context | Total at 32K context | Fits a 16 GB card? |
| --- | --- | --- | --- | --- | --- |
| F16 (original) | 51.7 | 53.0 | 54.5 | No |
| Q8_0 | 27.5 | 28.8 | 30.3 | No |
| Q5_K_M | 18.4 | 19.7 | 21.2 | No |
| Q4_K_M | 15.7 | 17.0 | 18.5 | No, it needs a 20-24 GB card |
| IQ4_XS | 13.7 | 15.0 | 16.5 | Yes at 8K, not at 32K |
| Q3_K_M | 12.6 | 13.9 | 15.4 | Yes, with a quality cost |

So "it runs on 16 GB" is usually true for a specific file at a specific context length, often with some of the model in system RAM. Check your exact model in the [VRAM calculator](https://aliteq.com/tools/vram-calculator) or on its page, for example [what Inkling 2 Mini needs on each GPU](https://aliteq.com/can-you-run-inkling-2-mini-locally), [what Inkling 2 Mini costs to run on rented cards](https://aliteq.com/cost-to-run/inkling-2-mini) and [Qwen3.8 27B's memory by quant](https://aliteq.com/cost-to-run/qwen3.8-27b). If the file fits but long prompts crash or slow to a crawl, that is the KV cache, covered in [why VRAM balloons at long context](https://aliteq.com/kv-cache-quantization-explained).

## Why it works (without the math)

An AI model is billions of numbers (weights). By default each is stored at high precision — 16 bits — which is accurate but memory-heavy. **[Quantization](https://aliteq.com/how-to-quantize-local-llm-gguf) rounds those numbers to fewer bits**, like 4, which takes a quarter of the space. The clever part is that modern quantization methods are smart about *which* numbers to round and by how much, so the model's behavior barely changes — for most tasks, a 4-bit model's answers are **indistinguishable from the full-precision version**. It's a bit like a high-quality JPEG: much smaller than the raw image, but you can't tell the difference at a glance. That's the whole magic: you trade a tiny, usually-imperceptible amount of quality for a **massive** reduction in [VRAM needed](https://aliteq.com/how-much-vram-do-you-need-to-run-ai-models), which is what lets a 32-billion-parameter model run on a 24GB gaming GPU such as the [RTX 3090](https://aliteq.com/gpus/rtx-3090) instead of needing a $30,000 data-center card.

### What the quantization levels mean

|   | Label | Precision | Trade-off |
| --- | --- | --- | --- |
| Q8 | 8-bit | Highest quality, ~half size, more VRAM |
| Q5 | 5-bit | Great quality, a bit bigger than Q4 |
| Q4_K_M | 4-bit | The sweet spot — near-lossless, ~quarter size |
| Q3 and below | 3-bit or less | Noticeable quality loss — tiny VRAM only |

![Abstract representation of data and numbers](https://media.aliteq.com/media/2026/07/b17-quant2-body.jpg)
Quantization is like a smart JPEG for AI models — a quarter the size, near-identical output. · Unsplash

## Which level should you use?

For almost everyone, the answer is **Q4_K_M** — 4-bit, and specifically the 'K_M' variant, which is the standard sweet spot. It gives you near-full quality at roughly a quarter of the memory, which is why it's what [Ollama and LM Studio](https://aliteq.com/ollama-vs-lm-studio-which-should-you-use) hand you by default and what the whole local-AI world runs on. Step up to **Q5** or **Q6** only if you have **spare VRAM** and want a touch more fidelity — the quality gain over Q4_K_M is small. Go to **Q8** if you have plenty of VRAM and want maximum quality without running full 16-bit. And avoid **Q3 and below** unless you're desperate to squeeze a model into very limited VRAM — below Q4, the quality drop becomes noticeable, and you're usually better off running a smaller model at Q4 than a bigger one at Q3. Our [8GB](https://aliteq.com/best-local-llm-8gb-vram), [16GB](https://aliteq.com/best-local-llm-16gb-vram) and [24GB](https://aliteq.com/best-local-llm-24gb-gpu-qwen-gemma-gptoss) model guides list the quant we would actually run on each card, and [what AI can my PC run](https://aliteq.com/what-ai-can-my-pc-run) checks your own GPU. The practical rule: **default to Q4_K_M**, and only deviate if you have a specific reason. It's the setting that makes [running AI locally](https://aliteq.com/how-to-run-a-local-llm-on-your-pc-beginners-guide) work on the hardware you actually own.

**Only a 3-bit quant fits your card** If the only way to fit the model you want is Q3 or lower, renting a 24GB card for the session lets you run it at Q4_K_M or better instead. Vast.ai's marketplace bills by the hour; pick a verified host. [Rent a 24GB RTX 4090 by the hour](https://cloud.vast.ai/?ref_id=623346) (Referral link: we earn a commission if you buy.) Live RTX 4090 prices on Vast.ai, from and typical: https://aliteq.com/vast-ai-pricing

**RTX 4090 rental prices right now:** this GPU's rental price now against its 30-day median, the 30-day low and the cheapest provider, refreshed hourly: https://aliteq.com/gpus/rtx-4090

**Prefer a fixed price? Compare quants on Runpod** Runpod lists the same price every hour. Start a 24 GB pod, load the Q4_K_M or Q8 file, compare it with the small quant you run at home, and stop the pod when you're done. [Rent an RTX 4090 on Runpod](https://console.runpod.io/signup?ref=nuninlts) (Referral link: we earn a commission if you buy.) Live RTX 4090 prices on Runpod, from and typical: https://aliteq.com/runpod-pricing

Quantization isn't the only memory lever. [Mixture-of-experts models](https://aliteq.com/moe-vs-dense-ai-models-explained) read only part of their weights per token, so with llama.cpp's [--n-cpu-moe flag](https://aliteq.com/n-cpu-moe-llama-cpp-what-it-actually-does) part of the model can sit in system RAM; [how much RAM you need for local AI](https://aliteq.com/how-much-ram-do-you-need-for-local-ai) covers that side. A smaller quant is also faster, one of the tricks in [how to speed up local LLM inference](https://aliteq.com/how-to-speed-up-local-llm-inference). Live hourly prices for bigger cards such as the [RTX 4090](https://aliteq.com/gpus/rtx-4090) and [RTX 5090](https://aliteq.com/gpus/rtx-5090) are on our [cloud GPU price page](https://aliteq.com/cloud-gpu), and the [GPU rental price index](https://aliteq.com/gpu-rental-price-index) shows the 7-day change.

Newer GPUs add hardware 4-bit formats: [NVFP4 on NVIDIA Blackwell](https://aliteq.com/what-is-nvfp4-nvidia-4-bit-blackwell-local-ai) and [MXFP4](https://aliteq.com/what-is-mxfp4), the format gpt-oss uses.

Related: [Qwen3.8 27B in NVFP4](https://aliteq.com/qwen3-8-27b-nvfp4).

Related guides: [Out of memory at long context](https://aliteq.com/kv-cache-quantization-explained), [Prefill vs decode, why long prompts make your GPU wait](https://aliteq.com/prefill-vs-decode-local-llm), [Rent or buy a GPU at your budget](https://aliteq.com/rent-vs-buy-gpu-ai-cloud-vs-local), [Why the AI keeps forgetting what you told it — and how to stop it](https://aliteq.com/why-ai-forgets-context-window-explained).

## Quick answers

**Q: What is quantization in AI models?**

A: Quantization is a technique that stores an AI model's weights at lower numerical precision — for example 4-bit instead of the original 16-bit — to dramatically reduce how much memory the model uses. At 4-bit, it cuts VRAM requirements by roughly 75% with minimal quality loss, because modern quantization methods are smart about how they round the numbers. This is the key technology that lets large AI models run on consumer GPUs at home; without it, you'd need expensive data-center hardware. The Q4/Q5/Q8 labels on model files indicate the quantization level.

**Q: What does Q4, Q5, or Q8 mean for AI models?**

A: They indicate the quantization level — how many bits are used to store each weight. Q4 means 4-bit (smallest and most memory-efficient), Q5 is 5-bit, and Q8 is 8-bit (larger, higher fidelity, using about half the memory of full 16-bit). Lower numbers mean smaller size and slightly lower quality; higher numbers mean more precision and larger files. Q4_K_M — a specific 4-bit method — is the sweet spot for local AI, offering near-lossless quality at roughly a quarter of the full model's memory. It's the recommended default.

**Q: Why does a 20 GB model file run on a 16 GB GPU?**

A: Usually because the 20 GB file is the official checkpoint and people run a smaller quantized GGUF. Inkling 2 Mini's official release is about 20 GB, but Unsloth's 3-bit file is 13.6 GB and its 2-bit file 8.5 GB, both small enough for a 16 GB card. For MoE models, llama.cpp's --n-cpu-moe can also keep some expert weights in system RAM, which is why Unsloth lists memory needs as RAM plus VRAM. Remember to budget the KV cache and about 0.8 GB of overhead on top of the file.

**Q: Does a model need as much VRAM as its file size?**

A: It needs at least the file size plus the KV cache for your context plus runtime overhead. Qwen3.8 27B at Q4_K_M is 15.7 GB of weights on our engine but about 18.5 GB in total at 32K of context, so it needs a 20 to 24 GB card. MoE models can run with less VRAM than the file by keeping experts in system RAM, at lower speed.

**Q: Does quantization reduce AI model quality?**

A: Only slightly, and usually imperceptibly at 4-bit and above. Modern quantization methods like Q4_K_M are designed to minimize quality loss, so a 4-bit model's outputs are typically indistinguishable from the full-precision version for most tasks — similar to how a good JPEG looks the same as the original at a glance. Quality does drop noticeably below 4-bit (Q3 and lower), so those are only worth using to fit a model into very limited VRAM. For normal use, Q4_K_M gives you nearly full quality while using a quarter of the memory.

Quantization is the reason a normal PC can run capable AI — it shrinks models ~75% at 4-bit with near-zero quality loss, and Q4_K_M is the default to use. It's why [cheap GPUs run big models](https://aliteq.com/cheapest-gpu-for-local-ai). For the file *formats* that package it, see [GGUF vs EXL2](https://aliteq.com/gguf-vs-exl2-quantization-explained); to see the memory math for any model, use the [VRAM calculator](https://aliteq.com/tools/vram-calculator). To test a bigger quant before buying a card, see our [Vast review](https://aliteq.com/vast-ai-review) and [Runpod review](https://aliteq.com/runpod-review). Source: [Hugging Face](https://huggingface.co/docs/transformers/main/en/quantization/overview).

## Sources

- [Hugging Face — quantization docs](https://huggingface.co/docs/transformers/main/en/quantization/overview)
- [Aliteq VRAM calculator](https://aliteq.com/tools/vram-calculator)
- [Thinking Machines Lab, Inkling 2 Mini model card (vendor page, read Nov 21, 2026): 26.4B total, 3.4B active, official checkpoint mixed NVFP4 + MXFP8, about 20 GB](https://huggingface.co/thinkingmachines/Inkling-2-Mini)
- [Unsloth, Inkling-2-Mini-GGUF file list (read Nov 21, 2026): UD-IQ2_XXS 8.49 GB, UD-Q3_K_XL 13.63 GB, UD-Q4_K_M 16.61 GB, UD-Q4_K_XL 17.63 GB, UD-Q8_K_XL 22.87 GB](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF)
- [Unsloth docs, Inkling 2 Mini (read Nov 21, 2026): hardware requirements as RAM + VRAM or unified memory, 3-bit 13-15 GB, 4-bit 17-18 GB; recommended UD-Q4_K_XL (17.6 GB)](https://unsloth.ai/docs/models/inkling-2-mini)
- [llama.cpp server README (read Nov 21, 2026): -ncmoe, --n-cpu-moe N keeps the MoE weights of the first N layers in the CPU](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md)
- [Aliteq VRAM engine, Qwen3.8 27B memory by quant and context (own data, Nov 21, 2026)](https://aliteq.com/cost-to-run/qwen3.8-27b)

---

Canonical: https://aliteq.com/what-is-quantization-llm-explained

This page has referral links. As an Amazon Associate we earn from qualifying purchases.
