Optimization6 min read · Updated 2026-11-26

Understanding Quantization in AI Models: FP16, Q8, Q4, GGUF & AWQ

Quantization lowers weight precision from 16-bit floats to 8-bit or 4-bit integers, making 7B–70B models runnable on consumer laptops and GPUs with minimal quality loss.

How bit-width affects memory and quality

FP16/BF16 stores each weight in 16 bits (2 bytes). Q8_0 cuts this roughly in half (~1 byte/param) with virtually indistinguishable output quality. 4-bit formats like Q4_K_M or AWQ reduce weight size to ~0.55 bytes/param, enabling 7B–8B models to fit comfortably in 6–8 GB of memory.

Choosing the right format for your hardware

Use GGUF for llama.cpp and Ollama across CPUs and mixed GPU/RAM offload, MLX 4-bit/8-bit for Apple Silicon unified memory, and AWQ/GPTQ/FP8 for high-throughput NVIDIA GPU servers running vLLM or SGLang.

Inspect these models in MODELXRAY

Primary Sources & References

Continue reading

All guides