LLM Quantization's Top Memory Reductions: 8-bit, 4-bit, and Sub-4-bit

Quantizing Large Language Models from FP16 typically yields 50% memory reduction with 8-bit (INT8) and 75% with 4-bit (INT4). Pushing to 3-bit can save over 90%, and 2-bit up to 93.75% of FP32 memory, though sub-4-bit often requires advanced techniques or specialized models to retain acceptable accuracy.

The top 3

  1. Memory Footprint Showdown: 8-bit, 4-bit, and Sub-4-bit: Compared to 16-bit precision, 8-bit quantization typically halves memory usage (50% reduction), while 4-bit quantization cuts it by approximately 75%. Sub-4-bit (e.g., 3-bit) offers even greater compression, potentially reducing memory by over 80% for a 7B model.
  2. Quantization Quality: Accuracy Loss by Bit-Width: 8-bit quantization typically preserves over 99% of a model's original accuracy, making it near-lossless for many tasks. 4-bit quantization can achieve 98.9% accuracy with advanced techniques, but below 4-bit, such as 2-bit or 3-bit, accuracy often degrades sharply on most architectures, requiring specialized non-uniform methods to maintain usability.
  3. Top Algorithms: Unlocking 4-bit and Sub-4-bit LLMs: GPTQ pioneered 4-bit quantization for LLMs, maintaining accuracy while reducing size. AWQ improved upon this by identifying and protecting critical weights, yielding better 4-bit quality. For sub-4-bit levels, advanced techniques like SpQR and picoLLM are crucial, often employing non-uniform bit allocation to mitigate significant accuracy loss.

Sources

Open the full topic