Push_to_hub() stucked

image
As shown, calling trainer.push_to_hub() will be stucked, and the repository only have one file:


Anyone can help me?

BTW, the documentation of pushing model to huggingface is written terribly. When I try to login according to the code in documentation as below:

from huggingface_hub import notebook_login

notebook_login()

Jupyter won’t show any input widget for me to input my username and password.
image
And I didn’t find any solution in documentation .
So I have to pass my token in method push_to_hub(), and it stucked. And dose anybody know why I can’t login by notebook_login()?

1 Like

Normally, I would suspect a problem with the library or network, but there is a large-scale failure occurring in the Hugging Face repository at the moment, and it hasn’t been completely fixed yet, so it might be due to the failure.

No, I think it’s not due to network. It occurs even at the moment when huggingface can use normally

1 Like

Hmm… Version issue of ipywidgets or huggingface_hub?

Firstly, updating ipywidgets version is not worked for me.
Then, as said in the second link, changing code from

from huggingface_hub import notebook_login

notebook_login()

to

from huggingface_hub import interpreter_login

interpreter_login()

seems worked. The widget for inputing token appears and I can call push_to_hub() without token parameter.
Lastly, I successfully push my model to repository after one hour. I don’t know why it is so slow. May be it is true that unstable network causes this.
Anyway, thanks a lot for your information.

1 Like

The slow speed is probably due to the 500 error. It’s usually fast (unless there’s a network restriction).
That said, this might be a small bug. @Wauplin