Skip to main content
QUICK REVIEW

[论文解读] LLMCarbon: Modeling the end-to-end Carbon Footprint of Large Language Models

Ahmad Faiz, Sotaro Kaneda|arXiv (Cornell University)|Sep 25, 2023
Topic ModelingComputer Science被引用 33
一句话总结

LLMCarbon 提供对密集型和 MoE LLM 的端到端运营和嵌入式碳排放预测,相对于 mlco2 提高准确性,并覆盖训练、推理、实验和存储。

ABSTRACT

The carbon footprint associated with large language models (LLMs) is a significant concern, encompassing emissions from their training, inference, experimentation, and storage processes, including operational and embodied carbon emissions. An essential aspect is accurately estimating the carbon impact of emerging LLMs even before their training, which heavily relies on GPU usage. Existing studies have reported the carbon footprint of LLM training, but only one tool, mlco2, can predict the carbon footprint of new neural networks prior to physical training. However, mlco2 has several serious limitations. It cannot extend its estimation to dense or mixture-of-experts (MoE) LLMs, disregards critical architectural parameters, focuses solely on GPUs, and cannot model embodied carbon footprints. Addressing these gaps, we introduce extit{\carb}, an end-to-end carbon footprint projection model designed for both dense and MoE LLMs. Compared to mlco2, \carb~significantly enhances the accuracy of carbon footprint estimations for various LLMs. The source code is released at \url{https://github.com/SotaroKaneda/MLCarbon}.

研究动机与目标

  • 通过实现端到端碳足迹预测,促使降低快速增长的 LLM 的环境影响。
  • 提出一个同时考虑密集与 MoE LLM 的架构、硬件和数据中心因素的模型。
  • 提供覆盖训练、推理、实验和存储的端到端估计,包括运营碳和嵌入式碳。
  • 实现设计空间探索,在 LLM 设计过程中权衡测试损失与碳足迹。

提出的方法

  • 提出一个可输入驱动的预测模型,该模型可以从架构中推导 LLM 参数量,或直接接受它。
  • 使用神经缩放(Chinchilla)通过 LLM 参数和训练令牌来估计测试损失,公式为 L(L,P,D)=A/P^α + B/D^β + E。
  • 使用 FLOP 模型计算 FLOPs,以估算训练和推理工作量(TC 和 IC)。
  • 将硬件效率建模为在经过优化的数据/张量/流水线/专家并行性下的实际吞吐量相对于峰值吞吐量,以推导运行成本。
  • 从能耗和数据中心碳强度计算运营碳,从芯片面积和 CPA(单位面积碳排放)计算嵌入碳。
  • 将运营碳与嵌入碳相加,得到 LLM 的总 CO2eq。

实验结果

研究问题

  • RQ1端到端模型在多大程度上能够准确预测密集型和 MoE LLM 的运营碳和嵌入碳足迹?
  • RQ2架构选择(参数量、MoE 与密集)和硬件配置如何影响预测的碳足迹与测试损失的权衡?
  • RQ3LLMCarbon 能否预测训练、推理、存储和实验阶段的碳足迹?与 mlco2 等现有工具相比表现如何?
  • RQ4应用最优并行性设置和更新的加速器时,潜在的碳排放节省是多少?

主要发现

  • LLMCarbon 对训练运营碳足迹的预测与公开数据的偏差在五个 LLM 中小于等于 8.2%。
  • ML Carbon 在捕捉 MoE 与密集架构以及嵌入式碳预测方面优于 mlco2。
  • 推理足迹预测与报告数字高度一致,例如 GPT-3 推理案例在运营碳方面差异 ≤3.3%。
  • 与 Meta XLM 的嵌入碳验证显示为 −3.05% 的差异,512 GPU 的案例研究。
  • 案例研究表明嵌入碳可能占生命周期排放的相当大一部分,且最优并行性可将运营碳降低 16%–39%。
  • 新加速器(如 H100、TPUv4)在显著降低运营足迹的同时,嵌入足迹保持相似。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。