Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

MixLLM: LLM Quantization with Global Mixed-precision between Output-features and Highly-efficient System Design

About

Quantization has become one of the most effective methodologies to compress LLMs into smaller size. However, the existing quantization solutions still show limitations of either non-negligible accuracy drop or low system efficiency. In this paper, we propose MixLLM that explores the optimization space of mixed-precision quantization between output features, based on the insight that different features matter differently in the model. MixLLM identifies the important output features in the global view rather than within each single layer, effectively assigning larger bit-width to output features that need it the most to achieve high accuracy and low memory usage. We present the sweet spot of quantization configuration of algorithm-system co-design with high accuracy and system efficiency. To address the system challenge, we design the two-step dequantization to make use of the Tensor Core easily and fast data type conversion to reduce dequantization overhead, and present the software pipeline to overlap the memory access, dequantization and the MatMul to the best. Extensive experiments show that with only 10\% more bits, the perplexity increase can be reduced from about 0.5 in SOTA to within 0.2 for Llama 3.1 70B, while MMLU-Pro loss can be reduced from 1.92 to 0.99 over the SOTA of three popular models. Besides its superior accuracy, MixLLM also achieves state-of-the-art system efficiency. Code is released at https://github.com/microsoft/MixLLM.

Zhen Zheng, Xiaonan Song, Chuanjie Liu• 2024

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
HellaSwag Accuracy80.4
711
Language ModelingWikiText2
Perplexity5.55
277
Logical reasoningBBH
Accuracy54.35
249
PerplexityC4
Perplexity6.68
137
Massive Multitask Language UnderstandingMMLU-Pro
Accuracy (MMLU-Pro)43.8
115
PerplexityWikiText-2
Perplexity2.81
97
Multistep Soft ReasoningMuSR
Accuracy44.91
41
Scientific ReasoningARCc
Accuracy53.67
32
Showing 8 of 8 rows

Other info

Follow for update