Hi,
Thanks for the reply!
Yes I used
pip install transformers==4.12.3
in the notebook to make sure the version is correct. You can see my screenshot that the library version is correct.
Something strange is that I used
dir(my_gpt_model)
to print out all the methods and attributes in the object but there’s no push_to_hub method. I even tried to use the save_pretrained method with the ‘push_to_hub’ set to true but it gives me an error saying no such parameter for the method.
It seems that even though pip updated the transformers library, some files in the library remained not updated. I really don’t understand how this happened…