mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.02k stars 158 forks source link

Add task-based tracking to enable inference emissions estimation #355

Closed SaboniAmine closed 11 months ago

SaboniAmine commented 1 year ago

First step to enable inference estimation estimation :

Next steps may be to

sashavor commented 1 year ago

Some thoughts after testing the code:

benoit-cty commented 1 year ago

Some thoughts after testing the code:

* Can we report grams and not kilograms? Most inferences will only be a few fractions of a gram of CO2 in any case..

* It's a bit hard to debug code because of the logging the tracker is doing (took me awhile to find the error because it kept printing out the emissions every second). Can we make it crash if there is an error in the code itself, for example?

Hello, you could change the log level in .codecarbon.config:

[codecarbon]
log_level = ERROR