# Push\_to\_hub() stucked

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561%3E%5C
**Category:** 🤗Transformers\
**Created:** [April 15, 2025, 8:51am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561 "2025-04-15T08:51:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![luohuashijieyoufengj](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@luohuashijieyoufengj](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fluohuashijieyoufengj)%5C
**Post date:** [April 15, 2025, 8:51am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561%2F1 "2025-04-15T08:51:48Z")

</div>

![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/b/d/bd771a220b9d9007fda4b11e683f6a34eb5deef2.png)  
As shown, calling trainer.push\_to\_hub() will be stucked, and the repository only have one file:

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/a/7/a78e0d13959cbc015acfe16e13f29f13a134970e.png)  
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:

```auto
from huggingface_hub import notebook_login

notebook_login()

```

Jupyter won’t show any input widget for me to input my username and password.  
 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/7/e/7ed37155560c86220ab836cc78e8b5d17be0419d.png)  
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()?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [April 15, 2025, 9:50am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561%2F2 "2025-04-15T09:50:59Z")

</div>

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.

> [@500 Internal Error - We're working hard to fix this as soon as possible](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2F500-internal-error-were-working-hard-to-fix-this-as-soon-as-possible%2F150333)%3A
>
> Hi huggingface team, I am trying to use Qwen model, but I met the problem: [500 – Hugging Face](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) Internal Error - We’re working hard to fix this as soon as possible! Request ID: Root=1-67fccdc2-50a424b67e615d194ca3efbd Could you please look into this issue? Looking forward to your help slightly_smiling_face

---

<div class="post-metadata">

**Author:** ![luohuashijieyoufengj](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@luohuashijieyoufengj](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fluohuashijieyoufengj)%5C
**Post date:** [April 15, 2025, 9:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561%2F4 "2025-04-15T09:55:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [April 15, 2025, 10:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561%2F5 "2025-04-15T10:00:06Z")

</div>

Hmm… Version issue of **ipywidgets** or **huggingface\_hub**?

> [@Google colab hub login](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgoogle-colab-hub-login%2F21853%2F5)%3A
>
> I believe so, though in colab it’s instead just a blank output now cry [image] EDIT: @julien-c the fix also needs to have: !pip install ipywidgets==7.7.1 With this it should now work @ozioh & @nickmuchi

> <https://github.com/huggingface/huggingface_hub/issues/752>
>
> Hi, I am using jupyternotebook via VScode. But When I run
> \`\`\`
> from huggingface…\_hub import notebook\_login
> 
> notebook\_login()
> \`\`\`
> 
> I copy the Token, but I cannot paste it in the jupyternotebook in VScode. How to solve it? 
> \`\`\`
> !huggingface-cli login
> \`\`\`
> doesn't work either.
> 
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![luohuashijieyoufengj](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@luohuashijieyoufengj](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fluohuashijieyoufengj)%5C
**Post date:** [April 15, 2025, 12:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561%2F8 "2025-04-15T12:09:09Z")

</div>

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

```auto
from huggingface_hub import notebook_login

notebook_login()

```

to

```auto
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.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [April 15, 2025, 12:13pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-stucked%2F150561%2F9 "2025-04-15T12:13:16Z")

</div>

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
