src/transformers/keras_callbacks.py/PushToHubCallback/on_train_begin
class PushToHubCallback:    def on_train_begin(self, logs=None):
        # Although we can access model.history, we have no guarantees that the History callback will fire before this
        # one, so we keep track of it here too
        self.training_history = []