lfwa / carbontracker

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

Increased kWh precision #25

Closed leondz closed 10 months ago

leondz commented 4 years ago

Last issue for now - can the precision of calculation of kWh be increased? The current six decimal places given in the logs' energy (kWh) field returned from e.g. parser.parse_all_logs() isn't precise enough for e.g. calculating accurate gradients between different setups. A np.single or np.double would be great.

lfwa commented 3 years ago

Changes only affect output logging and not the standard log with reported durations and average power usages.

PedramBakh commented 10 months ago

In Release v1.2.0 we've increased the default decimal precision to 12 to align with kWh and gCO2/kWh units, which are standards in the energy sector. This has been integrated without affecting existing functionality.