OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models

Wenqi Shao, Mengzhao Chen, Zhaoyang Zhang, Peng Xu, Lirui Zhao +5 more
2/12/2026

No official code found. Best implementation: OpenGVLab/OmniQuant (905 stars, MIT, last commit 2025-11-26).

Abstract

Large language models (LLMs) have revolutionized natural language processing tasks. However, their practical deployment is hindered by their immense memory and computation requirements. Although recent post-training quantization (PTQ) methods are effective in reducing memory footprint and improving the computational efficiency of LLM, they hand-craft quantization parameters, leading to low performance, especially in extremely low-bit quantization. To tackle this issue, we introduce an Omnidirectionally calibrated Quantization (\textbf{OmniQuant}) technique for LLMs, which achieves good performance in diverse quantization settings while maintaining the computational efficiency of PTQ by efficiently optimizing various quantization parameters. OmniQuant comprises two innovative components including Learnable Weight Clipping (LWC) and Learnable Equivalent Transformation (LET). LWC modulates the extreme values of weights by optimizing the clipping threshold. Meanwhile, LET tackles activation outliers by shifting the challenge of quantization from activations to weights. Operating within a differentiable framework using block-wise error minimization, OmniQuant can optimize the quantization process efficiently for both weight-only and weight-activation quantization. For instance, the LLaMA-2 model family size 7-70B can be processed with OmniQuant on a single A100-40G GPU within 1-16 hours using 128 samples. Extensive experiments validate OmniQuant's superior performance across diverse quantization configurations such as W4A4 (4-bit weight, 4-bit activation), W6A6, W4A16, W3A16, and W2A16. Additionally, OmniQuant demonstrates effectiveness in instruction-tuned models and delivers notable improvements in inference speed and memory reduction on real devices. Codes are available at \url{https://github.com/OpenGVLab/OmniQuant}.

View on arXivView PDF

Code Implementations(1)

OpenGVLab/OmniQuantCommunity100%
MIT

[ICLR2024 spotlight] OmniQuant is a simple and powerful quantization technique for LLMs.

90584Shell, PythonAug 22, 202310 months agoMIT
large-language-modelsllmquantization

Similar Papers

Cite this paper

@article{shao2026omniquant,
  title  = {OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models},
  author = {Wenqi Shao and Mengzhao Chen and Zhaoyang Zhang and Peng Xu and Lirui Zhao and Zhiqiang Li and Kaipeng Zhang and Peng Gao and Y. Qiao and Ping Luo},
  year   = {2026},
  eprint = {2308.13137},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.13137},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.13137.svg)](https://codeofpaper.com/paper/2308.13137)

Discussion