K-Quants' Memory Efficiency: Halving Constant Storage

By grouping 32-weight blocks into larger 256-weight "super-blocks" and quantizing their associated scales and offsets, K-quants can reduce the storage overhead for these quantization constants by approximately 50%, for example, from 2GB to about 1GB for a 16B parameter model. This also optimizes memory bandwidth utilization.

The top 3

  1. K-Quants' Double Quantization for Halved Metadata: K-Quants achieve significant memory savings by applying "double quantization," where the quantization constants (scales and offsets) for weight blocks are themselves quantized, creating a two-level hierarchical scheme that effectively halves their storage overhead compared to storing them in full precision.
  2. 16B Models: K-Quants Cut Constant Storage by 50%: For a 16-billion parameter model, K-Quants reduce the memory required for quantization constants from approximately 2GB (in legacy formats) to around 1GB, directly demonstrating the 50% reduction in this critical metadata overhead.
  3. K-Quants' Super-Block Hierarchy: Efficient Metadata: K-Quants organize weights into "super-blocks" (typically 256 weights, composed of eight smaller 32-weight blocks), where each small block has quantized scales/offsets (e.g., INT8), and the super-block provides a single FP16 constant for dequantizing these block constants, optimizing metadata storage.

Sources

Open the full topic