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!!