ELANA: 一种用于大语言模型的简单能耗和延迟分析工具
ELANA: A Simple Energy and Latency Analyzer for LLMs
AI总结:
ELANA是一种用于分析大语言模型能耗和延迟的开源工具,支持多种硬件平台和模型,适用于高效LLMs的研究和实验。
摘要:
大语言模型(LLMs)的延迟和功耗在跨广泛硬件平台(从移动边缘设备到云GPU集群)进行服务时是主要制约因素。基准测试对于优化模型部署和下一代模型开发的效率至关重要。为了解决这一需求,我们开源了一个简单的分析工具ELANA,用于评估LLMs。ELANA被设计为一个轻量级、适合学术研究的分析工具,用于分析LLMs的模型大小、关键值(KV)缓存大小、预填充延迟(时间到第一个令牌,TTFT)、生成延迟(每个输出令牌时间,TPOT)以及端到端延迟(时间到最后一个令牌,TTLT)。它支持多GPU和边缘GPU平台上的LLMs,并支持所有在Hugging Face上公开可用的模型,提供简单的命令行界面,以及可选的能量消耗日志记录。此外,ELANA完全兼容流行的Hugging Face API,并可以轻松定制或适应于压缩或低位宽模型,使其成为高效LLMs研究或小规模概念验证研究的理想工具。我们发布ELANA分析工具的链接为:https://github.com/enyac-group/Elana。
英文摘要:
The latency and power consumption of large language models (LLMs) are major constraints when serving them across a wide spectrum of hardware platforms, from mobile edge devices to cloud GPU clusters. Benchmarking is crucial for optimizing efficiency in both model deployment and next-generation model development. To address this need, we open-source a simple profiling tool, \textbf{ELANA}, for evaluating LLMs. ELANA is designed as a lightweight, academic-friendly profiler for analyzing model size, key-value (KV) cache size, prefilling latency (Time-to-first-token, TTFT), generation latency (Time-per-output-token, TPOT), and end-to-end latency (Time-to-last-token, TTLT) of LLMs on both multi-GPU and edge GPU platforms. It supports all publicly available models on Hugging Face and offers a simple command-line interface, along with optional energy consumption logging. Moreover, ELANA is fully compatible with popular Hugging Face APIs and can be easily customized or adapted to compressed or low bit-width models, making it ideal for research on efficient LLMs or for small-scale proof-of-concept studies. We release the ELANA profiling tool at: https://github.com/enyac-group/Elana.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。