Cannot access gated repo You must be authenticated to access it.
Got the following error today and it works yesterday.
Cannot access gated repo for url https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2/resolve/main/config.json.
Repo model mistralai/Mistral-7B-Instruct-v0.2 is gated. You must be authenticated to access it.
Any ideas about how to get the authentication? Thanks!
Same
I passed hugging face token to constructor and it worked
How do I do that?
why?
same
istrli
I have another machine with cached file. By using that cached file, it works but needs to find a formal solution.
The cache file can be found in ~/.cache/huggingface
Same problem I can face today so what is the solution of this problem or how to handle it?
Make a request to access the repo and then pass a access token by passing token=<your_token>
.
from huggingface_hub import login
login(token="your_access_token")
An access_token_can be get by your hugging face account settings
This worked for me:
I went to model card and clicked "Agree and access repository". Then I was able to start downloading.
sadly this did not work for me. I also tried putting my huggingface token in my privategpt settings.yaml file without success. Not sure what others have done here. The information is too vague (I do not understand it well enough) for me to follow.
Same issue... I am trying to use this with VLLM. How to pass token with vllm
Same
pip install --upgrade huggingface_hub
huggingface-cli login
YOUR_ACCESS_TOKEN
Done
pip install --upgrade huggingface_hub
huggingface-cli login
YOUR_ACCESS_TOKEN
Done
THANK YOU.
why? without any heads up, this just broke so many pipelines in production.
why? without any heads up, this just broke so many pipelines in production.
if you rely on a free service, and dont plan ahead for it to vanish totally tomorow. you get burnt. What happens when HF start charging for any access? Or they vanish, due technical problems, throw in the towel, or are shut down forcefully.. "whaaaa i should have got the files downloaded locally to keep" ( or even a project. )
it worked for me after "Agree and access repository" but now it's not working again. What could be the possible solution.
bla bla nonsense bla bla whining
ignore
I passed hugging face token to constructor and it worked
Why do we need to use this token to run this model on local environment?
This worked for me:
I went to model card and clicked "Agree and access repository". Then I was able to start downloading.sadly this did not work for me. I also tried putting my huggingface token in my privategpt settings.yaml file without success. Not sure what others have done here. The information is too vague (I do not understand it well enough) for me to follow.
What if I need to handle this on server, How to do this in server?