Papers › AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration

AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration

1 Jun 2023arXiv:2306.00978archive 2025-07-28

Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, Song Han

Large language models (LLMs) have transformed numerous AI applications. On-device LLM is becoming increasingly important: running LLMs locally on edge devices can reduce the cloud computing cost and protect users' privacy. However, the astronomical model size and the limited hardware resource pose significant deployment challenges. We propose Activation-aware Weight Quantization (AWQ), a hardware-friendly approach for LLM low-bit weight-only quantization. AWQ finds that not all weights in an LLM are equally important. Protecting only 1% salient weights can greatly reduce quantization error. To identify salient weight channels, we should refer to the activation distribution, not weights. To avoid the hardware-inefficient mix-precision quantization, we mathematically derive that scaling up the salient channels can reduce the quantization error. AWQ employs an equivalent transformation to scale the salient weight channels to protect them. The scale is determined by collecting the activation statistics offline. AWQ does not rely on any backpropagation or reconstruction, so it generalizes to different domains and modalities without overfitting the calibration set. AWQ outperforms existing work on various language modeling and domain-specific benchmarks (coding and math). Thanks to better generalization, it achieves excellent quantization performance for instruction-tuned LMs and, for the first time, multi-modal LMs. Alongside AWQ, we implement TinyChat, an efficient and flexible inference framework tailored for 4-bit on-device LLM/VLMs. With kernel fusion and platform-aware weight packing, TinyChat offers more than 3x speedup over the Huggingface FP16 implementation on both desktop and mobile GPUs. It also democratizes the deployment of the 70B Llama-2 model on mobile GPUs.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.00978")

Code

Syntology Ran 12 of 18 code samples harvested from 4 repositories linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 10 ran with no contract checked.

By repository: official repository: 9 samples from 1 repository, 9 ran; community (archive-listed): 1 sample from 1 repository, 1 ran; found in paper text by Syntology: 6 samples from 2 repositories, 0 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

internlm/lmdeploy officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
mit-han-lab/llm-awq officialmentioned in papermentioned on GitHubpytorch report
nvidia/tensorrt-llm officialmentioned in papermentioned on GitHubpytorchNOASSERTION report
vllm-project/vllm officialmentioned in papermentioned on GitHubpytorch report
bentoml/openllm mentioned on GitHubApache-2.0 report
casper-hansen/autoawq mentioned on GitHubpytorchMIT report
efficient-large-model/vila mentioned on GitHubpytorchApache-2.0 report
nvlabs/vila mentioned on GitHubpytorch report
qwenlm/qwen2-vl mentioned on GitHubpytorchApache-2.0 report
rasmith/vllm mentioned on GitHubjaxApache-2.0 report
vectorch-ai/scalellm mentioned on GitHubpytorch report
xvyaward/qeft mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 12 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
10ran
6unverified

Licence: 2 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

check_vl_llm internlm/lmdeploy/lmdeploy/archs.py official repository ran Apache-2.0 (permissive) · 2bf6c00c566b801c · report
compile_response_format internlm/lmdeploy/lmdeploy/_guided_decoding.py official repository ran Apache-2.0 (permissive) · 77ce2711c2f8950d · report
get_text internlm/lmdeploy/lmdeploy/model.py official repository ran fingerprinted Apache-2.0 (permissive) · 7004ae9213140ec9 · report
to_json internlm/lmdeploy/lmdeploy/deepseek_v32_encoding.py official repository ran Apache-2.0 (permissive) · c8ad433b6fe18d53 · report
to_json internlm/lmdeploy/lmdeploy/deepseek_v4_encoding.py official repository ran Apache-2.0 (permissive) · ee1294cf4de7d8c0 · report
tool_calls_from_openai_format internlm/lmdeploy/lmdeploy/deepseek_v32_encoding.py official repository ran Apache-2.0 (permissive) · e9281cecc545ad6f · report
tool_calls_from_openai_format internlm/lmdeploy/lmdeploy/deepseek_v4_encoding.py official repository ran Apache-2.0 (permissive) · 8b8cee237b9dc9d0 · report
tools_from_openai_format internlm/lmdeploy/lmdeploy/deepseek_v32_encoding.py official repository ran Apache-2.0 (permissive) · aa8d2113d1ab432e · report
tools_from_openai_format internlm/lmdeploy/lmdeploy/deepseek_v4_encoding.py official repository ran Apache-2.0 (permissive) · a2584d89f3a50342 · report
Quantizer xvyaward/qeft/qeft/quant.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 5608d56b0c71e653 · report
get_base_tensor_name ggerganov/llama.cpp/convert_lora_to_gguf.py found in paper text by Syntology unverified MIT (permissive) · 2b23d02a693ab3d2 · report
get_model_architecture ggerganov/llama.cpp/conversion/base.py found in paper text by Syntology unverified MIT (permissive) · a160a507db9a1d7a · report
handle_metadata ggerganov/llama.cpp/convert_llama_ggml_to_gguf.py found in paper text by Syntology unverified MIT (permissive) · cc924525c5e81162 · report
load_hparams_from_hf ggerganov/llama.cpp/convert_lora_to_gguf.py found in paper text by Syntology unverified MIT (permissive) · e26587a77ee23aa1 · report
split_str_to_n_bytes ggerganov/llama.cpp/convert_hf_to_gguf.py found in paper text by Syntology unverified MIT (permissive) · 084d06902aa98802 · report
timer turboderp/exllama/example_alt_generator.py found in paper text by Syntology unverified MIT (permissive) · 0339808d73c4cc66 · report
quantize identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · a166c4b79b21b60a · report
quantize_efficient identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 749e1b68c68b3203 · report

Tasks

Autonomous DrivingCloud ComputingCommon Sense ReasoningLanguage ModelingLanguage ModellingMathQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections