AI SeedbankHelp preserve open and free AI for humanity's future

← All models

google_embeddinggemma-300m

google · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: gemma pipeline_tag: sentence-similarity library_name: sentence-transformers tags:

  • sentence-transformers
  • sentence-similarity
  • feature-extraction
  • text-embeddings-inference extra_gated_heading: Access EmbeddingGemma on Hugging Face extra_gated_prompt: To access EmbeddingGemma on Hugging Face, you’re required to review and agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging Face and click below. Requests are processed immediately. extra_gated_button_content: Acknowledge license

EmbeddingGemma model card

Model Page: EmbeddingGemma

Resources and Technical Documentation:

  • Responsible Generative AI Toolkit
  • EmbeddingGemma on Kaggle
  • EmbeddingGemma on Vertex Model Garden

Terms of Use: Terms

Authors: Google DeepMind

Model Information

Description

EmbeddingGemma is a 300M parameter, state-of-the-art for its size, open embedding model from Google, built from Gemma 3 (with T5Gemma initialization) and the same research and technology used to create Gemini models. EmbeddingGemma produces vector representations of text, making it well-suited for search and retrieval tasks, including classification, clustering, and semantic similarity search. This model was trained with data in 100+ spoken languages.

The small size and on-device focus makes it possible to deploy in environments with limited resources such as mobile phones, laptops, or desktops, democratizing access to state of the art AI models and helping foster innovation for everyone.

For more technical details, refer to our paper: EmbeddingGemma: Powerful and Lightweight Text Representations.

Inputs and outputs

  • Input:

    • Text string, such as a question, a prompt, or a document to be embedded
    • Maximum input context length of 2048 tokens
  • Output:

    • Numerical vector representations of input text data
    • Output embedding dimension size of 768, with smaller options available (512, 256, or 128) via Matryoshka Representation Learning (MRL). MRL allows users to truncate the output embedding of size 768 to their desired size and then re-normalize for efficient and accurate representation.

Citation

@article{embedding_gemma_2025,
    title={EmbeddingGemma: Powerful and Lightweight Text Representations},
    author={Schechter Vera, Henrique* and Dua, Sahil* and Zhang, Biao and Salz, Daniel and Mullins, Ryan and Raghuram Panyam, Sindhu and Smoot, Sara and Naim, Iftekhar and Zou, Joe and Chen, Feiyang and Cer, Daniel and Lisak, Alice and Choi, Min and Gonzalez, Lucas and Sanseviero, Omar and Cameron, Glenn and Ballantyne, Ian and Black, Kat and Chen, Kaifeng and Wang, Weiyi and Li, Zhe and Martins, Gus and Lee, Jinhyuk and Sherwood, Mark and Ji, Juyeong and Wu, Renjie and Zheng, Jingxiao and Singh, Jyotinder and Sharma, Abheesht and Sreepat, Divya and Jain, Aashi and Elarabawy, Adham and Co, AJ and Doumanoglou, Andreas and Samari, Babak and Hora, Ben and Potetz, Brian and Kim, Dahun and Alfonseca, Enrique and Moiseev, Fedor and Han, Feng and Palma Gomez, Frank and Hernández Ábrego, Gustavo and Zhang, Hesen and Hui, Hui and Han, Jay and Gill, Karan and Chen, Ke and Chen, Koert and Shanbhogue, Madhuri and Boratko, Michael and Suganthan, Paul and Duddu, Sai Meher Karthik and Mariserla, Sandeep and Ariafar, Setareh and Zhang, Shanfeng and Zhang, Shijie and Baumgartner, Simon and Goenka, Sonam and Qiu, Steve and Dabral, Tanmaya and Walker, Trevor and Rao, Vikram and Khawaja, Waleed and Zhou, Wenlei and Ren, Xiaoqi and Xia, Ye and Chen, Yichang and Chen, Yi-Ting and Dong, Zhe and Ding, Zhongli and Visin, Francesco and Liu, Gaël and Zhang, Jiageng and Kenealy, Kathleen and Casbon, Michelle and Kumar, Ravin and Mesnard, Thomas and Gleicher, Zach and Brick, Cormac and Lacombe, Olivier and Roberts, Adam and Sung, Yunhsuan and Hoffmann, Raphael and Warkentin, Tris and Joulin, Armand and Duerig, Tom and Seyedhosseini, Mojtaba},
    publisher={Google DeepMind},
    year={2025},
    url={https://arxiv.org/abs/2509.20354}
}

Usage

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

# Download from the 🤗 Hub
model = SentenceTransformer("google/embeddinggemma-300m")

# 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."
]
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.

