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
fix: [training] Push CodeCarbon emissions report to the Hub
The emissions.csv was written to the CWD (CodeCarbon's default output_dir),
which trainer.push_to_hub() never uploads, so the report stopped reaching the
Hub. Point the tracker at model_save_dir and push the report explicitly via a
shared push_emissions_report() helper.
Also convert generation_description.py and cwe_guesser_patches.py from the
@track_emissions decorator to an explicit EmissionsTracker: the decorator only
finalizes emissions.csv after train() returns, i.e. after push_to_hub() has
already run, so the report could never be included.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments