You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in the CSV output mode and other output modes results and emissions are only computed and persisted at the end of the run. I would rather get the results dumped to disk in the same way that for the API output mode emissions are computed and partial results persisted periodically:
If a run crashes unexpectedly partial results are still saved
I can visualize the outputs during training
I can monitor emissions by reading the outputs and preempt runs in case of increased emissions, for example
I think the easiest way would be to allow configuring which output modes should appear in the if statements in the lines above, but ideally one could configure different rates for different outputs.
The text was updated successfully, but these errors were encountered:
miquelmarti
changed the title
Allow periodic flush of results for other output modes than API
Allow computing emissions and dumping results periodically for other output modes
Sep 8, 2023
Yes it could be nice to write to a CSV the same data as the API.
We have a flush() method that is more a checkpoint: it does not reset the data, it only store them to avoid loosing them if there is a crash and to give a view when training for a very long time.
Currently, in the CSV output mode and other output modes results and emissions are only computed and persisted at the end of the run. I would rather get the results dumped to disk in the same way that for the API output mode emissions are computed and partial results persisted periodically:
codecarbon/codecarbon/emissions_tracker.py
Lines 700 to 713 in 63c6a55
This way:
I think the easiest way would be to allow configuring which output modes should appear in the if statements in the lines above, but ideally one could configure different rates for different outputs.
The text was updated successfully, but these errors were encountered: