KV Cache Group Quantization Based on vLLM Inference Engine
Inference with Large Language Models (LLMs) is a hot topic in the field of Artificial Intelligence. vLLM is an efficient inference engine for LLMs, which solves the memory fragmentation of KV Cache by chunking it and is widely used in large language model service systems by virtue of its efficient memory management mechanism and excellent inference performance. Quantization greatly reduces the memory occupation of parameters by approximating the representation of parameters from high bit-width data to low bit-width data. Quantization is a key technique to accelerate model inference. However, the vLLM inference engine only supports quantization of models, and in addition to the models, the KV Cache in the inference process also occupies a large amount of memory. To address the above problems, we propose a KV Cache group quantization method based on the vLLM inference engine, which reduces the memory consumption in the model inference process by quantizing the KV Cache and optimizes the computation introduced by quantization and dequantization at the same time. We evaluate our method on LLaMA2-7B, LLaMA3-8B, and DeepSeek-R1-Distill-LLaMA3-8B models. Experimental results demonstrate that under concurrent multi-request scenarios, our approach improves inference throughput by up to 18% while maintaining low accuracy loss.
Authors
- Wei Gao (ORCID: https://orcid.org/0000-0003-2257-5684)
- Z Gao (ORCID: https://orcid.org/0000-0002-6255-141X)
- Lin Han (ORCID: https://orcid.org/0000-0002-9962-3245)
- Jingming Xie
- Jianan Li (ORCID: https://orcid.org/0000-0002-0532-0412)
- Chaowei Kong
Institutions
- Zhongyuan University of Technology (CN)
- Zhengzhou University (CN)
- National Supercomputing Center in Wuxi (CN)
Publication Details
- Published
- 2025-06-20
- DOI
- https://doi.org/10.1109/caibda65784.2025.11183354
- Primary Topic
- Advanced Data Compression Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00