AI Quantization Techniques 2026
Q4_K_M, GPTQ-Int4 and AWQ files are roughly the same size but behave differently. Here is what each format actually does, a size table, and how to pick by hardware and use case.
📜 Table of Contents
📖 Keep reading
AI Quantization Techniques 2026: GGUF vs GPTQ vs AWQ
Quantization trades precision for size: FP16 weights compressed to 8 or 4 bits shrink the file, cut VRAM use and speed up generation because less bandwidth is consumed per token. The cost is accuracy, and how much depends on bit width and method.
Three concepts
- Bit width - bits per weight: FP16 = 16, Q8 = 8, Q4 = 4.
- Group size - scaling factors per group of 32 or 128 weights; smaller groups are more accurate but add metadata.
- Calibration data - GPTQ and AWQ run a small corpus through the model to find sensitive weights. GGUF K-quants skip this.
GGUF (llama.cpp)
A single file holding weights, tokenizer and metadata, with CPU/GPU hybrid inference - layers that do not fit in VRAM spill to RAM, controlled by -ngl.
| Name | Bits | Use |
|---|---|---|
| Q8_0 | ~8.5 | Near lossless when VRAM allows |
| Q6_K | ~6.6 | Precision-sensitive work |
| Q5_K_M | ~5.7 | Safer general choice |
| Q4_K_M | ~4.8 | The common default |
| Q4_K_S | ~4.6 | Save VRAM, slight quality drop |
| Q3_K_M | ~3.9 | Last resort |
| IQ4_XS | ~4.2 | Importance-matrix low-bit, slower |
Portable across Ollama, LM Studio, llama.cpp and koboldcpp. Weakness: batching and throughput trail vLLM-style servers.
GPTQ
Layer-by-layer 4-bit quantization with error compensation, using calibration data. Great single-GPU latency, supported by ExLlamaV2, vLLM and TGI. Downsides: calibration set affects quality, and the format is tied to the inference engine.
AWQ
Activation-aware: it protects the ~1% of channels that matter most, so 4-bit AWQ usually holds up slightly better than GPTQ, especially on long outputs. Supported by vLLM, TGI and SGLang - a mainstream choice for serving.
Others worth knowing
bitsandbytes NF4 (QLoRA fine-tuning), EXL2 (tunable bits-per-weight), FP8 (native on Ada/Hopper and newer), INT8 SmoothQuant (quantizes activations too, big throughput gains).
Size reference
| Params | FP16 | Q8 | Q5_K_M | Q4_K_M | 3-bit |
|---|---|---|---|---|---|
| 7-8B | ~15GB | ~8GB | ~5.5GB | ~4.5GB | ~3.5GB |
| 13-14B | ~27GB | ~15GB | ~10GB | ~8.5GB | ~6.5GB |
| 30-34B | ~65GB | ~35GB | ~24GB | ~20GB | ~15GB |
| 70B | ~140GB | ~75GB | ~50GB | ~42GB | ~31GB |
Speed scales roughly inversely with file size on the same machine - not an algorithmic win, just less bandwidth per token.
How to choose
Desktop with Ollama/LM Studio: GGUF Q4_K_M. Quality first locally: Q5_K_M or Q6_K. Single-GPU API: AWQ or GPTQ 4-bit. H100/L40S fleet: FP8. Fine-tuning: do not use a quantized base - use QLoRA. Desperate for VRAM: IQ4_XS or Q3_K_M.
Three misconceptions
Q4 does not automatically make a model dumb - watch proper nouns, arithmetic and long reasoning chains. Same bit width is not the same quality across formats. And quantization saves memory more than it raises throughput under concurrency.
FAQ
Can vLLM load GGUF? No - use GPTQ, AWQ or FP8 there; serve GGUF through llama.cpp or Ollama.
Can I fine-tune a quantized model? Not full fine-tuning; QLoRA adapters on a 4-bit base is the practical route.
Related
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.