479 1 month ago

Compact text embeddings: 768-dimensional vectors, with a 156.94 MB default and a 182.04 MB alternative. Measured Q4_K_S: nDCG@10 0.5754, Recall@10 0.6588 on BEIR SciFact and FiQA test queries, full corpora, equal-domain average.

embedding
ollama pull turintech/embeddinggemma-2-artemis

Details

1 month ago

eaef46e46222 · 157MB

gemma-embedding2
·
271M
·
Q4_K_M
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR US
{ "num_ctx": 512 }

Readme

EmbeddingGemma 2 Artemis

EmbeddingGemma 2 for search and retrieval on a CPU, compressed with Artemis.

  • Download: 156.935 MB for the default file, embeddinggemma-2-Artemis-Q4_K_S.gguf.
  • Recall@10, BEIR test: 0.6588 (Unsloth UD-Q4_K_XL 0.6427).

Use the embedding API

Start Ollama, then pull the exact default:

ollama pull turintech/embeddinggemma-2-artemis:q4_k_s
curl http://localhost:11434/api/embed -H 'Content-Type: application/json' -d '{
  "model": "turintech/embeddinggemma-2-artemis:q4_k_s",
  "input": [
    "task: search result | query: How does photosynthesis work?",
    "title: Photosynthesis | text: Plants use light energy to convert carbon dioxide and water into sugars."
  ],
  "truncate": false,
  "options": {"num_ctx": 512, "num_thread": 2, "num_gpu": 0}
}'

Results

File Size nDCG@10 Recall@10
TurinTech Q4_K_S 156.935 MB 0.5754 0.6588
Unsloth UD-Q4_K_XL 175.674 MB 0.5738 0.6427
FP32 original n/a 0.5833 0.6541

Equal-weight means of SciFact (300 queries, 5,183 documents) and FiQA (648 queries, 57,638 documents): BEIR test queries, each ranked against its dataset’s full corpus. The records of how the files were chosen do not mention these queries. One gap holds after correcting for four planned tests: Recall@10 of our Q4_K_S over Unsloth’s UD-Q4_K_XL (0.6588 against 0.6427, Bonferroni p 0.043). The default’s nDCG@10 did not separate from Unsloth’s file (0.5754 against 0.5738) or from the original (0.5833), and the plan did not test our Q5_K_S. How it was tested.

Files

File Size Use it for
embeddinggemma-2-Artemis-Q4_K_S.gguf 157 MB Default: the smaller download, Ollama tag q4_k_s (latest)
embeddinggemma-2-Artemis-Q5_K_S.gguf 182 MB Larger file with higher measured nDCG@10 than the default, Ollama tag q5_k_s

Limitations

  • Mixed tensor allocation; quant label is a measured K-quant size class.
  • No established speed or memory advantage.
  • The numbers come from llama.cpp, not from Ollama or LM Studio.

Questions

Ask on Discord.

Licence

Licence: Apache 2.0.