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
nit fix on table
Browse files
README.md
CHANGED
|
@@ -27,7 +27,8 @@ 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>
|
|
@@ -47,8 +48,9 @@ EmbeddingGemma 2 builds upon the architectural and capability advancements of Ge
|
|
| 47 |
|
| 48 |
### Model Overview
|
| 49 |
|
| 50 |
-
|
|
| 51 |
-
|
|
|
|
|
| 52 |
| | **Backbone** | 130M |
|
| 53 |
| | **Embedder** | 140M |
|
| 54 |
| | **Modality Encoders** | *Vision:* 170M *Audio:* 300M |
|
|
|
|
| 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 |
+
<a href="https://arxiv.org/abs/2610.37364" target="_blank">Technical Report</a>
|
| 32 |
<br>
|
| 33 |
<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>
|
| 34 |
</p>
|
|
|
|
| 48 |
|
| 49 |
### Model Overview
|
| 50 |
|
| 51 |
+
| | | |
|
| 52 |
+
|---|---|---|
|
| 53 |
+
| **Parameters** | **Total** | 740M |
|
| 54 |
| | **Backbone** | 130M |
|
| 55 |
| | **Embedder** | 140M |
|
| 56 |
| | **Modality Encoders** | *Vision:* 170M *Audio:* 300M |
|