Quantization Levels
Quantization reduces model precision to decrease file size and increase inference speed, with a trade-off in output quality.Overview
Sizes shown are approximate for a 7B parameter model. Actual sizes depend on model architecture.
How Quantization Works
Full-precision models store each weight as a 16-bit or 32-bit floating point number. Quantization maps these values to lower bit representations:- Q8_0: 8-bit integer quantization with minimal quality loss
- Q6_K: 6-bit with K-quant optimization
- Q4_K_M: 4-bit mixed precision (important layers get higher precision)
- Q2_K: 2-bit aggressive compression
Choosing a Level
Mobile / Edge
Q3_K_M or Q4_K_MFor phones, Raspberry Pi, or systems with less than 8 GB RAM. Noticeable quality loss but usable.
Desktop / Laptop
Q5_K_M (recommended)Best balance for most users. Good quality with significant size reduction.
Server / Production
Q8_0Near-original quality. Use when output quality is critical and storage/RAM is not a concern.