mlco2/codecarbon
Track emissions from Compute and recommend ways to reduce their impact on the environment.
What it solves
CodeCarbon tracks and estimates the carbon emissions resulting from the electricity consumed by your local computing hardware during the execution of your code. It helps developers and researchers quantify the environmental impact of their software, particularly for compute-intensive tasks like training machine learning models.
How it works
The library estimates the electricity power consumption of the CPU, GPU, and RAM. It then applies the carbon intensity of the the region where the computing is performed to calculate the total CO2 emissions.
Who it’s for
It is designed for developers and researchers who want to monitor and reduce the carbon footprint of their local computing experiments and ML model training.
Highlights
- Lightweight Python library: Offers a simple API to start and stop tracking emissions.
- CLI support: Allows tracking of commands via the command line without modifying the source code.
- Visualizations: Provides a dashboard and a local tool called carbonboard for analyzing emissions.
- Hardware detection: Includes a
detectcommand to identify local hardware components. - Regional carbon intensity: Accounts for the specific carbon footprint of the electricity grid in the user's region.
Related
- Project
- Project
- Project
- Dispatch
- Project