Run this model with HF Jobs
Run google/embeddinggemma-300m on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/google/embeddinggemma-300m. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/google/embeddinggemma-300m on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Future multimodal support planned? EmbeddingGemma has vision tokens in tokenizer
EmbeddingGemma's tokenizer has <start_of_image>, <end_of_image>, and <image_soft_token> even though it's text-only.
Are these placeholders for future multimodal versions? Would be awesome to know if there'll be follow ups in the EmbeddingGemma family
Hi @AmanPriyanshu ,
Thanks for reaching out to us, welcome to Google's Gemma family of open-source models. This is an inherent characteristic of the model family. All Gemma 3 models utilize a unified tokenizer that incorporates vision tokens as well, even when the model itself cannot make use of all the tokens in the vocabulary.
To know more about embeddinggemma please visit the following page.
Thanks.
Excited for it!
Thank you