paper-with-me

홈 › Papers

SmoothQuant+: Accurate and Efficient 4-bit Post-Training WeightQuantization for LLM

2023-12-06 · Jiayi Pan, Chengcan Wang, Kaifu Zheng, Yangguang Li, Zhenyu Wang, Bin Feng

Large language models (LLMs) have shown remarkable capabilities in various tasks. However their huge model size and the consequent demand for computational and memory resources also pose challenges to model deployment. Currently, 4-bit post-training quantization (PTQ) has achieved some success in LLMs, reducing the memory footprint by approximately 75% compared to FP16 models, albeit with some accuracy loss. In this paper, we propose SmoothQuant+, an accurate and efficient 4-bit weight-only PTQ that requires no additional training, which enables lossless in accuracy for LLMs for the first time. Based on the fact that the loss of weight quantization is amplified by the activation outliers, SmoothQuant+ smoothes the activation outliers by channel before quantization, while adjusting the corresponding weights for mathematical equivalence, and then performs group-wise 4-bit weight quantization for linear layers. We have integrated SmoothQuant+ into the vLLM framework, an advanced high-throughput inference engine specially developed for LLMs, and equipped it with an efficient W4A16 CUDA kernels, so that vLLM can seamlessly support SmoothQuant+ 4-bit weight quantization. Our results show that, with SmoothQuant+, the Code Llama-34B model can be quantized and deployed on a A100 40GB GPU, achieving lossless accuracy and a throughput increase of 1.9 to 4.0 times compared to the FP16 model deployed on two A100 40GB GPUs. Moreover, the latency per token is only 68% of the FP16 model deployed on two A100 40GB GPUs. This is the state-of-the-art 4-bit weight quantization for LLMs as we know.

📄 PDF Abstract BibTeX arXiv:2312.03788

Code (2)

adlik/smoothquantplus 공식 구현 pytorch
adlik/vllm 공식 구현 pytorch

Tasks

GPUQuantization

Similar Papers 제목 키워드 기반

SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models

2022-11-18 · Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu 외

Large language models (LLMs) show excellent performance but are compute- and memory-intensive. Quantization can reduce memory and accelerate inference. However, existing methods cannot maintain accuracy and hardware effi…

Quantization

An Empirical Study of OpenPangu Quantization on Ascend NPUs

2026-06-19 · Tong Shi, Jiacheng Wang, Hui Xie, Ying Li 외 arxiv

OpenPangu models are attractive targets for private and domestic large-language-model deployment, yet their robustness under aggressive post-training quantization on Ascend NPUs has not been systematically characterized.…

KroQuant: Kronecker-Structured Block Transforms for Efficient Post-Training Quantization of Diffusion Transformers

2026-07-23 · Yann Bouquet, Alireza Khodamoradi, Kristof Denolf, Mathieu Salzmann arxiv

Post-training quantization (PTQ) of diffusion transformers (DiTs) to W4A4 severely degrades output quality, because activations entering each linear layer contain outliers that 4-bit formats cannot represent. The standar…

Post Training Quantization of Large Language Models with Microscaling Formats

2024-05-12 · Sayeh Sharify, Utkarsh Saxena, Zifei Xu, Wanzin Yazar 외

Large Language Models (LLMs) have distinguished themselves with outstanding performance in complex language modeling tasks, yet they come with significant computational and storage challenges. This paper explores the pot…

Language ModelingLanguage ModellingQuantization

MPTQ-ViT: Mixed-Precision Post-Training Quantization for Vision Transformer

2024-01-26 · Yu-Shan Tai, An-Yeu, Wu

While vision transformers (ViTs) have shown great potential in computer vision tasks, their intense computation and memory requirements pose challenges for practical applications. Existing post-training quantization meth…

Quantization