Quantization compresses 16-bit floating point neural network weights into 2 to 8-bit integers, reducing memory footprint by up to 75% with minimal degradation in cognitive reasoning capability.
1. K-Quants Architecture
Modern GGUF files employ "K-quants" (e.g. Q4_K_M, Q5_K_M), which apply variable precision across different layers of the transformer network:
- Attention Heads & Feed-Forward Layers: Quantized to 4 or 5 bits where error tolerance is high.
- Input Embedding & Output Projection Tensors: Preserved at 6 or 8 bits to prevent vocabulary degradation and syntax collapse.
For virtually all production tasks, Q4_K_M represents the optimal sweet spot between memory consumption and benchmark perplexity.