Camel:资源受限设备上的能量感知LLM推理
Camel: Energy-Aware LLM Inference on Resource-Constrained Devices
AI总结:
针对边缘设备上LLM推理中能耗与延迟的平衡问题,提出能量管理框架Camel,通过优化GPU频率和批处理大小,在NVIDIA Jetson AGX Orin平台上实现EDP降低12.4%-29.9%。
摘要:
大多数大型语言模型(LLMs)目前部署在云端,用户依赖互联网连接进行访问。然而,这种范式面临网络延迟、隐私问题和带宽限制等挑战。因此,在边缘设备上部署LLMs已成为重要的研究焦点。在边缘推理中,请求延迟至关重要,因为高延迟会损害实时任务。同时,边缘设备通常电池容量有限,使能耗成为另一个主要问题。平衡能耗和推理延迟至关重要。为此,我们提出一种LLM推理能量管理框架,通过优化GPU频率和批处理大小来平衡延迟和能耗。通过有效管理配置搜索中的探索-利用困境,该框架找到最优设置。该框架在NVIDIA Jetson AGX Orin平台上实现,并进行了一系列实验验证。结果表明,与默认配置相比,我们的框架将能量延迟积(EDP)降低12.4%-29.9%,在能耗和延迟之间实现更好平衡。
英文摘要:
Most Large Language Models (LLMs) are currently deployed in the cloud, with users relying on internet connectivity for access. However, this paradigm faces challenges such as network latency, privacy concerns, and bandwidth limits. Thus, deploying LLMs on edge devices has become an important research focus. In edge inference, request latency is critical as high latency can impair real-time tasks. At the same time, edge devices usually have limited battery capacity, making energy consumption another major concern. Balancing energy consumption and inference latency is essential. To address this, we propose an LLM inference energy management framework that optimizes GPU frequency and batch size to balance latency and energy consumption. By effectively managing the exploration-exploitation dilemma in configuration search, the framework finds the optimal settings. The framework was implemented on the NVIDIA Jetson AGX Orin platform, and a series of experimental validations were conducted. Results demonstrate that, compared to the default configuration, our framework reduces energy delay product (EDP) by 12.4%-29.9%, achieving a better balance between energy consumption and latency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。