Reproduce “AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang and 2 more

AWQ compresses large language models by scaling channels with high activation magnitudes, while TinyChat uses fused kernels and device-aware packing to turn smaller weights into faster inference. The authors report Llama-2-13B running at 33 tokens per second on an RTX 4070 laptop GPU, where Hugging Face FP16 cannot fit even the 7B model; this measures throughput, not matched-model speedup.

Key insights

  • The importance of individual weight channels for LLM performance is more accurately predicted by the magnitude of their corresponding input activations rather than the weight magnitudes themselves.
  • An equivalent transformation that scales up salient weight channels before quantization and inversely scales inputs allows for accuracy preservation without requiring complex mixed-precision hardware support.
  • Maximizing on-device LLM performance from low-bit quantization requires a comprehensive approach, combining an accuracy-retaining quantization algorithm with a highly optimized inference system that minimizes memory access and computational overheads.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.