The on-device embedding model of RecMind (ADR-0017). The app downloads these files from a pinned commit of this repository and checks each one against a SHA-256 in its code.
| Source | sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 |
| Source revision | e8f8c211226b894fcb81acc59f3b34ba3efd5f42 |
| Converter | llama.cpp d0b490f25edec147b4dcd69cce31c7d1099dff1d, through tool/embedding_model.py |
| Quantization | q8_0 for the weight matrices and the token embeddings; position and token-type embeddings, biases and norms f32 |
| Pooling | mean |
| License | Apache-2.0, as the source model |
paraphrase-multilingual-MiniLM-L12-v2-q8_0.gguf: the model, architecture bert. Its vocabulary is the
source's SentencePiece Unigram one (tokenizer.ggml.model = t5), in the
Hugging Face id order, because the stock converter would write WordPiece
for this BertModel. That is the only departure from a stock
convert_hf_to_gguf.py --outtype q8_0 run.tokenizer.json: the source's file at the revision above, byte for byte.
RecMind tokenizes in Dart from it and hands token ids to llama.cpp.Tokenize with the Hugging Face tokenizer, not llama.cpp's. Given the same
token ids, the vectors match the fp32 source model at cosine >= 0.9999 in
it, fr, de, en, es and pt. llama.cpp's own tokenizer splits some words
differently (Übermorgen, Perché at the start of a sentence), and the
cosine of such sentences drops to around 0.95.
Vectors are mean-pooled. RecMind L2-normalizes them; sentence-transformers' own pipeline for this model does not.
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2