lfwa / carbontracker

Track and predict the energy consumption and carbon footprint of training deep learning models.
MIT License
374 stars 27 forks source link

Used carbon intensity is not reported when live intensity is unavailable and prediction is before actual #31

Closed lfwa closed 1 year ago

lfwa commented 4 years ago

The used carbon intensity in predicted consumption is not reported if the live carbon intensity could not be fetched AND the prediction is before the actual consumption (i.e. epochs_before_pred < monitor_epochs):

CarbonTracker: The following components were found: GPU with device(s) GeForce RTX 2060.
CarbonTracker: 
Predicted consumption for 3 epoch(s):
        Time:   0:00:15
        Energy: 0.000195 kWh
        CO2eq:  0.057404 g
        This is equivalent to:
        0.000477 km travelled by car
CarbonTracker: Live carbon intensity could not be fetched for your location. Defaulted to average carbon intensity for EU-28 in 2017 of 294.21 gCO2/kWh.
CarbonTracker: 
Actual consumption for 3 epoch(s):
        Time:   0:00:15
        Energy: 0.000186 kWh
        CO2eq:  0.054714 g
        This is equivalent to:
        0.000454 km travelled by car
CarbonTracker: Finished monitoring.
PedramBakh commented 1 year ago

Fixed in release v1.1.7 - Updated default/fallback value for when live carbon intensity cannot be fetched.