Transformers documentation: AWQ (Activation-aware Weight Quantization)
Summary
Living Transformers docs for Activation-aware Weight Quantization: identify AWQ checkpoints via quantization_config.quant_method=awq (typically 4-bit, group_size 128, zero_point, gemm). from_pretrained loads autoawq/llm-awq weights with other tensors in fp16 by default; dtype and device_map control the rest. Notes AutoAWQ pins Transformers to 4.47.1. Optional AwqConfig fused modules (Llama/Mistral out of the box; fuse_max_seq_len + do_fuse) roughly double decode tok/s vs unfused on TheBloke/Mistral-7B-OpenOrca-AWQ at batch=1 (e.g. 32/32: 80.3 vs 38.5 tok/s, 4.00 vs 4.50 GB). ExLlamaV2 via version=exllama (AMD GPUs supported). Cannot combine fused modules with FlashAttention2. Method paper is Lin et al. AWQ (arXiv 2306.00978, MLSys 2024).
- Venue
- Hugging Face Transformers docs
- Source
- huggingface
- Access
- free
- Language
- en
- Purpose
- Show how to load and run autoawq/llm-awq 4-bit models in Transformers, including fused modules and ExLlamaV2 kernels
- Scale
- Docs benchmark TheBloke/Mistral-7B-OpenOrca-AWQ batch=1, prefill/decode 32-2048; fused VRAM 4.00-5.57 GB vs unfused 4.50-5.73 GB.
- Time period
- Docs on Transformers main (requires source install at check; stable v5.14.0 listed). AWQ paper 2023-06-01 / MLSys 2024. Discord posted 2024-11-05.
- Added
- Aug 14, 2026
- Verified
- Aug 14, 2026
- Research status
- done
- Found via
- #random-papers
Tags
Topics
LLM quantization, inference
Research notes
- Primary: Hugging Face Transformers AWQ docs (posted link). Underlying method paper https://arxiv.org/abs/2306.00978 (Lin, Tang, Tang, Yang, Chen, Wang, Xiao, Dang, Gan, Han; MIT Han Lab; github.com/mit-han-lab/llm-awq). Libraries: autoawq, llm-awq, optimum-intel. Example checkpoints TheBloke/zephyr-7B-alpha-AWQ and TheBloke/Mistral-7B-OpenOrca-AWQ. Demo notebook linked from the page. Documentation, not a new corpus, so no datasets_local row.
Similar entries
- Paper Disaggregated Quantization: Specializing LLM Prefill and Decode
- Paper Natural Language Autoencoders Produce Unsupervised Explanations of LLM Activations
- Paper BitNet a4.8: 4-bit Activations for 1-bit LLMs
- Paper A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training
- Paper FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference
- Paper SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration