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 goodmai/embeddinggemma-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use goodmai/embeddinggemma-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="goodmai/embeddinggemma-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("goodmai/embeddinggemma-2") model = AutoModel.from_pretrained("goodmai/embeddinggemma-2", device_map="auto") - sentence-transformers
How to use goodmai/embeddinggemma-2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("goodmai/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] - Notebooks
- Google Colab
- Kaggle
Fix Run with Basalt static launcher URL and update version to v0.11.0
Browse files
README.md
CHANGED
|
@@ -21,18 +21,12 @@ library_name: transformers
|
|
| 21 |
|
| 22 |
<!-- basalt-launch-buttons:start -->
|
| 23 |
<p align="center">
|
| 24 |
-
<a href="https://goodmai-run-with-basalt.hf.space/?model=goodmai%2Fembeddinggemma-2&role=embed">
|
| 25 |
-
|
| 26 |
-
</a>
|
| 27 |
-
<a href="https://goodmai-run-with-basalt.hf.space/?model=goodmai%2Fembeddinggemma-2&role=embed&lang=en">
|
| 28 |
-
<img src="https://img.shields.io/badge/%E2%96%B6_Run_with_Basalt-macOS_App_%26_CLI-111111?style=for-the-badge&logo=swift&logoColor=F05138" alt="Run with Basalt">
|
| 29 |
-
</a>
|
| 30 |
-
<a href="https://github.com/goodmai/basalt">
|
| 31 |
-
<img src="https://img.shields.io/badge/GitHub-goodmai%2Fbasalt-24292F?style=for-the-badge&logo=github&logoColor=white" alt="Basalt on GitHub">
|
| 32 |
-
</a>
|
| 33 |
</p>
|
| 34 |
|
| 35 |
-
> **⚡ Запустить в [Basalt](https://github.com/goodmai/basalt) (macOS 27+ · Apple Silicon, без Python) · Upstream source: [`google/embeddinggemma-2`](https://huggingface.co/google/embeddinggemma-2):**
|
| 36 |
> ```bash
|
| 37 |
> basalt serve --model goodmai/gemma-4-12B-it-qat-4bit --embedding-model goodmai/embeddinggemma-2 --rest
|
| 38 |
> ```
|
|
|
|
| 21 |
|
| 22 |
<!-- basalt-launch-buttons:start -->
|
| 23 |
<p align="center">
|
| 24 |
+
<a href="https://goodmai-run-with-basalt.static.hf.space/?model=goodmai%2Fembeddinggemma-2&role=embed"><img src="https://img.shields.io/badge/%E2%96%B6_%D0%97%D0%B0%D0%BF%D1%83%D1%81%D1%82%D0%B8%D1%82%D1%8C_%D1%87%D0%B5%D1%80%D0%B5%D0%B7_Basalt-Apple_Silicon_MLX-0A84FF?style=for-the-badge&logo=apple&logoColor=white" alt="Запустить через Basalt"></a>
|
| 25 |
+
<a href="https://goodmai-run-with-basalt.static.hf.space/?model=goodmai%2Fembeddinggemma-2&role=embed&lang=en"><img src="https://img.shields.io/badge/%E2%96%B6_Run_with_Basalt-macOS_App_%26_CLI-111111?style=for-the-badge&logo=swift&logoColor=F05138" alt="Run with Basalt"></a>
|
| 26 |
+
<a href="https://github.com/goodmai/basalt/releases/tag/v0.11.0"><img src="https://img.shields.io/badge/Basalt-v0.11.0-0A84FF?style=for-the-badge&logo=github&logoColor=white" alt="Basalt v0.11.0"></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
</p>
|
| 28 |
|
| 29 |
+
> **⚡ Запустить в [Basalt v0.11.0](https://github.com/goodmai/basalt/releases/tag/v0.11.0) (macOS 27+ · Swift 6.4 · Apple Silicon, без Python) · Upstream source: [`google/embeddinggemma-2`](https://huggingface.co/google/embeddinggemma-2):**
|
| 30 |
> ```bash
|
| 31 |
> basalt serve --model goodmai/gemma-4-12B-it-qat-4bit --embedding-model goodmai/embeddinggemma-2 --rest
|
| 32 |
> ```
|