Core Techniques Driving 3-bit LLaMA Speed
SqueezeLLM's rapid 3-bit LLaMA inference is enabled by its dense-and-sparse quantization, which isolates sensitive outlier weights, and sensitivity-based non-uniform quantization, further accelerated by custom CUDA kernels.
The top 3
- Sensitivity-Based Non-Uniform Quantization: SqueezeLLM employs a sensitivity-based non-uniform quantization that optimizes bit precision by analyzing weight distributions and second-order information to preserve model accuracy at ultra-low bitrates.
- Dense-and-Sparse Weight Decomposition: SqueezeLLM separates weight matrices into a dense component, which is heavily quantized, and a sparse component that retains critical outlier and sensitive values in higher precision to prevent accuracy degradation.
- Sensitivity-Based Non-Uniform Quantization Explained: SqueezeLLM employs a non-uniform quantization strategy that assigns more bits to 'sensitive' weights—those whose perturbation significantly impacts model output—by clustering quantization bins closer to these crucial values, minimizing perplexity loss.
Sources
Open the full topic