Troubleshooting
I'm getting the following error when trying to use embeddingGemma:
OSError: You are trying to access a gated repo.
Make sure to have access to it at https://huggingface.co/google/embeddinggemma-300m.
401 Client Error. (Request ID: Root=1-68bf20a1-024019b4747481453bd58915;31e1b34a-1aee-4886-8281-3f806dda3d5e)
Cannot access gated repo for url https://huggingface.co/google/embeddinggemma-300m/resolve/main/config.json.
Access to model google/embeddinggemma-300m is restricted. You must have access to it and be authenticated to access it. Please log in.
This doesnt happen if i set to use another local embedding model like the paraphrase-multilingual-mpnet-base-v2
Hi @milcent ,
Thanks for reaching out to us, these Gemma models are Gated models which means you have to provide the grant under model card section of Hugging Face repo and requires a valid Hugging Face token to access this remote model to your local. Please follow the following steps to access the model to your local.
You can access the google/embeddinggemma-300m
model using the provided access token or download the model weights for local use in your project. For more information, please visit this link.
Initially you have to provide the Grant
in the model's model card page.
For generating access token in HuggingFace, could you please refer this link, please reach out to me if you required any additional assistance.
Thanks.
I shall see to it.
Thank you!!
I have the same problem. I used vllm to deploy the model. I used th following command for my token acces :
$ export HUGGING_FACE_HUB_TOKEN=xxxxxxxxxxx
Then i got :
) OSError: You are trying to access a gated repo.
(APIServer pid=3322) Make sure to have access to it at https://huggingface.co/google/embeddinggemma-300m.
(APIServer pid=3322) 403 Client Error. (Request ID: Root=1-68c17f50-6101646804d11f3c25c64c38;96fee090-9bb1-4ec7-8812-76561861ffaa)
(APIServer pid=3322)
(APIServer pid=3322) Cannot access gated repo for url https://huggingface.co/google/embeddinggemma-300m/resolve/main/config.json.
(APIServer pid=3322) Access to model google/embeddinggemma-300m is restricted and you are not in the authorized list. Visit https://huggingface.co/google/embeddinggemma-300m to ask for access.