K-Quantization: llama.cpp's Key to Efficiency

llama.cpp's innovative 'K-quant' formats, like Q4_K_M, achieve superior memory efficiency and quality by employing hierarchical affine quantizers. This involves splitting weights into 256-weight superblocks and using mixed precision, where more sensitive layers or parts within blocks retain higher bit-depth (e.g., 6-bit) to minimize accuracy loss compared to uniform quantization.

Sources

Open the full topic