HfHubHTTPError: 401 Client Error

i am having this error :

HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/api/repos/create Invalid username or password.

and yes i am connected to the hub , and my token is on write . How can i fix it ?

I am encountering the same issue. My notebooks were working initially, but suddenly they stopped functioning.

I am facing the same issue while using SFTTrainer, could anyone resolve?

2 Likes

same, and it still doesn’t work

Check if you have a push_to_hub = True in your training arguments and comment it out before passing to SFTTrainer, worked for me

3 Likes

Thank you it worked !!

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.