sentence-transformers/static-similarity-mrl-multilingual-v1, cut to its first 256 Matryoshka dimensions and pruned to European scripts, packaged in the model2vec format.
| Original | This model | |
|---|---|---|
| Vocabulary | 105,879 tokens | 73,845 tokens |
| Embedding dim | 1024 | 256 (first 256 Matryoshka dims) |
| Weights | ~434 MB | ~76 MB |
[UNK].The tokenizer is unchanged otherwise (BERT WordPiece, lowercasing and accent stripping in the normalizer).
tokenizer.json: Hugging Face tokenizers format.model.safetensors: one float32 tensor, embeddings, shape 73,845 × 256.config.json: model2vec config.from model2vec import StaticModel
model = StaticModel.from_pretrained("javierlgroba/m2v-mrl-multilingual-european-256")
embeddings = model.encode(["Duschgel", "shower gel", "gel douche"])
Or pool by hand: tokenize without special tokens, take the mean of the token rows, compare with cosine similarity.
Apache-2.0, same as the base model sentence-transformers/static-similarity-mrl-multilingual-v1.
sentence-transformers/static-similarity-mrl-multilingual-v1