choosers's picture
multilingual-e5-small Core ML int8 for Jotlio (ADR 0028)
f60c7e2 verified
|
Raw History Blame Contribute Delete
962 Bytes
---
license: mit
base_model: intfloat/multilingual-e5-small
library_name: coreml
tags: [sentence-embeddings, coreml, multilingual]
---
# multilingual-e5-small — Core ML (int8 weights) for Jotlio
A Core ML conversion of [intfloat/multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small)
(revision `614241f622f53c4eeff9890bdc4f31cfecc418b3`, MIT license, © the original authors), used by the
Jotlio app for on-device search. No data is sent anywhere by the model.
- `e5-small-fp32-int8.mlpackage`: input `ids` (1 × n int32 token ids, n ≤ 512, one text per call, no
padding), output `vec` (384, mean-pooled and L2-normalised). fp32 compute, int8 linear-symmetric
weights (coremltools 9). Prefix texts with `query: ` / `passage: ` as the original model requires.
- `e5-small-tokenizer/`: the original tokenizer files of the same revision.
The conversion script is `spikes/rag-ondevice-embedding/coreml.py` in the Jotlio repository.