arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.07425cs.DCcs.AI
收藏

流行单板计算机上大语言模型推理的评估

An Evaluation of LLMs Inference on Popular Single-board Computers

BillulloNex;University of Technology Sydney(悉尼技术大学)

Tung, Nguyen, Tuyen Nguyen

AI总结:

本研究针对设备端LLM推理需求,在三款流行单板计算机上用两种运行时对25个量化开源LLM做基准测试,发现SBC可支持1.5B参数模型,Llamafile性能更优,首次填补了该领域评估空白并提供部署建议。

摘要:

对设备端大语言模型(LLM)推理日益增长的需求,正推动人们对在边缘硬件上部署轻量级、高性价比AI解决方案的兴趣。树莓派(Raspberry Pi)和香橙派(Orange Pi)等单板计算机(SBCs)为本地化、隐私保护的推理提供了有前景的平台,但在LLM工作负载背景下仍未被充分探索。本研究使用Ollama和Llamafile两种推理运行时,在树莓派4、树莓派5和香橙派5 Pro三款SBC上对25个量化开源LLM的性能进行基准测试。我们在不同CPU配置下评估生成吞吐量、内存使用和功耗,并使用多种提示类型模拟真实工作负载。结果显示,SBC可可靠支持参数达1.5B的模型,Llamafile的吞吐量比Ollama高4倍,功耗低30-40%。我们识别了架构特定瓶颈,强调了运行时层面的权衡,并提供了实用部署建议。本研究首次对SBC上的LLM推理进行广泛评估,弥合了高性能语言模型与经济实惠边缘计算之间的差距。

英文摘要:

The growing demand for on-device large language model (LLM) inference is driving interest in deploying lightweight, cost-effective AI solutions on edge hardware. Single-board computers (SBCs) such as the Raspberry Pi and Orange Pi offer a promising platform for localized, privacy-preserving inference-but remain underexplored in the context of LLM workloads. In this work, we benchmark the performance of 25 quantized open-source LLMs across three SBCs-Raspberry Pi 4, Raspberry Pi 5, and Orange Pi 5 Pro-using two inference runtimes: Ollama and Llamafile. We evaluate generation throughput, memory usage, and power consumption under varying CPU configurations, using multiple prompt types to simulate realistic workloads. Our results show that SBCs can reliably support models up to 1.5B parameters, with Llamafile achieving up to 4x higher throughput and 30-40% lower power usage than Ollama. We identify architecture-specific bottlenecks, highlight runtime-level trade-offs, and provide practical deployment recommendations. This study offers the first broad evaluation of LLM inference on SBCs, bridging the gap between high-performance language models and affordable edge computing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