Downloads · 30 days
39
5% of all-time downloads
SandLogicTechnologies/EmbeddingGemma-300m-GGUF
EmbeddingGemma-300m-GGUF is a sentence similarity model from SandLogicTechnologies. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as gemma.
This repository provides quantized variants (Q4KM and Q5KM) of EmbeddingGemma, Google’s 300M parameter multilingual embedding model from the Gemma family (initialized with T5Gemma). EmbeddingGemma is designed for gene…
Downloads · 30 days
39
5% of all-time downloads
All-time downloads
783
Public
Repo size
483 MB
Likes
1
Public
Click a slice to open those files.
.gguf483 MB · 100%
From the Hugging Face model README
This repository provides quantized variants (Q4_K_M and Q5_K_M) of EmbeddingGemma, Google’s 300M parameter multilingual embedding model from the Gemma family (initialized with T5Gemma). EmbeddingGemma is designed for generating high-quality vector representations of text, making it well-suited for search, retrieval, classification, clustering, and semantic similarity tasks across 100+ spoken languages.
The Q4_K_M and Q5_K_M quantized versions significantly reduce memory requirements and improve inference efficiency, enabling deployment on a wider range of resource-constrained environments such as mobile devices, laptops, desktops, and lightweight servers. While these quantized models maintain the core capabilities of the original EmbeddingGemma, they offer different trade-offs between efficiency and accuracy—Q4_K_M being more compact, and Q5_K_M providing slightly higher fidelity.
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
# Load quantized EmbeddingGemma from the Huggingface Hub
model = SentenceTransformer("SandlogicTechnologies/embeddinggemma-300m-Q4_K_M")
# 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."
]
# Encode query and documents
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.
Open embedding models have a wide range of applications across various industries and domains. The following list of potential uses is not comprehensive. The purpose of this list is to provide contextual information about the possible use-cases that the model creators considered as part of model training and development.
Semantic Similarity: Embeddings optimized to assess text similarity, such as recommendation systems and duplicate detection
Classification: Embeddings optimized to classify texts according to preset labels, such as sentiment analysis and spam detection
Clustering: Embeddings optimized to cluster texts based on their similarities, such as document organization, market research, and anomaly detection
Retrieval
Question Answering: Embeddings for questions in a question-answering system, optimized for finding documents that answer the question, such as chatbox.
Fact Verification: Embeddings for statements that need to be verified, optimized for retrieving documents that contain evidence supporting or refuting the statement, such as automated fact-checking systems.
Training Data
Language Ambiguity and Nuance
Risks identified and mitigations:
These quantized models are based on the original work by Google development team.
Special thanks to:
The Google team for developing and releasing the embeddinggemma-300m model.
Georgi Gerganov and the entire llama.cpp open-source community for enabling efficient model quantization and inference via the GGUF format.
For any inquiries or support, please contact us at [email protected] or visit our Website.