Model Data

Training Dataset

This model was trained on a dataset of text data that includes a wide variety of sources totaling approximately 320 billion tokens. Here are the key components:

  • Web Documents: A diverse collection of web text ensures the model is exposed to a broad range of linguistic styles, topics, and vocabulary. The training dataset includes content in over 100 languages.
  • Code and Technical Documents: Exposing the model to code and technical documentation helps it learn the structure and patterns of programming languages and specialized scientific content, which improves its understanding of code and technical questions.
  • Synthetic and Task-Specific Data: Synthetically training data helps to teach the model specific skills. This includes curated data for tasks like information retrieval, classification, and sentiment analysis, which helps to fine-tune its performance for common embedding applications.

The combination of these diverse data sources is crucial for training a powerful multilingual embedding model that can handle a wide variety of different tasks and data formats.

Data Preprocessing

Here are the key data cleaning and filtering methods applied to the training data:

  • CSAM Filtering: Rigorous CSAM (Child Sexual Abuse Material) filtering was applied at multiple stages in the data preparation process to ensure the exclusion of harmful and illegal content.
  • Sensitive Data Filtering: As part of making Gemma pre-trained models safe and reliable, automated techniques were used to filter out certain personal information and other sensitive data from training sets.
  • Additional methods: Filtering based on content quality and safety in line with our policies.

Model Development

Hardware

EmbeddingGemma was trained using the latest generation of Tensor Processing Unit (TPU) hardware (TPUv5e), for more details refer to the Gemma 3 model card.

Software

Training was done using JAX and ML Pathways. For more details refer to the Gemma 3 model card.

Evaluation

Benchmark Results

The model was evaluated against a large collection of different datasets and metrics to cover different aspects of text understanding.

Full Precision Checkpoint

MTEB (Multilingual, v2)
Dimensionality Mean (Task) Mean (TaskType)
768d 61.15 54.31
512d 60.71 53.89
256d 59.68 53.01
128d 58.23 51.77
MTEB (English, v2)
Dimensionality Mean (Task) Mean (TaskType)
768d 69.67 65.11
512d 69.18 64.59
256d 68.37 64.02
128d 66.66 62.70
MTEB (Code, v1)
Dimensionality Mean (Task) Mean (TaskType)
768d 68.76 68.76
512d 68.48 68.48
256d 66.74 66.74
128d 62.96 62.96

QAT Checkpoints

MTEB (Multilingual, v2)
Quant config (dimensionality) Mean (Task) Mean (TaskType)
Q4_0 (768d) 60.62 53.61
Q8_0 (768d) 60.93 53.95
Mixed Precision* (768d) 60.69 53.82
MTEB (English, v2)
Quant config (dimensionality) Mean (Task) Mean (TaskType)
Q4_0 (768d) 69.31 64.65
Q8_0 (768d) 69.49 64.84
Mixed Precision* (768d) 69.32 64.82
MTEB (Code, v1)
Quant config (dimensionality) Mean (Task) Mean (TaskType)
Q4_0 (768d) 67.99 67.99
Q8_0 (768d) 68.70 68.70
Mixed Precision* (768d) 68.03 68.03

Note: QAT models are evaluated after quantization

* Mixed Precision refers to per-channel quantization with int4 for embeddings, feedforward, and projection layers, and int8 for attention (e4_a8_f4_p4).

Prompt Instructions

