评测最新嵌入式设备运行小规模大模型的性能与权衡。
Large Language Models on Small Resource-Constrained Systems: Performance Characterization, Analysis and Trade-offs
- 在Jetson Orin上测试7000万到14亿参数的Pythia模型
- 揭示硬件与软件配置下的推理速度与资源消耗权衡
- 提供可复用的批量测试工具,便于后续边缘部署研究
近年来,生成式AI如大语言模型(LLMs)对普通用户日益普及。公开服务如ChatGPT在联网云服务器上进行令牌生成,消除了终端用户的硬件门槛。然而,这些服务依赖网络连接,存在隐私与安全风险,且某些应用需求也促使模型需在边缘设备本地运行。尽管已有大量针对非联网、资源受限设备的LLM优化研究,但多数聚焦于较旧硬件。本研究旨在为更近期的商用嵌入式硬件提供基准性能表征,并设计一个简易工具,支持在最新Jetson硬件上批量测试LLM。我们聚焦NVIDIA Jetson Orin系列设备,以及参数量在7000万至14亿之间的公开可用LLM(Pythia)。通过在不同软硬件参数下的详尽实验评估,展示多种权衡空间与优化选择。此外,我们的测试结构设计支持未来在Jetson设备上开展批量LLM测试的研究。
原文摘要 · Abstract (English)
Generative AI like the Large Language Models (LLMs) has become more available for the general consumer in recent years. Publicly available services, e.g., ChatGPT, perform token generation on networked cloud server hardware, effectively removing the hardware entry cost for end users. However, the reliance on network access for these services, privacy and security risks involved, and sometimes the needs of the application make it necessary to run LLMs locally on edge devices. A significant amount of research has been done on optimization of LLMs and other transformer-based models on non-networked, resource-constrained devices, but they typically target older hardware. Our research intends to provide a 'baseline' characterization of more recent commercially available embedded hardware for LLMs, and to provide a simple utility to facilitate batch testing LLMs on recent Jetson hardware. We focus on the latest line of NVIDIA Jetson devices (Jetson Orin), and a set of publicly available LLMs (Pythia) ranging between 70 million and 1.4 billion parameters. Through detailed experimental evaluation with varying software and hardware parameters, we showcase trade-off spaces and optimization choices. Additionally, we design our testing structure to facilitate further research that involves performing batch LLM testing on Jetson hardware.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。