Feature Extraction
Transformers
Safetensors
sentence-transformers
multilingual
embedding_gemma2
embedding
multimodal-embedding
multimodal
vision
audio
video
image-feature-extraction
audio-feature-extraction
video-feature-extraction
sentence-similarity
Instructions to use google/embeddinggemma-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/embeddinggemma-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="google/embeddinggemma-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("google/embeddinggemma-2") model = AutoModel.from_pretrained("google/embeddinggemma-2", device_map="auto") - sentence-transformers
How to use google/embeddinggemma-2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("google/embeddinggemma-2") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Inference
- Notebooks
- Google Colab
- Kaggle
Add Technical Report
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ library_name: transformers
|
|
| 27 |
<a href="https://huggingface.co/google/embeddinggemma-2" target="_blank">Hugging Face</a> |
|
| 28 |
<a href="https://github.com/google-gemma" target="_blank">GitHub</a> |
|
| 29 |
<a href="https://blog.google/innovation-and-ai/technology/developers-tools/embeddinggemma-2" target="_blank">Launch Blog</a> |
|
| 30 |
-
<a href="https://ai.google.dev/gemma/docs/embeddinggemma" target="_blank">Documentation</a> |
|
| 31 |
<br>
|
| 32 |
<b>License</b>: <a href="https://ai.google.dev/gemma/docs/gemma_4_license" target="_blank">Apache 2.0</a> | <b>Authors</b>: <a href="https://deepmind.google/models/gemma/" target="_blank">Google DeepMind</a>
|
| 33 |
</p>
|
|
@@ -333,3 +333,19 @@ In creating an open embedding model, we have carefully considered the following:
|
|
| 333 |
EmbeddingGemma 2 is among the strongest multimodal embedding models under 1B parameters. We’re excited to see how developers will use and adapt this model for on-device or edge AI applications.
|
| 334 |
|
| 335 |
The model is designed from the ground up for responsible AI development, like other Gemma-family models.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
<a href="https://huggingface.co/google/embeddinggemma-2" target="_blank">Hugging Face</a> |
|
| 28 |
<a href="https://github.com/google-gemma" target="_blank">GitHub</a> |
|
| 29 |
<a href="https://blog.google/innovation-and-ai/technology/developers-tools/embeddinggemma-2" target="_blank">Launch Blog</a> |
|
| 30 |
+
<a href="https://ai.google.dev/gemma/docs/embeddinggemma" target="_blank">Documentation</a> | <a href="https://arxiv.org/abs/2610.37364" target="_blank">Technical Report</a>
|
| 31 |
<br>
|
| 32 |
<b>License</b>: <a href="https://ai.google.dev/gemma/docs/gemma_4_license" target="_blank">Apache 2.0</a> | <b>Authors</b>: <a href="https://deepmind.google/models/gemma/" target="_blank">Google DeepMind</a>
|
| 33 |
</p>
|
|
|
|
| 333 |
EmbeddingGemma 2 is among the strongest multimodal embedding models under 1B parameters. We’re excited to see how developers will use and adapt this model for on-device or edge AI applications.
|
| 334 |
|
| 335 |
The model is designed from the ground up for responsible AI development, like other Gemma-family models.
|
| 336 |
+
|
| 337 |
+
## **Citation**
|
| 338 |
+
|
| 339 |
+
If you find our work helpful, please consider citing it:
|
| 340 |
+
|
| 341 |
+
```bibtex
|
| 342 |
+
@misc{embeddinggemma2_2026,
|
| 343 |
+
title={EmbeddingGemma 2: Unified and Efficient Multimodal Representations},
|
| 344 |
+
author={Schechter Vera, Henrique and Dua, Sahil and Team, EmbeddingGemma},
|
| 345 |
+
year={2026},
|
| 346 |
+
eprint={2610.37364},
|
| 347 |
+
archivePrefix={arXiv},
|
| 348 |
+
primaryClass={cs.LG},
|
| 349 |
+
url={https://arxiv.org/abs/2610.37364}
|
| 350 |
+
}
|
| 351 |
+
```
|