mlco2 / codecarbon

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

PUE support #398

Closed benoit-cty closed 1 year ago

benoit-cty commented 1 year ago

I add an option to provide a PUE to CodeCarbon.

I multiply the energy consumed by the PUE factor provided by the user.

The PUE is a user choice. It could be the PUE of the datacenter, or a bigger factor to take all the energy loss between extraction to consumption. For example Energy loss is single biggest component of today’s electricity system .