Using edge computing and Large Language Models (LLM) for constructing a local agent
DOI:
https://doi.org/10.33795/eltek.v24i2.11288Keywords:
Edge Computing, Large Language Model, QuantizationAbstract
The growing demand for artificial intelligence systems that are responsive, privacy-preserving, and capable of operating autonomously is driving the adoption of Large Language Models (LLMs) on edge devices. However, deploying LLMs as the core of agents on devices with limited resources still faces computational and memory constraints. This research develops an LLM-based local agent architecture that runs locally on a Raspberry Pi without relying on cloud services. The system integrates local LLM inference with agentic functions, including intent processing, reasoning, tool invocation, and interaction with hardware via GPIO. Several quantized Small Language Models (SLMs) were evaluated on a Raspberry Pi 5 with 16 GB of RAM using CPU-based inference. The evaluation included total latency, Time to First Token (TTFT), token generation rate, peak RAM usage, peak CPU utilization, and peak temperature. The results showed significant performance differences among the models. Qwen 2.5 0.5B Q3 produced the lowest total latency of 23.9 seconds, the lowest TTFT of 269.0 ms, and the highest generation rate of 12.1 tokens/s. However, the results indicate that inference speed alone is not sufficient to determine the most suitable model as the core of a local agent. Most models reached peak CPU utilization above 95%, while RAM usage and thermal characteristics varied across configurations. Based on a combination of inference performance and resource usage, models in the 1B–1.7B range specifically LLaMA 3.2 1B Q4, Qwen 2.5 1.5B Q4, and SmolLM 1.7B Q4 show potential as a balanced set of candidates between responsiveness and model capacity. The research results demonstrate the feasibility of deploying LLMs as local agents on low-cost edge devices and provide a basis for selecting models based on a balance between inference efficiency, resource constraints, and agentic capabilities.
References
Y. Zheng, Y. Chen, B. I. N. Qian, X. Shi, Y. Shu, and J. Chen, “A Review on Edge Large Language Models : Design , Execution , and Applications,” ACM Comput. Surv., vol. 57, no. 8, 2025, doi: 10.1145/3719664.
Y. Qiao et al., “An Effective Data Privacy Protection Algorithm Based on Differential Privacy in Edge Computing,” IEEE Access, vol. 7, pp. 136203–136213, 2019, doi: 10.1109/ACCESS.2019.2939015.
O. T. Modupe et al., “REVIEWING THE TRANSFORMATIONAL IMPACT OF EDGE COMPUTING ON REAL-TIME DATA PROCESSING AND ANALYTICS,” Comput. Sci. IT Res. Journal, 5(3), pp. 693–702, 2024, vol. 5, no. 3, pp. 693–702, 2024, doi: 10.51594/csitrj.v5i3.929.
A. Bandi, B. Kongari, R. Naguru, S. Pasnoor, and S. V. Vilipala, “The Rise of Agentic AI : A Review of Definitions , Frameworks , Architectures , Applications , Evaluation Metrics , and Challenges,” vol. 17, no. 9, pp. 1–50, 2025, doi: 10.3390/fi17090404.
D. B. Acharya, K. Kuppan, and B. Divya, “Agentic AI : Autonomous Intelligence for Complex Goals — A Comprehensive Survey,” IEEE Access, vol. 13, no. January, pp. 18912–18936, 2025, doi: 10.1109/ACCESS.2025.3532853.
M. A. Ali, F. Dornaika, and J. Charafeddine, “Agentic AI : a comprehensive survey of architectures , applications , and future directions,” Artif. Intell. Rev., vol. 59, 2026, doi: 10.1007/s10462-025-11422-4.
Y. Sun et al., “IGAA : Intent-Driven General Agentic AI for Edge Services Scheduling using Generative Meta Learning,” vol. 14, no. 8, pp. 1–17, 2026.
M. Huang et al., “EdgeLLM : A Highly Efficient CPU-FPGA Heterogeneous Edge Accelerator for Large Language Models,” J. IEEE Trans. Circuits Syst. I Regul. Pap., vol. 72, 2025, doi: 10.1109/TCSI.2025.354625.
H. Matsutani, N. Matsuda, and N. Sugiura, “Accelerating Local LLMs on Resource-Constrained Edge Devices via Distributed Prompt Caching,” Conf. EuroMLSys 2026, pp. 232–237., pp. 232–237, 2026, doi: 10.1145/3805621.3807647.
T. Nguyen and T. Nguyen, “An Evaluation of LLMs Inference on Popular Single-board Computers,” 2024.
F. Hidalgo-castelo, A. Guerrero-gonzález, F. García-córdova, F. Lloret-abrisqueta, and A. Piñera-marín, “Local LLMs for Industrial Supervision and Control : An Edge AI Event-Driven Architecture for Proactive Operational Context Management in Real Industrial Environments,” Electronics, vol. 15, 2026, doi: 10.3390/electronics15122547.
E. J. Husom et al., Sustainable LLM Inference for Edge AI : Evaluating Quantized LLMs for Energy Efficiency , Output Accuracy , and Inference Latency, vol. 6, no. 4. 2025. doi: 10.1145/3767742.
A. Ardakani, J. Malekar, and R. Zand, PiCASO : A Real-time Pi-Integrated Conversational AI System with Optimized LLMs, vol. 1, no. 1. Association for Computing Machinery. doi: 10.1145/3787109.3815259.
L. L. Zappia, M. Lattuada, M. Bianchessi, and D. Pietro Pau, “Heterogeneous Low-Power Agentic Architecture for Edge Distributed Home Surveillance,” Electron. vol. 15, no. 14, Artic. 3175, 2026, pp. 1–72, 2026, doi: 10.3390/electronics15143175.
R. Marcus and M. Gehards, “Toward a Modular Architecture for Embedded Agent Systems at the Edge”.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Setya Widyawan Prakosa, Naufal Ainur Rizal, Tias Kurniati

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




