Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
arXiv Machine Learning · 2026/7/30 04:00:00
From Tokens to Watt-hours: Analytical Energy Estimation for LLM Inference on Modern GPUs
AI 中文解读
一种无需直接测量就能估算大语言模型(LLM)推理能耗的新方法出炉了。这项研究来自arXiv,专为英伟达H100类GPU设计,把模型运行时的能耗拆解成计算、数据读取、缓存写入等环节,让开发者像看电费账单一样清楚每个步骤的耗电。
通俗来说,大模型就像一个庞大的“数字工厂”,每次回答你的问题,背后都要进行海量运算和数据搬运,非常费电。过去想知道具体耗了多少电,得靠硬件仪器或平台监控,门槛高又不通用。现在这套方法只用公式和已知参数就能算出耗电量,且能区分“理解你问题”和“生成答案”两个阶段的用电差异,甚至还能分析模型越大、对话越长时,电费会如何变化。
对普通人来说,这意味着未来AI服务的成本会更透明。比如用AI写文章、做翻译或客服,服务商能更好地优化能耗,要么降低你的使用费,要么让手机或云端跑得更久。同时,开发者设计AI产品时也能提前“算电费”,挑选更节能的模型和配置,整个行业的环境足迹有望随之降低。
arXiv:2607.26571v1 Announce Type: new
Abstract: The operational energy consumption of large language model (LLM) inference is becoming an increasingly important component of the environmental footprint of deployed AI systems. However, direct measurement of inference energy often requires hardware telemetry, power instrumentation, or infrastructure-specific monitoring, limiting its applicability in comparative studies, early-stage system design, and sustainability reporting. This report presents an analytically structured, empirically calibrated, GPU-level methodology for estimating LLM inference energy on NVIDIA H100-class accelerators without direct runtime measurement. The proposed estimator combines parameter-scaled transformer FLOP accounting, calibrated memory-traffic factors, and hardware-specific energy coefficients for FP16/BF16 tensor-core computation and high-bandwidth-memory movement. It explicitly separates prompt prefill from autoregressive decoding, enabling energy estimates for input tokens, output tokens, and complete inference requests. The methodology further decomposes total energy into compute, parameter-access, key-value-cache write, and attention-read components, allowing the scaling behavior with model size, context length, and generated-token count to be analyzed. The resulting estimates are not intended to replace physical power measurements; rather, they provide transparent, reproducible, and assumption-explicit approximations suitable for model comparison, green-coding analysis, and design-time evaluation of LLM inference workloads.
分享
阅读原文 ↗