Google AI ModeSep 25, 2026
Assessing the carbon footprint of AI and machine learning workloads typically involves looking at code-level tracking, API usage, or infrastructure-level cloud dashboards.
The primary options available for carbon footprint reporting in ML span open-source developer libraries, specialized ecosystem tools, and major cloud providers:
1. Code-Level & Open-Source Libraries (For Training & Local/VM Compute)
If you are running training loops or inference on on-premise hardware, local workstations, or custom cloud virtual machines, you can embed tracking packages directly into your code:
CodeCarbon: A popular Python package that estimates the electricity consumed by your GPU, CPU, and RAM. It maps power usage to regional grid carbon intensity data to output estimated C O 2 cap C cap O sub 2𝐶𝑂2 emissions.
- EcoLogits: Built by the same non-profit ecosystem as CodeCarbon, this tool targets third-party Generative AI APIs (like OpenAI, Anthropic, Mistral, or Google) rather than raw hardware, attaching environmental impact estimates directly to SDK responses.
Sources7
- github.comGitHub - mlco2/codecarbon: Track emissions from Compute and recommend ways to reduce their impact on the environment. · GitHub
- codecarbon.ioCode Carbon
- blog.naitive.cloudHow to Measure AI Model Energy Efficiency
- carbontracker.infoCarbontracker
- medium.comCarbon Dashboards in 2025: AWS vs Google vs Azure, a ...
- docs.codecarbon.ioFrequently Asked Questions