Post-training quantization (PTQ) has emerged as a promising technique to reduce the cost of large language models (LLMs). Specifically, PTQ can effectively mitigate memory consumption and reduce computational overhead in LLMs. To meet the requirements of both high efficiency and performance across diverse scenarios, a comprehensive evaluation of quantized LLMs is essential to guide the selection of quantization methods. This paper presents a thorough evaluation of these factors by evaluating the effect of PTQ on Weight, Activation, and KV Cache on 11 model families, including OPT, LLaMA2, Falcon, Bloomz, Mistral, ChatGLM, Vicuna, LongChat, StableLM, Gemma, and Mamba, with parameters ranging from 125M to 180B. The evaluation encompasses five types of tasks: basic NLP, emergent ability, trustworthiness, dialogue, and long-context tasks. Moreover, we also evaluate the state-of-the-art (SOTA) quantization methods to demonstrate their applicability. Based on the extensive experiments, we systematically summarize the effect of quantization, provide recommendations to apply quantization techniques, and point out future directions. The code can be found in https://github.com/thu-nics/qllm-eval.
Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latency
SINTEF(辛泰夫(挪威研究机构));Singapore Management University(新加坡管理大学);Oslo Metropolitan University(奥斯陆城市大学);Kristiania University of Applied Sciences(克里斯蒂安尼亚应用科技大学)
本研究在Raspberry Pi 4上评估了28个量化LLM在能效、推理性能和准确率上的权衡,通过硬件级能耗分析与多数据集基准测试,为资源受限环境下的可持续LLM部署提供了可操作的见解。
Quantized Large Language Models in Biomedical Natural Language Processing: Evaluation and Recommendation
Department of Electrical and Computer Engineering, University of Minnesota, Minneapolis, MN, USA(电气与计算机工程系,明尼苏达大学,明尼阿波利斯,MN,美国);Division of Computational Health Sciences, Department of Surgery, University of Minnesota, Minneapolis, MN, USA(计算健康科学 division,外科系,明尼苏达大学,明尼阿波利斯,MN,美国);School of Nursing, University of Minnesota, Minneapolis, MN, USA(护理学院,明尼苏达大学,明尼阿波利斯,MN,美国)
A Survey of Quantized Graph Representation Learning: Connecting Graph Structures with Large Language Models
National University of Singapore(新加坡国立大学);Xi’an Jiaotong University(西安交通大学);University of Southern Queensland(南方昆士兰大学);Nanyang Technological University(南洋理工大学)
Vision-Language and Large Language Model Performance in Gastroenterology: GPT, Claude, Llama, Phi, Mistral, Gemma, and Quantized Models
Icahn School of Medicine at Mount Sinai(西奈山伊坎医学院);University of Texas Health(德克萨斯大学健康科学中心);Virginia Hospital Center(弗吉尼亚医院中心);Shahid Beheshti University of Medical Sciences(沙希德·贝赫什提医科大学);Stanford University(斯坦福大学);Cedars-Sinai Medical Center(西达赛奈医疗中心);Inova Fairfax Medical Campus(伊诺瓦费尔法克斯医疗中心);University of California–Los Angeles(加州大学洛杉矶分校);NYU Grossman School of Medicine(纽约大学格罗斯曼医学院);Columbia University(哥伦比亚大学)
Q-resafe: Assessing Safety Risks and Quantization-aware Safety Patching for Quantized Large Language Models
The State Key Laboratory of Blockchain and Data Security, Zhejiang University(区块链与数据安全国家重点实验室,浙江大学);Sun Yat-sen University(中山大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术区(滨江)区块链与数据安全研究院)
EmotionQueen: A Benchmark for Evaluating Empathy of Large Language Models
Fudan University(复旦大学);School of Computer Science, Fudan University(复旦大学计算机科学学院);Beijing Yuandian Technology(北京原点科技);School of Engineering and Applied Science, University of Pennsylvania(宾夕法尼亚大学工程与应用科学学院)
FarsEval-PKBETS: A new diverse benchmark for evaluating Persian large language models
Shahid Beheshti University(沙希德·贝赫什提大学);Amirkabir University of Technology(阿米尔卡比尔理工大学);Qom University(库姆大学);Islamic Azad University(伊斯兰阿扎德大学);Sharif University of Technology(谢里夫理工大学)
LQA: A Lightweight Quantized-Adaptive Framework for Vision-Language Models on the Edge
School of Computing(计算机学院);Information Systems, University of Melbourne, Melbourne, Australia(信息系统学院,墨尔本大学,澳大利亚墨尔本);Faculty of Science, Auckland, New Zealand(科学学院,新西兰奥克兰);School of Computing, University of Macquarie, Sydney, Australia(计算机学院,麦考瑞大学,澳大利亚悉尼)
Self-Reported Confidence of Large Language Models in Gastroenterology: Analysis of Commercial, Open-Source, and Quantized Models
Icahn School of Medicine at Mount Sinai(西奈山伊坎医学院);The Charles Bronfman Institute of Personalized Medicine, Icahn School of Medicine at Mount Sinai(西奈山伊坎医学院查尔斯·布朗夫曼个性化医学研究所);University of Pennsylvania(宾夕法尼亚大学);Ontario Tech University(安大略理工大学)
Task-Stratified Knowledge Scaling Laws for Post-Training Quantized Large Language Models
School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences(中国科学院大学先进交叉学科学院);The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所认知与决策智能复杂系统重点实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);College of Computer Science, Inner Mongolia University(内蒙古大学计算机学院)