GPTQT: Quantize Large Language Models Twice to Push the Efficiency

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guo, Yipin, Lang, Yilin, Ren, Qinyuan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911942873972736
author Guo, Yipin
Lang, Yilin
Ren, Qinyuan
author_facet Guo, Yipin
Lang, Yilin
Ren, Qinyuan
contents Due to their large size, generative Large Language Models (LLMs) require significant computing and storage resources. This paper introduces a new post-training quantization method, GPTQT, to reduce memory usage and enhance processing speed by expressing the weight of LLM in 3bit/2bit. Practice has shown that minimizing the quantization error of weights is ineffective, leading to overfitting. Therefore, GPTQT employs a progressive two-step approach: initially quantizing weights using Linear quantization to a relatively high bit, followed by converting obtained int weight to lower bit binary coding. A re-explore strategy is proposed to optimize initial scaling factor. During inference, these steps are merged into pure binary coding, enabling efficient computation. Testing across various models and datasets confirms GPTQT's effectiveness. Compared to the strong 3-bit quantization baseline, GPTQT further reduces perplexity by 4.01 on opt-66B and increases speed by 1.24 times on opt-30b. The results on Llama2 show that GPTQT is currently the best binary coding quantization method for such kind of LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2407_02891
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle GPTQT: Quantize Large Language Models Twice to Push the Efficiency
Guo, Yipin
Lang, Yilin
Ren, Qinyuan
Machine Learning
Artificial Intelligence
Computation and Language
Due to their large size, generative Large Language Models (LLMs) require significant computing and storage resources. This paper introduces a new post-training quantization method, GPTQT, to reduce memory usage and enhance processing speed by expressing the weight of LLM in 3bit/2bit. Practice has shown that minimizing the quantization error of weights is ineffective, leading to overfitting. Therefore, GPTQT employs a progressive two-step approach: initially quantizing weights using Linear quantization to a relatively high bit, followed by converting obtained int weight to lower bit binary coding. A re-explore strategy is proposed to optimize initial scaling factor. During inference, these steps are merged into pure binary coding, enabling efficient computation. Testing across various models and datasets confirms GPTQT's effectiveness. Compared to the strong 3-bit quantization baseline, GPTQT further reduces perplexity by 4.01 on opt-66B and increases speed by 1.24 times on opt-30b. The results on Llama2 show that GPTQT is currently the best binary coding quantization method for such kind of LLMs.
title GPTQT: Quantize Large Language Models Twice to Push the Efficiency
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2407.02891