EmbeddingGemma can generate optimized embeddings for various use cases—such as document retrieval, question answering, and fact verification—or for specific input types—either a query or a document—using prompts that are prepended to the input strings. Query prompts follow the form task: {task description} | query: where the task description varies by the use case, with the default task description being search result. Document-style prompts follow the form title: {title | "none"} | text: where the title is either none (the default) or the actual title of the document. Note that providing a title, if available, will improve model performance for document prompts but may require manual formatting.

Use the following prompts based on your use case and input data type. These may already be available in the EmbeddingGemma configuration in your modeling framework of choice.


Use Case (task type enum)

Descriptions

Recommended Prompt

Retrieval (Query)

Used to generate embeddings that are optimized for document search or information retrieval

task: search result | query: {content}

Retrieval (Document)

title: {title | "none"} | text: {content}

Question Answering

task: question answering | query: {content}

Fact Verification

task: fact checking | query: {content}

Classification

Used to generate embeddings that are optimized to classify texts according to preset labels

task: classification | query: {content}

Clustering

Used to generate embeddings that are optimized to cluster texts based on their similarities

task: clustering | query: {content}

Semantic Similarity

Used to generate embeddings that are optimized to assess text similarity. This is not intended for retrieval use cases.

task: sentence similarity | query: {content}

Code Retrieval

Used to retrieve a code block based on a natural language query, such as sort an array or reverse a linked list. Embeddings of the code blocks are computed using retrieval_document.

task: code retrieval | query: {content}

Usage and Limitations

These models have certain limitations that users should be aware of.

Intended Usage

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

    • Document: Embeddings optimized for document search, such as indexing articles, books, or web pages for search
    • Query: Embeddings optimized for general search queries, such as custom search
    • Code Query: Embeddings optimized for retrieval of code blocks based on natural language queries, such as code suggestions and search
  • 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.

Limitations

  • Training Data

    • The quality and diversity of the training data significantly influence the model's capabilities. Biases or gaps in the training data can lead to limitations in the model's responses.
    • The scope of the training dataset determines the subject areas the model can handle effectively.
  • Language Ambiguity and Nuance

    • Natural language is inherently complex. Models might struggle to grasp subtle nuances, sarcasm, or figurative language.

Ethical Considerations and Risks

Risks identified and mitigations:

  • Perpetuation of biases: It's encouraged to perform continuous monitoring (using evaluation metrics, human review) and the exploration of de-biasing techniques during model training, fine-tuning, and other use cases.
  • Misuse for malicious purposes: Technical limitations and developer and end-user education can help mitigate against malicious applications of embeddings. Educational resources and reporting mechanisms for users to flag misuse are provided. Prohibited uses of Gemma models are outlined in the Gemma Prohibited Use Policy.
  • Privacy violations: Models were trained on data filtered for removal of certain personal information and other sensitive data. Developers are encouraged to adhere to privacy regulations with privacy-preserving techniques.

Benefits

At the time of release, this family of models provides high-performance open embedding model implementations designed from the ground up for responsible AI development compared to similarly sized models. Using the benchmark evaluation metrics described in this document, these models have shown superior performance to other, comparably-sized open model alternatives.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:1126b26d6155a2e6d6f23c9db6e2ccb6af76a203&dn=google_embeddinggemma-300m

Open magnet in torrent client · infohash 1126b26d6155a2e6d6f23c9db6e2ccb6af76a203

Files & hashes

