McGill-NLP / llm2vec

Code for 'LLM2Vec: Large Language Models Are Secretly Powerful Text Encoders'
https://mcgill-nlp.github.io/llm2vec/
MIT License
1.28k stars 94 forks source link

Access denied error #130

Closed Sreelakshmi-k closed 2 months ago

Sreelakshmi-k commented 3 months ago

I am getting access denied error. I am using the code sample mentioned din your github. Kindly help

OSError: You are trying to access a gated repo. Make sure to have access to it at https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2. 401 Client Error. (Request ID: Root=1-66a71178-307f6efd0cb726526dab58c4;5159a703-3843-4fbb-81cb-7896ada5c5c3)

Cannot access gated repo for url https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2/resolve/main/config.json. Access to model mistralai/Mistral-7B-Instruct-v0.2 is restricted. You must be authenticated to access it.

vaibhavad commented 3 months ago

Hi @Sreelakshmi-k,

Thanks for your interest in our work.

You have to request access to Mistral here and provide huggingface token as an environment variable for the code to run properly.

vaibhavad commented 2 months ago

Closing as it is stale. Feel free to re-open if the issue still persists.