What problem does it solve?
AWQ solves the challenge of deploying large language models when GPU memory is limited and inference speed and accuracy must be preserved by providing activation-aware 4-bit weight quantization that reduces memory footprint and speeds up runtime with minimal accuracy degradation.
Core Features & Use Cases
- Activation-aware 4-bit quantization: Protects salient weights identified from activation patterns to minimize accuracy loss (<5% typical degradation).
- Multiple kernel backends: GEMM for batch throughput, GEMV for single-token streaming, Marlin for Ampere+ GPUs, and ExLlama for AMD compatibility.
- Production deployment: Works with transformers, vLLM, fused modules, multi-GPU device mapping, and supports models across Llama, Mistral, Qwen, Falcon and multimodal families.
- Use case: Quantize a 7B–70B instruction-tuned model to serve with vLLM on limited GPU memory while maintaining high throughput and low perplexity increase.
Quick Start
Quantize my Mistral-7B model to AWQ 4-bit with q_group_size 128 and zero-point enabled, save the quantized model, and load it for fused inference.