PathSizesha1sha256
1_Pooling/config.json312 B (312 B)70ac42bce1699d89f19c011133cf97dfada8312735bbd47d7fdf1e378db6130bcc668b09d1aa67a7bbf7c8f89a9c71f4cc8ebcc6
2_Dense/config.json134 B (134 B)be375637bcca11d03dbf71bf83914fd48e8c55ee0661e5e0b67b8f8408ab31ab5d073a78972fc1dc24a49992a64796557e4f9e53
2_Dense/model.safetensors9.0 MB (9,437,272 B)127cda214023e2e5b8dff5f1eb3bf84ca7429bdac327f2acb00149676ade24a75e11eb6ebbd367f9ee050267ba56829d2979f702
3_Dense/config.json134 B (134 B)732de4b90bee82e9050fd5467c4aa5e9d088d0048c4575c49353d63fb907878856ba94384635c3b2711fd5b7439e7f71888c66fc
3_Dense/model.safetensors9.0 MB (9,437,272 B)15d4cda589a14e7a19148679b1bb0a2013326cd1ffb6cc5162e11e2ce6bc2367e121ee3bbbc4e82e1ee26826bd7573d4948d81b8
README.md18.2 KB (18,677 B)bb84d064c9b5cb7ab468a6c56b00717181eab744e53702f564878ea87085742fe3f485872bef81317086e9ffe37125a81809772a
added_tokens.json35 B (35 B)e17bde03d42feda32d1abfca6d3b598b9a020df750b2f405ba56a26d4913fd772089992252d7f942123cc0a034d96424221ba946
config.json1.5 KB (1,488 B)aca32ef8dacddfbe15dc12c0427a9153d5c2b0f48f863f76e2d9c710cc833dc92efa898c9adfd41031c786507cc6b0e49c2e3e68
config_sentence_transformers.json997 B (997 B)3552ab1b79dc8571d0ecf200db12e5208eda5bdd8eadac15526f83d8950aa8d962a7f4f6e3d678bea71689960194561f33a5f64f
generation_config.json133 B (133 B)562150c0903db92148e95aeed8292bbfbf3c93d91fb1efd221c1ca88a736d1b36cb47d754c177677e222acb3b1e5424c5d664870
model.safetensors1.13 GB (1,211,486,072 B)496b46ba6a61340082ee51e283ced5cb1123f1f4cbf5a78393b6a033e0b8a63a57549964f7ed5c6fbeb4ba0694214f36123f2fd2
modules.json573 B (573 B)bb668a9a3aacb3090f2f8e73f870f556569f90665b5649645fb756dad1a8e2efe7872d3bb32bc00b93c95f276dd17f474eedccdc
notebook.ipynb28.1 KB (28,794 B)ebe02c957bea294376736642b8cdd04cee6ae4ee8ec86b999574184bd47be2bef8aa9710458f33bb54efaf216a705a8fd360517c
sentence_bert_config.json58 B (58 B)b37b06424c6e0c0e880b24f3e313ebd85b601dcc5ea26221ce733ace29a3897360e7c6ac8816b2ca0f7306657d69e594fece7325
special_tokens_map.json662 B (662 B)1a6193244714d3d78be48666cb02cdbfac62ad862f7b0adf4fb469770bb1490e3e35df87b1dc578246c5e7e6fc76ecf33213a397
tokenizer.json31.8 MB (33,385,008 B)50a4eb8abf95734b17f72f34d0653df364431a396852f8d561078cc0cebe70ca03c5bfdd0d60a45f9d2e0e1e4cc05b68e9ec329e
tokenizer.model4.5 MB (4,689,074 B)8a8e05deb279bd5bdca094fb7ececabe732a95341299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
tokenizer_config.json1.1 MB (1,155,346 B)33786d29ae85b05bc37772cd10876d66afbe905e9076840490613047bc9115963ee96b7702018b0d26ba644240bf856efda93118

Cite this release

Canonical URL
https://aiseedbank.org/models/google_embeddinggemma-300m/
Slug
google_embeddinggemma-300m
Infohash
1126b26d6155a2e6d6f23c9db6e2ccb6af76a203
License
gemma
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: google_embeddinggemma-300m.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorygoogle/embeddinggemma-300m
Revision (pinned)57c266a740f537b4dc058e1b0cda161fd15afa75
Fetched at2026-09-03T23:10:29Z
License at fetchgemma
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T23:10:42Z

gemma1.18 GB (1,269,642,041 bytes)sentence-transformerssafetensorsgemma3_textsentence-similarityfeature-extractiontext-embeddings-inferenceeval-resultsendpoints_compatiblepaper: 2509.20354