LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkit

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Gong, Ruihao, Yong, Yang, Gu, Shiqiao, Huang, Yushi, Lv, Chengtao, Zhang, Yunchen, Liu, Xianglong, Tao, Dacheng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910640084353024
author Gong, Ruihao
Yong, Yang
Gu, Shiqiao
Huang, Yushi
Lv, Chengtao
Zhang, Yunchen
Liu, Xianglong
Tao, Dacheng
author_facet Gong, Ruihao
Yong, Yang
Gu, Shiqiao
Huang, Yushi
Lv, Chengtao
Zhang, Yunchen
Liu, Xianglong
Tao, Dacheng
contents Recent advancements in large language models (LLMs) are propelling us toward artificial general intelligence with their remarkable emergent abilities and reasoning capabilities. However, the substantial computational and memory requirements limit the widespread adoption. Quantization, a key compression technique, can effectively mitigate these demands by compressing and accelerating LLMs, albeit with potential risks to accuracy. Numerous studies have aimed to minimize the accuracy loss associated with quantization. However, their quantization configurations vary from each other and cannot be fairly compared. In this paper, we present LLMC, a plug-and-play compression toolkit, to fairly and systematically explore the impact of quantization. LLMC integrates dozens of algorithms, models, and hardwares, offering high extensibility from integer to floating-point quantization, from LLM to vision-language (VLM) model, from fixed-bit to mixed precision, and from quantization to sparsification. Powered by this versatile toolkit, our benchmark covers three key aspects: calibration data, algorithms (three strategies), and data formats, providing novel insights and detailed analyses for further research and practical guidance for users. Our toolkit is available at https://github.com/ModelTC/llmc.
format Preprint
id arxiv_https___arxiv_org_abs_2405_06001
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkit
Gong, Ruihao
Yong, Yang
Gu, Shiqiao
Huang, Yushi
Lv, Chengtao
Zhang, Yunchen
Liu, Xianglong
Tao, Dacheng
Machine Learning
Artificial Intelligence
Computation and Language
Recent advancements in large language models (LLMs) are propelling us toward artificial general intelligence with their remarkable emergent abilities and reasoning capabilities. However, the substantial computational and memory requirements limit the widespread adoption. Quantization, a key compression technique, can effectively mitigate these demands by compressing and accelerating LLMs, albeit with potential risks to accuracy. Numerous studies have aimed to minimize the accuracy loss associated with quantization. However, their quantization configurations vary from each other and cannot be fairly compared. In this paper, we present LLMC, a plug-and-play compression toolkit, to fairly and systematically explore the impact of quantization. LLMC integrates dozens of algorithms, models, and hardwares, offering high extensibility from integer to floating-point quantization, from LLM to vision-language (VLM) model, from fixed-bit to mixed precision, and from quantization to sparsification. Powered by this versatile toolkit, our benchmark covers three key aspects: calibration data, algorithms (three strategies), and data formats, providing novel insights and detailed analyses for further research and practical guidance for users. Our toolkit is available at https://github.com/ModelTC/llmc.
title LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkit
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2405.06001