arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14249cs.LG
收藏

EnergyLens: 多GPU LLM推理优化中的预测能效探索

EnergyLens: Predictive Energy-Aware Exploration for Multi-GPU LLM Inference Optimization

Massachusetts Institute of Technology(麻省理工学院);IBM Research(IBM研究院)

Zhiye Song, Kyungmi Lee, Eun Kyung Lee, Xin Zhang, Tamar Eilam, Anantha P. Chandrakasan

AI总结:

EnergyLens通过einsum接口和MoE建模优化多GPULLM推理能耗,实现9.25%-13.19%的能耗预测精度,揭示配置间能效差异并推动分布式服务。

摘要:

我们提出了EnergyLens,一个端到端的能效优化框架,用于大语言模型(LLM)推理。随着LLM规模扩大,预测和减少其能耗对可持续性和数据中心运营至关重要,但现有方法要么需要生产级代码和昂贵的剖析,要么无法准确捕捉多GPU能耗行为。EnergyLens通过直观的einsum接口捕获LLM规格,包括融合、并行性和计算-通信重叠,结合负载不平衡感知的MoE建模和经验驱动的多GPU通信能耗模型。我们在Llama3和Qwen3-MoE上验证了EnergyLens,针对张量并行和专家并行配置实现了9.25%-13.19%的多GPU预填和解码能耗MAPE,以及12.97%的SM分配精度。我们的能耗驱动探索揭示了预填和解码效率配置间的1.47x至52.9x能耗差异,推动了分布式服务。我们进一步表明,计算-通信重叠难以仅凭直觉优化,但EnergyLens正确识别了帕累托最优重叠配置。

英文摘要:

We present EnergyLens, an end-to-end framework for energy-aware large language model (LLM) inference optimization. As LLMs scale, predicting and reducing their energy footprint has become critical for sustainability and datacenter operations, yet existing approaches either require production-level code and expensive profiling or fail to accurately capture multi-GPU energy behavior. As a result, practitioners lack tools for deciding which optimizations to prioritize and for selecting among existing deployment configurations when exhaustive profiling is impractical. EnergyLens addresses this gap with an intuitive einsum-based interface that captures LLM specifications including fusion, parallelism, and compute-communication overlap, combined with load-imbalance-aware MoE modeling and an empirically driven communication energy model for multi-GPU settings. We validate EnergyLens on Llama3 and Qwen3-MoE across tensor-parallel and expert-parallel configurations, achieving mean absolute percentage errors (MAPEs) between 9.25% and 13.19% for multi-GPU prefill and decode energy, and 12.97% across SM allocations for Megatron-style overlap. Our energy-driven exploration reveals up to 1.47x and 52.9x energy variation across configurations in prefill and decode efficiency and motivates distributed serving. We further show that compute-communication overlap is difficult to optimize with intuition alone, but EnergyLens correctly identifies Pareto-optimal overlap configurations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