How to push save trainer + model to hub?

Hi, I have a saved trainer and saved model from previous training, using transformers 4.20.0.dev0. I do notice that there is a nice model card automatically created when passing push_to_hub=True to TrainingArguments and then calling trainer.push_to_hub(). I wonder if there is a way to push the previously saved trainer to hub and to achieve the same result, since the only difference between these two trainers lies in that the former was not pushed.

1 Like