ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
67
Citations
4
Influential Citations
ACM Transactions on Internet of Things
Venue
2025
Year
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 4 GB 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.
Deploying Large Language Models (LLMs) on edge devices is a growing necessity as AI moves toward on-device processing for privacy, latency, and connectivity reasons. However, the computational and memory demands of LLMs pose significant challenges, particularly in resource-constrained environments. This paper addresses a critical gap by systematically evaluating the energy efficiency, accuracy, and latency of quantized LLMs on a real edge device—the Raspberry Pi 4. While prior work has focused on model compression or performance benchmarks, few studies integrate hardware-level energy profiling with LLM benchmarking to provide a holistic view of sustainability.
The significance of this work lies in its practical focus. By using the Ollama library, which applies default Post-Training Quantization (PTQ) and weight-only quantization, the study reflects a realistic deployment scenario for many developers. The inclusion of five diverse datasets (CommonsenseQA, BIG-Bench Hard, TruthfulQA, GSM8K, and HumanEval) ensures that the evaluation covers reasoning, knowledge, math, and code generation tasks, making the findings broadly applicable. This paper is a valuable resource for AI practitioners seeking to deploy LLMs on edge devices while balancing performance and energy consumption.
The paper makes several key technical contributions:
The study reveals clear trade-offs between energy efficiency, inference speed, and accuracy. Lower quantization levels (e.g., 4-bit) generally reduce energy consumption and latency but may degrade accuracy, especially on complex reasoning tasks like GSM8K and HumanEval. Conversely, higher quantization levels (e.g., 8-bit) preserve accuracy but increase energy and latency. The optimal configuration depends on the task: for simple knowledge-based tasks, aggressive quantization is acceptable, while for code generation or math reasoning, higher precision is necessary. The hardware-based energy measurements provide concrete data on power consumption, enabling developers to estimate battery life and operational costs.
This paper contributes to the growing field of sustainable AI by providing empirical evidence on how to deploy LLMs efficiently on edge devices. The findings can guide developers in selecting the right quantization settings for their specific use cases, reducing the carbon footprint of AI inference. Moreover, the methodology—combining hardware energy profiling with LLM benchmarking—sets a precedent for future studies. As edge AI becomes more prevalent, this work will help bridge the gap between AI capability and environmental sustainability, making it a valuable reference for both researchers and practitioners.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba