Model reference · open weights
embeddinggemma is an open-weight embedding model from michaelfeil. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | michaelfeil |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 303M |
| Context | 2k tokens |
| Runs with | sentence-transformers |
| Released | 2025-09-04 |
| Popularity | 2k downloads / month |
| Licence | Open, with conditions |
About
Model Page: EmbeddingGemma
Resources and Technical Documentation:
Terms of Use: Terms
Authors: Google DeepMind
EmbeddingGemma is a 300M parameter, state-of-the-art for its size, open embedding model from Google, built from Gemma 3 (with T5Gemma initialization) and the same research and technology used to create Gemini models. EmbeddingGemma produces vector representations of text, making it well-suited for search and retrieval tasks, including classification, clustering, and semantic similarity search. This model was trained with data in 100+ spoken languages.
The small size and on-device focus makes it possible to deploy in environments with limited resources such as mobile phones, laptops, or desktops, democratizing access to state of the art AI models and helping foster innovation for everyone.
Input:
Output:
These model weights are designed to be used with Sentence Transformers, using the Gemma 3 implementation from Hugging Face Transformers as the backbone.
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("google/embeddinggemma-300m")
# Run inference with queries and documents
query = "Which planet is known as the Red Planet?"
documents = [
"Venus is often called Earth's twin because of its similar size and proximity.",
"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
"Jupiter, the largest planet in our solar system, has a prominent red spot.",
"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
]
query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# (768,) (4, 768)
# Compute similarities to determine a ranking
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.3011, 0.6359, 0.4930, 0.4889]])
NOTE: EmbeddingGemma activations do not support float16. Please use float32 or bfloat16 as appropriate for your hardware.
This model was trained on a dataset of text data that includes a wide variety of sources totaling approximately 320 billion tokens. Here are the key components:
The combination of these diverse data sources is crucial for training a powerful multilingual embedding model that can handle a wide variety of different tasks and data formats.
Here are the key data cleaning and filtering methods applied to the training data:
EmbeddingGemma was trained using the latest generation of Tensor Processing Unit (TPU) hardware (TPUv5e), for more details refer to the Gemma 3 model card.
Training was done using JAX and ML Pathways. For more details refer to the Gemma 3 model card.
The model was evaluated against a large collection of different datasets and metrics to cover different aspects of text understanding.
Note: QAT models are evaluated after quantization
* Mixed Precision refers to per-
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys michaelfeil-embeddinggemma for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (michaelfeil-embeddinggemma below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"michaelfeil-embeddinggemma","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.