评估28个量化模型在边缘设备上的能耗、速度与准确率平衡。
Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latency
- 基于树莓派4测试28个量化LLM,采用后训练量化和权重量化。
- 发现不同量化级别下能耗、速度与准确率存在显著权衡关系。
- 适合关注边缘AI可持续部署的研究者与开发者参考。
在边缘设备上部署大语言模型面临计算资源、内存、推理速度和能耗的挑战。模型量化已成为降低模型规模与计算开销的关键技术。本研究对来自Ollama库的28个量化LLM进行了全面分析,其默认采用后训练量化(PTQ)与权重量化技术,并部署于树莓派4(4GB RAM)边缘设备。在五项标准数据集(CommonsenseQA、BIG-Bench Hard、TruthfulQA、GSM8K、HumanEval)上评估了不同量化级别下的能量效率、推理性能与输出准确性。使用高分辨率硬件级能效测量工具获取真实功耗数据。结果揭示了在不同量化配置下,能耗、推理速度与准确率之间的权衡关系,识别出适用于资源受限环境的优化配置。通过结合硬件能效分析与模型基准测试,本研究为可持续人工智能提供了可操作的洞见,填补了现有能源感知型LLM部署研究的空白。
原文摘要 · Abstract (English)
Deploying Large Language Models (LLMs) on edge devices presents significant challenges due to computational constraints, memory limitations, inference speed, and energy consumption. Model quantization has emerged as a key technique to enable efficient LLM inference by reducing model size and computational overhead. In this study, we conduct a comprehensive analysis of 28 quantized LLMs from the Ollama library, which applies by default Post-Training Quantization (PTQ) and weight-only quantization techniques, deployed on an edge device (Raspberry Pi 4 with 4GB RAM). We evaluate energy efficiency, inference performance, and output accuracy across multiple quantization levels and task types. Models are benchmarked on five standardized datasets (CommonsenseQA, BIG-Bench Hard, TruthfulQA, GSM8K, and HumanEval), and we employ a high-resolution, hardware-based energy measurement tool to capture real-world power consumption. Our findings reveal the trade-offs between energy efficiency, inference speed, and accuracy in different quantization settings, highlighting configurations that optimize LLM deployment for resource-constrained environments. By integrating hardware-level energy profiling with LLM benchmarking, this study provides actionable insights for sustainable AI, bridging a critical gap in existing research on energy-aware LLM deployment.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。