embeddingmagibu2 is a Turkish-focused multilingual embedding model built from google/embeddinggemma-2 and the Turkish-optimized magibu/Altus tokenizer.
Status: training in progress. See Training progress below for the latest metrics.
Offline distillation from google/embeddinggemma-2 is in progress; this table is updated automatically at every release.
Latest release: phase6-train-full-done. Phases: test/new → test/full → validation/new → validation/full → train/new → train/full
(new: only the new Turkish token embeddings train; full: all embeddings + text backbone at a low learning rate).
Metrics on 2,048 held-out validation rows: cosine to the teacher's document embeddings for Turkish and for the other
languages, their mean (score), and STSbTR test Spearman.
| Release | Step | cos_doc_tr | cos_doc_other | score | STSbTR Spearman | Time (UTC) |
|---|---|---|---|---|---|---|
| initial (untrained) | 0 | 0.9314 | 0.9789 | 0.9551 | 0.5867 | 2026-10-10 14:21 |
| phase1-test-new-done | 600 | 0.9328 | 0.9802 | 0.9565 | 0.5900 | 2026-10-10 14:46 |
| phase2-test-full-step1600 | 1600 | 0.9478 | 0.9837 | 0.9658 | 0.5946 | 2026-10-10 16:58 |
| phase2-test-full-done | 1812 | 0.9497 | 0.9839 | 0.9668 | 0.5987 | 2026-10-10 17:26 |
| phase3-validation-new-done | 2212 | 0.9497 | 0.9839 | 0.9668 | 0.5987 | 2026-10-10 17:45 |
| phase4-validation-full-step3212 | 3212 | 0.9553 | 0.9848 | 0.9700 | 0.6076 | 2026-10-10 19:59 |
| phase4-validation-full-done | 4412 | 0.9568 | 0.9848 | 0.9708 | 0.6117 | 2026-10-10 22:44 |
| phase5-train-new-done | 4812 | 0.9568 | 0.9848 | 0.9708 | 0.6117 | 2026-10-10 23:07 |
| phase6-train-full-done | 5612 | 0.9568 | 0.9848 | 0.9708 | 0.6117 | 2026-10-11 00:56 |
It follows the tokenizer-surgery + offline-distillation pipeline of Adapting Multilingual Embedding Models to Turkish via Cross-Lingual Tokenizer Surgery and Offline Distillation.
merged-to-original-token-ids.json),
e.g. ağ ← mean(a, ğ). All other weights are the teacher's, unchanged.title: {title} | text: {text}) and title queries (task: search result | query: {title}).
Texts are clipped so they fit in 8,192 tokens under both the teacher and the Altus tokenizer,
so student and teacher always see identical inputs.| Base model | google/embeddinggemma-2 |
| Tokenizer | magibu/Altus (BPE, 262,144 tokens) |
| Embedding dimension | 768, L2-normalized |
| Max sequence length | 8,192 tokens |
| Pooling | mean |
| Parameters | ~744M total (text model ~271M; vision and audio towers inherited from the base model) |
Tokens needed for the same Wikipedia text, Altus vs. the original tokenizer (6,000-article sample):
| Language | Altus / original |
|---|---|
| Turkish | 0.79× (21% fewer tokens) |
| Most other languages | 1.02–1.08× |
| Russian, Bulgarian | 1.10–1.15× |
Fewer Turkish tokens means more Turkish text fits into the 8K context and inference is faster.
Use the same prompts as EmbeddingGemma: a query prompt for queries and a document prompt for documents.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("alibayram/embeddingmagibu2-a100-lr")
queries = ["Türkiye'nin başkenti neresidir?"]
documents = [
"Ankara, Türkiye'nin başkentidir ve İç Anadolu Bölgesi'nde yer alır.",
"İstanbul, Türkiye'nin en kalabalık şehridir.",
]
query_embeddings = model.encode(queries, prompt_name="query")
document_embeddings = model.encode(documents, prompt_name="document")
print(model.similarity(query_embeddings, document_embeddings))
@misc{bayram2026embeddingmagibu,
title = {Adapting Multilingual Embedding Models to Turkish via Cross-Lingual Tokenizer Surgery and Offline Distillation},
author = {Bayram, M. Ali and Diri, Banu and Y{\i}ld{\i}r{\i}m, Sava{\c{s}}},
year = {2026},
eprint = {2605.29992},
archivePrefix = {arXiv},
primaryClass = {cs.CL}
}
Developed by Magibu AI Research.
google/embeddinggemma-2