# Transformers documentation: AWQ (Activation-aware Weight Quantization)

- **ID:** 609
- **Kind:** other
- **URL:** https://huggingface.co/docs/transformers/main/en/quantization/awq
- **Authors:** Hugging Face
- **Venue:** Hugging Face Transformers docs
- **Source:** huggingface
- **Language:** en
- **Access:** free
- **Tags:** blog, awq, quantization, transformers, autoawq, exllamav2, llm-compression
- **Topics:** LLM quantization, inference
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/609

## 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).

## Attributes

- **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.

## 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

- [Disaggregated Quantization: Specializing LLM Prefill and Decode](https://papers.projxon.ai/entries/829) (paper, #829)
- [Natural Language Autoencoders Produce Unsupervised Explanations of LLM Activations](https://papers.projxon.ai/entries/615) (paper, #615)
- [BitNet a4.8: 4-bit Activations for 1-bit LLMs](https://papers.projxon.ai/entries/556) (paper, #556)
- [A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training](https://papers.projxon.ai/entries/1257) (paper, #1257)
- [FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference](https://papers.projxon.ai/entries/983) (paper, #983)
- [SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration](https://papers.projxon.ai/entries/570) (paper, #570)
