paper-with-me

Papers

EasyQuant: An Efficient Data-free Quantization Algorithm for LLMs

2024-03-05 · Hanlin Tang, Yifu Sun, Decheng Wu, Kai Liu, Jianchen Zhu, Zhanhui Kang

Large language models (LLMs) have proven to be very superior to conventional methods in various tasks. However, their expensive computations and high memory requirements are prohibitive for deployment. Model quantization is an effective method for reducing this overhead. The problem is that in most previous works, the quantized model was calibrated using few samples from the training data, which might affect the generalization of the quantized LLMs to unknown cases and tasks. Hence in this work, we explore an important question: Can we design a data-independent quantization method for LLMs to guarantee its generalization performance? In this work, we propose EasyQuant, a training-free and data-independent weight-only quantization algorithm for LLMs. Our observation indicates that two factors: outliers in the weight and quantization ranges, are essential for reducing the quantization error. Therefore, in EasyQuant, we leave the outliers (less than 1%) unchanged and optimize the quantization range to reduce the reconstruction error. With these methods, we surprisingly find that EasyQuant achieves comparable performance to the original model. Since EasyQuant does not depend on any training data, the generalization performance of quantized LLMs is safely guaranteed. Moreover, EasyQuant can be implemented in parallel so that the quantized model could be attained in a few minutes even for LLMs over 100B. To our best knowledge, we are the first work that achieves almost lossless quantization performance for LLMs under a data-independent setting and our algorithm runs over 10 times faster than the data-dependent methods.

📄 PDF Abstract BibTeX arXiv:2403.02775

Code (0)

등록된 구현이 없습니다.

Tasks

Data Free QuantizationQuantization

Similar Papers 제목 키워드 기반

LLMEasyQuant: Scalable Quantization for Parallel and Distributed LLM Inference

2024-06-28 · Dong Liu, Yanxuan Yu

As large language models (LLMs) grow in size and deployment scale, quantization has become an essential technique for reducing memory footprint and improving inference efficiency. However, existing quantization toolkits …

GPUQuantization

EasyQuant: Post-training Quantization via Scale Optimization

2020-06-30 · Di Wu, Qi Tang, Yongle Zhao, Ming Zhang 외

The 8 bits quantization has been widely applied to accelerate network inference in various deep learning applications. There are two kinds of quantization methods, training-based quantization and post-training quantizati…

Quantization

Q-HyViT: Post-Training Quantization of Hybrid Vision Transformers with Bridge Block Reconstruction for IoT Systems

2023-03-22 · Jemin Lee, Yongin Kwon, Sihyeong Park, Misun Yu 외

Recently, vision transformers (ViTs) have superseded convolutional neural networks in numerous applications, including classification, detection, and segmentation. However, the high computational requirements of ViTs hin…

Quantization

FreeAct: Freeing Activations for LLM Quantization

2026-03-02 · Xiaohao Liu, Xiaobo Xia, Manyi Zhang, Ji-Fu Li 외 arxiv

Quantization is pivotal for mitigating the significant memory and computational overhead of Large Language Models (LLMs). While emerging transformation-based methods have successfully enhanced quantization by projecting …

Attention-aware Post-training Quantization without Backpropagation

2024-06-19 · Junhan Kim, Ho-young Kim, Eulrang Cho, Chungman Lee 외

Quantization is a promising solution for deploying large-scale language models (LLMs) on resource-constrained devices. Existing quantization approaches, however, rely on gradient-based optimization, regardless of it bein…

Quantization