src/transformers/integrations.py/CodeCarbonCallback/on_train_begin
class CodeCarbonCallback:    def on_train_begin(self, args, state, control, model=None, **kwargs):
        if self.tracker and state.is_local_process_zero:
            self.tracker.start()