焦耳去哪儿了?诊断推理能耗
Where Do the Joules Go? Diagnosing Inference Energy Consumption
AI总结:
研究通过大规模测量发现生成式AI中不同任务和硬件配置对能耗的影响差异,并提出框架解释能耗与利用率等隐含指标的关系,为优化数据中心能耗提供依据。
摘要:
能源如今是机器学习计算的关键资源。尽管测量能耗并观察趋势是一个有价值的初步步骤,但准确理解并诊断这些差异发生的原因对于优化至关重要。为此,我们首先展示了在生成式人工智能领域,使用46个模型、7个任务和1,858种不同配置在NVIDIA H100和B200 GPU上进行的大规模测量研究。我们的实证发现涵盖了数量级的变化:LLM任务类型可能导致25倍的能耗差异,视频生成有时消耗的能耗比图像多出100倍以上,而GPU利用率差异可能导致3-5倍的能耗差异。基于我们的观察,我们提出了一个用于推理时间与能耗底层机制的框架。其本质是时间与能耗由隐含指标如内存和利用率决定,这些指标又受到算法、软件和硬件各层的各种因素的影响。我们的框架也直接扩展到每瓦吞吐量,这是对电力受限数据中心至关重要的指标。
英文摘要:
Energy is now a critical ML computing resource. While measuring energy consumption and observing trends is a valuable first step, accurately understanding and diagnosing why those differences occur is crucial for optimization. To that end, we begin by presenting a large-scale measurement study of inference time and energy across the generative AI landscape with 46 models, 7 tasks, and 1,858 different configurations on NVIDIA H100 and B200 GPUs. Our empirical findings span order-of-magnitude variations: LLM task type can lead to 25$\times$ energy differences, video generation sometimes consumes more than 100$\times$ the energy of images, and GPU utilization differences can result in 3--5$\times$ energy differences. Based on our observations, we present a framework for reasoning about the underlying mechanisms that govern time and energy consumption. The essence is that time and energy are determined by latent metrics like memory and utilization, which are in turn affected by various factors across the algorithm, software, and hardware layers. Our framework also extends directly to throughput per watt, a critical metric for power-constrained datacenters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。