Midden models

Core ML conversions of two models, downloaded by the Midden app for search by meaning. Run on the CPU through Core ML; no third-party runtime.

Folder Original License
embeddinggemma-300m google/embeddinggemma-300m Gemma Terms of Use
gte-multilingual-reranker-base Alibaba-NLP/gte-multilingual-reranker-base Apache 2.0

Each folder holds model.mlpackage (half-precision compute, weights in 8 bits, linear, blocks of 32; inputs input_ids and attention_mask, any batch up to 16 and length up to 512) and the original tokenizer.json.

  • EmbeddingGemma: the output embedding is not normalized; divide by its length. Queries take the prefix task: search result | query: , documents title: none | text: . The two dense layers are multiplied into one, and the residual stream is kept 32 times smaller so it fits half precision; neither changes the result. Against the original on 36 Polish and English texts: cosine 0.998 at worst.
  • gte reranker: the output scores is one logit per <s> query </s></s> document </s> row. It ordered the reference passages as the original does.

EmbeddingGemma is a Gemma model: its use is subject to the Gemma Terms of Use and the Gemma Prohibited Use Policy, which pass on to anyone who uses these files. The weights were modified as described above (converted and quantized).

Downloads last month
16
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support