Back
advanced
Optimization & Deployment

Quantization (GPTQ, AWQ, GGUF, FP8)

Understand how lower-precision weights reduce memory and cost, and when quantization hurts quality

25 min read· quantization· optimization· deployment· GPTQ

Quantization (GPTQ, AWQ, GGUF, FP8)

Quantization stores or computes model values with fewer bits.

Instead of full precision everywhere, you use formats like INT8, INT4, FP8, or GGUF variants to reduce memory and improve speed.

Why it matters

BenefitWhat it unlocks
lower memoryfit larger models on available hardware
lower bandwidthfaster inference in some settings
lower costserve more requests per machine
local deploymentrun smaller models on laptops or edge devices

Tradeoff

Quantization is compression. Compression can lose information.

Watch for:

  • worse reasoning
  • worse math/code
  • format mistakes
  • longer-tail quality drops
  • degraded multilingual behavior

Common formats

MethodTypical use
INT8safer compression with modest savings
INT4bigger savings, more quality risk
GPTQpost-training quantization for transformers
AWQactivation-aware quantization
GGUFlocal inference ecosystem format
FP8modern accelerator-friendly low precision

Evaluation rule

Do not judge quantization by one prompt. Run task evals before and after quantization.

Measure:

  • quality
  • latency
  • memory
  • throughput
  • cost
  • failure cases

Knowledge check

Q1: What is quantization trying to reduce?

Memory, bandwidth, and serving cost.

Q2: Why can quantized models fail subtly?

They may pass simple prompts but lose quality on hard or rare cases.