Getting error for a parameter I didn't passed on model.push_to_hub() function

I fine-tuned a model and now want to upload it to HuggingFace.

As this doc suggested, I tried following code:


But I’m getting error saying

TypeError: create_repo() got an unexpected keyword argument 'organization'.

I didn’t even passed parameter for organization. and made sure I’m using the latest version of Hugging face, but I’m keep getting this error.

Can anyone help me to figure out this problem?