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.
The top 3
- GPTQ: Pioneering 4-bit Post-Training Quantization: GPTQ was the first method to compress Large Language Models (LLMs) down to 4-bit precision while largely maintaining accuracy, employing a layer-by-layer optimization to minimize quantization error without requiring model retraining.
- AWQ: Protecting Critical Weights for 4-bit Accuracy: Activation-aware Weight Quantization (AWQ) improves 4-bit LLM accuracy by identifying and protecting a small fraction (e.g., 1%) of critical weights from quantization, focusing on activation outliers to achieve nearly lossless compression.
- QLoRA: Enabling 4-bit Fine-tuning on Consumer GPUs: QLoRA revolutionized LLM accessibility by combining 4-bit NormalFloat (NF4) quantization with Low-Rank Adapters (LoRA), allowing fine-tuning of massive models (up to 65B parameters) on a single consumer-grade GPU with minimal performance loss.
Sources
Open the full topic