Tryint to use private-gpt with Mistral but not having access to model

#127
by hitoruna - opened

I am trying to use private-gpt (https://docs.privategpt.dev/installation/getting-started/installation#local-ollama-powered-setup---recommended) which uses mistral but when I do PGPT_PROFILES=ollama make run I get

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-664ac2d9-648ebce1202a3b494633c746;52185420-fabc-421f-9fb9-627f32bfac6a)

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.

I have already done what is suggested in here with generating an access token and doing
poetry run huggingface-cli login --token

and I got

Token will not been saved to git credential helper. Pass add_to_git_credential=True if you want to set the git credential as well.
Token is valid (permission: read).
Your token has been saved to /home/user/.cache/huggingface/token
Login successful

Still the error is happening.
How can this be solved?

hitoruna changed discussion title from Tryint to use private-gpt with Mistral to Tryint to use private-gpt with Mistral but not havving access to model
hitoruna changed discussion title from Tryint to use private-gpt with Mistral but not havving access to model to Tryint to use private-gpt with Mistral but not having access to model

Same... HELP

  1. Get a token here
  2. in your environment set export HUGGINGFACE_TOKEN=your token
  3. export HUGGINGFACE_API_KEY=your token
  4. Run huggingface-cli login --token your token
  5. After that you have access to the resource

The question is why do I need this for... I dont know...
Hope it helps

Why we can't simple download it and use it in the local machine? If is possible, why not create an example loading it from the disk? That is my next step. Going to try to do it. Wish me luck.
Actually. I really would like a tutorial of how can I expand it and train it myself. I'm looking around the site for a few hours now and I simply can't find examples.

Sign up or log in to comment