Instructions to use google/embeddinggemma-300m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use google/embeddinggemma-300m with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("google/embeddinggemma-300m") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Inference
- Notebooks
- Google Colab
- Kaggle
Cannot use EmbeddingGemma, License Redirects to Kaggle 404
Hi everyone,
I'm trying to access google/embeddinggemma-300m through Hugging Face to use it in Python, but I'm having trouble accepting the model's license.
When I click "Acknowledge license" on the Hugging Face model page, I'm redirected to Kaggle, where I receive a 404 error ("We can't find that page").
I have already created a Hugging Face access token and configured it in Python. However, when I try to download the model, I receive a 403 Client Error (Forbidden), which I suspect is because I haven't been able to successfully accept the license.
Has anyone experienced this issue? Is there an alternative way to accept the license or obtain access to the model?
Thanks in advance for your help!

