Feature Extraction
sentence-transformers
Safetensors
embedding_gemma2
sentence-similarity
embeddings
text-embeddings
multimodal
image-text-retrieval
audio-embeddings
semantic-search
retrieval
quantized
4-bit precision
int4
mixed-precision
low-memory
gemma
embeddinggemma
multimodal-embeddings
cross-modal-retrieval
clip-alternative
quantization
post-training-quantization
cpu
edge
8-bit precision
Instructions to use ewin-reg/embeddinggemma-2-Quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ewin-reg/embeddinggemma-2-Quantized with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ewin-reg/embeddinggemma-2-Quantized") 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
Add peak memory measured on the second release
Browse files110 unmodified lines11111211311411511611711818 unmodified lines137138139140141142143110 unmodified lines| 1 | Image, 4 images of 640x480 at 280 soft tokens each | 1,667 MB | 1,439 MB | 13.7% lower | 198.4 s and 201.7 s || 2 | Text, same | 1,674 MB | 1,347 MB | 19.5% lower | 38.1 s and 38.4 s || 2 | Image, same | 1,851 MB | 1,450 MB | 21.7% lower | 297.6 s and 305.1 s |The two runs were on different Kaggle machines, and the original's own peak differed by 8 to 11% between them, so read the saving as a range. Forward time matches the original in both runs. Resident memory right after load does not compare fairly, because the original's weights are memory-mapped and load lazily, so peak is the fair number. Memory-mapping the packed files did not help: mapping everything saved about 3% more and slowed the forward pass by 26% to 65%, and mapping only the audio tower changed peak memory by 1% to 2%.## What is in the 486 MiB18 unmodified lines## Not measured- Any dataset other than COCO captions and LibriSpeech.- Memory and GPU speed on this release (they were measured on the first release).- Retrieval quality in bf16.- Memory at longer text lengths, or on a GPU.- Video inputs.110 unmodified lines11111211311411511611711811912018 unmodified lines139140141142143144145110 unmodified lines| 1 | Image, 4 images of 640x480 at 280 soft tokens each | 1,667 MB | 1,439 MB | 13.7% lower | 198.4 s and 201.7 s || 2 | Text, same | 1,674 MB | 1,347 MB | 19.5% lower | 38.1 s and 38.4 s || 2 | Image, same | 1,851 MB | 1,450 MB | 21.7% lower | 297.6 s and 305.1 s || 3, second release (486.2 MiB) | Text, same | 1,770 MB | 1,354 MB | 23.5% lower | 36.6 s against 36.0 s || 3, second release | Image, same | 1,852 MB | 1,556 MB | 16.0% lower | 315.2 s against 352.5 s (second pass 313.2 s against 375.9 s) |The two runs were on different Kaggle machines, and the original's own peak differed by 8 to 11% between them, so read the saving as a range. Forward time matched the original in runs 1 and 2. In run 3 the second release took 12% to 20% longer on the image workload, which I did not repeat, so I cannot say whether that is noise or the 8-bit layers. Resident memory right after load does not compare fairly, because the original's weights are memory-mapped and load lazily, so peak is the fair number. Memory-mapping the packed files did not help: mapping everything saved about 3% more and slowed the forward pass by 26% to 65%, and mapping only the audio tower changed peak memory by 1% to 2%.## What is in the 486 MiB18 unmodified lines## Not measured- Any dataset other than COCO captions and LibriSpeech.- GPU memory and speed on the second release (the GPU numbers were measured on the first release).- Retrieval quality in bf16.- Memory at longer text lengths, or on a GPU.- Video inputs.
README.md+4-2