Community GGUF quantizations of google/embeddinggemma-2.
If this GGUF made your day easier, a coffee would make mine.
Send a coffee
I build and test these releases myself. Your coffee helps keep me going.
Thank you for supporting this work.
About EmbeddingGemma 2
EmbeddingGemma 2 is a multilingual, multimodal embedding model from Google DeepMind. It maps text and code, images, video, and audio into a shared 768-dimensional vector space and has an 8,192-token shared context window. The upstream checkpoint has a 270M-parameter text path plus optional vision and audio encoders. This release contains a quantized text backbone and a shared BF16 vision/audio projector. Text, image, and audio inputs returned normalized 768-dimensional vectors in local llama-server CPU smoke checks. See the official model card for supported task prefixes, modalities, and input guidance.
Embedding evaluation
All values below were measured locally from the locked BF16 GGUF and quantized artifacts; they are not copied from the upstream model card. Additional quant formats are being added incrementally and will appear in the comparison table after running this same hold-out evaluation. The fixed hold-out evaluation uses the 1,379-pair test split of MTEB STSBenchmark STS, dataset revision 96943a16ea6a35129e253c659081cb59daf81b30. It covers 2,552 unique sentences with the task: sentence similarity | query: prefix, an 8,192-token context, and the CPU llama.cpp runtime at commit 9c2e0e491a822adae1f0b1c831adb4160057d24f. Spearman and Pearson measure correlation between cosine similarity and the human scores. Mean and 5th-percentile cosine measure vector agreement with the BF16 GGUF reference. Higher values indicate stronger task correlation or closer vector agreement; smaller files use less disk. This is a task-specific embedding evaluation, not the full MTEB benchmark. Token-level KLD, next-token Top-1, PPL, and RMS probability deltas do not apply to this embedding model.
BF16 reference baseline
| Reference |
Size (GB) |
Spearman vs human ↑ |
Pearson vs human ↑ |
Mean cosine vs BF16 |
5th-percentile cosine vs BF16 |
| Local BF16 text GGUF |
0.557950 |
0.875414 |
0.865994 |
1.000000 |
1.000000 |
Quantized variants compared with BF16
| File |
Size (GB) |
Spearman vs human ↑ |
Pearson vs human ↑ |
Mean cosine vs BF16 ↑ |
5th-percentile cosine vs BF16 ↑ |
| EmbeddingGemma-2-Q8_0.gguf |
0.309856 |
0.875125 |
0.865776 |
0.999930 |
0.999903 |
| EmbeddingGemma-2-Q6_K.gguf |
0.245765 |
0.874311 |
0.864975 |
0.999548 |
0.999373 |
| EmbeddingGemma-2-Q5_K_M.gguf |
0.212759 |
0.874081 |
0.864863 |
0.999190 |
0.998841 |
| EmbeddingGemma-2-Q4_K_M.gguf |
0.181695 |
0.872686 |
0.864659 |
0.997824 |
0.996776 |
| EmbeddingGemma-2-Q3_K_M.gguf |
0.148870 |
0.869604 |
0.860705 |
0.992364 |
0.988323 |
| EmbeddingGemma-2-Q2_K.gguf |
0.120394 |
0.856144 |
0.854341 |
0.972891 |
0.960440 |
| EmbeddingGemma-2-IQ2_XS.gguf |
0.110946 |
0.846829 |
0.838447 |
0.944608 |
0.927359 |
| EmbeddingGemma-2-IQ1_M.gguf |
0.103041 |
0.797642 |
0.801111 |
0.819494 |
0.778721 |
| EmbeddingGemma-2-Q1_0.gguf |
0.066163 |
0.061457 |
0.062574 |
0.513763 |
0.425907 |
Q5_K_M and Q4_K_M are memory/fidelity candidates from this measured size and task-correlation trade-off; no VRAM fit or throughput claim is made. Q1_0 loads and returns embeddings, but its near-zero STS correlation and much lower BF16 vector agreement indicate severe quality loss on this task. The machine-readable evaluation summary and reproducibility manifest include the full measurements and method. The initial Q8_0 artifact and BF16 vision/audio projector also passed local text, image, and audio embedding smoke checks.
Quick start
Start an embedding endpoint with llama.cpp:
llama-server \
-m EmbeddingGemma-2-Q8_0.gguf \
--mmproj mmproj-EmbeddingGemma-2-BF16.gguf \
--embedding \
--pooling mean \
--ctx-size 8192 \
--port 8080
Send an English search query using the model's task prefix:
curl http://localhost:8080/v1/embeddings \
-H 'Content-Type: application/json' \
-d '{"model":"EmbeddingGemma-2","input":"task: search result | query: What causes the northern lights?"}'
For text-only workloads, omit --mmproj. For documents, use title: {title} | text: {content} or title: none | text: {content} when there is no title. Keep query and document vectors at the same dimension. The server returns normalized vectors by default.
Reproducibility and validation
See the reproducibility manifest, artifact measurements, and SHA256 checksums. The manifest records the locked upstream revision and model hash, BF16 GGUF source, converter/runtime revision, model-specific calibration/imatrix, quantization commands, and smoke profile. Raw conversion, imatrix, quantization, and validation logs are kept locally and are not part of this repository.
License and attribution
The upstream model is licensed under Apache 2.0. These are community GGUF quantizations, not an official Google or Google DeepMind release or endorsement.