Views
No views yet
google/embeddinggemma-300m. Static
embeddings are a lookup table: no transformer runs at inference, so encoding is on the order of
10,000× faster than the teacher on CPU, at the cost of word order and context.google/embeddinggemma-300m — 255,732 entries, 13,754 of them Devanagari1from model2vec import StaticModel
2
3model = StaticModel.from_pretrained("karthikrajgopal/distilled-embeddinggemma")
4embeddings = model.encode(["धर्मक्षेत्रे कुरुक्षेत्रे", "the field of dharma"])| encoder | Devanagari | IAST | English gloss | English paraphrase | mean |
|---|---|---|---|---|---|
embeddinggemma-300m (ONNX teacher) | 1.000 | 1.000 | 0.806 | 0.590 | 0.849 |
| distilled-embeddinggemma | 1.000 | 0.979 | 0.654 | 0.396 | 0.757 |
potion-multilingual-128M | 1.000 | 0.979 | 0.577 | 0.382 | 0.735 |
potion-multilingual-128M, the strongest general-purpose multilingual static model, on the
cross-lingual legs — which is the whole reason to distil from a Gemma teacher rather than use an
off-the-shelf static model.dharmakṣetre is one
token, so an English query for "field of dharma" gets little help from the encoder. In the system
this was built for, that gap is closed outside the encoder — by indexing lemmas and
Monier-Williams glosses alongside the text, which moved English-paraphrase retrieval further than
swapping the encoder did. Treat this model as the fast retrieval leg of a hybrid system, not as a
standalone answer to cross-lingual Sanskrit search.google/embeddinggemma-300m, carries its own
Gemma terms of use — check those before redistributing derivatives.