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

Ruihao Gong, Yang Yong, Shiqiao Gu, Yushi Huang, Chengtao Lv +3 more
5/9/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: ModelTC/LightCompress (735 stars, Apache-2.0, last commit 2026-04-01).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[EMNLP 2024 & AAAI 2026] A powerful toolkit for compressing large models including LLMs, VLMs, and video generative models.

73578Shell, PythonMar 6, 20246 months agoApache-2.0
awqbenchmarkdeepseek-v3deploymentevaluation+13 more

Similar Papers

Cite this paper

@article{gong2024llmc,
  title  = {LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkit},
  author = {Ruihao Gong and Yang Yong and Shiqiao Gu and Yushi Huang and Chengtao Lv and Yunchen Zhang and Xianglong Liu and Dacheng Tao},
  year   = {2024},
  eprint = {2405.06001},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.06001v3}
}

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/2405.06001.svg)](https://codeofpaper.com/paper/2405.06001)

Discussion