Hi @talids, youâre getting a 401 error because youâre not authenticated when making the request, and either:
the model doesnât exist
the model is private
From your message, I get that youâre in the second situation. Please make sure that youâre authenticated when calling the API. Youâll need a personal access token to do so, which you can then pass in the Authorization header of your request in the form Bearer <TOKEN>.
Thanks @pierric,
Actually, my model is private, but I logged in already, and access token is also correct. I checked them many times, even I generated new access tokens, but the error message is the same.
Sure!
Here is a bit more detail.
This is the error we are getting
And this is the case for this specific model.
our other ASR model which is not withLM is working fine.
The Model/repo in question: yhavinga/t5-base-dutch
The error message: âRepository Not Found for url: https://huggingface.co/api/repos/create.
Please make sure you specified the correct repo_id and repo_type.
If the repo is private, make sure you are authenticated.
Unauthorized - Unauthorizedâ
I am logged in, it seems to make no difference if I do so with a read or write access token.
Hi @OzzyD , have you accepted the license on CompVis/stable-diffusion-v1-4 ¡ Hugging Face page ? If yes, can you share which version of huggingface_hub you are using and the full traceback you are getting ?
We are making efforts to make error messages more explicit but gated repos are still not handled perfectly. Next version of huggingface_hub (to be released soon) should solve that.
Hi @Wauplin. I have accepted the license on the v1-4 model page.
However, whilst checking for what version of huggingface_hub I had installed, I decided to update my Python environment to the one suggested in the requirements.txt file for that repo, which I already thought it was. This appeared to fix my issue. My rookie mistake.
I look forward to the update to huggingface_hub and thank you for your time
I am getting the same error for a private model (my own) on one machine, but I donât get the error on another machine. I have checked the versions of transformers and huggingface_hub and they are both same. I also tried with and without the âhuggingface_hub loginâ and the error persists. The exact error I get is
However as stated earlier in the thread, I can open the url.
huggingface-hub 0.10.1
transformers 4.24.0
Update : While I was posting this, I downgraded huggingface_hub to 0.9.1 and transformers to 4.22.2, and it worked on the machine where earlier I was getting the above stated error