This Model2Vec model is pre-trained using Tokenlearn on all languages in the C4 dataset. It is a distilled version of the BAAI/bge-m3 Sentence Transformer. It uses static embeddings, allowing text embeddings to be computed orders of magnitude faster on both GPU and CPU. It is designed for applications where computational resources are limited or where real-time performance is critical.
potion-multilingual-128M is a multilingual model, trained on 101 languages, and is capable of generating embeddings for any text in any language. The model produces 256 dimensional embeddings, and has a theoretically unlimited context length since embeddings are static (pre-computed).
Install model2vec using pip:
pip install model2vec
The Model2Vec library is the fastest and most lightweight way to run Model2Vec models.
Load this model using the from_pretrained method:
from model2vec import StaticModel
# Load a pretrained Model2Vec model
model = StaticModel.from_pretrained("minishlab/potion-multilingual-128M")
# Compute text embeddings
embeddings = model.encode(["Example sentence"])
Model2vec creates a small, static model that outperforms other static embedding models by a large margin on all tasks on MTEB. This model is pre-trained using Tokenlearn. It's created using the following steps:
The results for this model can be found on the Model2Vec results page.
| Model | Mean (Task) | Mean (TaskType) | BitMining | Class | Clust | InstRet | MultiClass | PairClass | Rank | Ret | STS |
|---|---|---|---|---|---|---|---|---|---|---|---|
| LaBSE | 52.07 | 45.65 | 76.35 | 54.60 | 38.08 | -3.00 | 20.12 | 75.97 | 50.20 | 33.17 | 65.35 |
| potion-multilingual-128M | 47.31 | 40.40 | 40.72 | 52.36 | 38.80 | -2.08 | 15.95 | 71.39 | 47.39 | 37.86 | 61.23 |
| static-similarity-mrl-multilingual-v1 | 47.24 | 41.38 | 50.62 | 48.60 | 30.67 | -1.24 | 14.74 | 74.34 | 49.45 | 41.21 | 64.02 |
| M2V_multilingual_output | 42.13 | 35.89 | 36.88 | 49.75 | 30.09 | -0.07 | 14.34 | 69.74 | 41.51 | 25.42 | 55.33 |
The results show that potion-multilingual-128M is the most performant static multilingual model, reaching 90.86% of the performance of LaBSE with a mean task score of 47.31 while being orders of magnitude faster.
For full results, see the MTEB leaderboard.
Model2Vec was developed by the Minish Lab team consisting of Stephan Tulkens and Thomas van Dongen.
If you use Model2Vec in your research, please cite the following:
@software{minishlab2024model2vec,
author = {Stephan Tulkens and {van Dongen}, Thomas},
title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.17270888},
url = {https://github.com/MinishLab/model2vec},
license = {MIT}
}
This Model2Vec model is pre-trained using Tokenlearn on all languages in the C4 dataset. It is a distilled version of the BAAI/bge-m3 Sentence Transformer. It uses static embeddings, allowing text embeddings to be computed orders of magnitude faster on both GPU and CPU. It is designed for applications where computational resources are limited or where real-time performance is critical.
potion-multilingual-128M is a multilingual model, trained on 101 languages, and is capable of generating embeddings for any text in any language. The model produces 256 dimensional embeddings, and has a theoretically unlimited context length since embeddings are static (pre-computed).
Install model2vec using pip:
pip install model2vec
The Model2Vec library is the fastest and most lightweight way to run Model2Vec models.
Load this model using the from_pretrained method:
from model2vec import StaticModel
# Load a pretrained Model2Vec model
model = StaticModel.from_pretrained("minishlab/potion-multilingual-128M")
# Compute text embeddings
embeddings = model.encode(["Example sentence"])
Model2vec creates a small, static model that outperforms other static embedding models by a large margin on all tasks on MTEB. This model is pre-trained using Tokenlearn. It's created using the following steps:
The results for this model can be found on the Model2Vec results page.
| Model | Mean (Task) | Mean (TaskType) | BitMining | Class | Clust | InstRet | MultiClass | PairClass | Rank | Ret | STS |
|---|---|---|---|---|---|---|---|---|---|---|---|
| LaBSE | 52.07 | 45.65 | 76.35 | 54.60 | 38.08 | -3.00 | 20.12 | 75.97 | 50.20 | 33.17 | 65.35 |
| potion-multilingual-128M | 47.31 | 40.40 | 40.72 | 52.36 | 38.80 | -2.08 | 15.95 | 71.39 | 47.39 | 37.86 | 61.23 |
| static-similarity-mrl-multilingual-v1 | 47.24 | 41.38 | 50.62 | 48.60 | 30.67 | -1.24 | 14.74 | 74.34 | 49.45 | 41.21 | 64.02 |
| M2V_multilingual_output | 42.13 | 35.89 | 36.88 | 49.75 | 30.09 | -0.07 | 14.34 | 69.74 | 41.51 | 25.42 | 55.33 |
The results show that potion-multilingual-128M is the most performant static multilingual model, reaching 90.86% of the performance of LaBSE with a mean task score of 47.31 while being orders of magnitude faster.
For full results, see the MTEB leaderboard.
Model2Vec was developed by the Minish Lab team consisting of Stephan Tulkens and Thomas van Dongen.
If you use Model2Vec in your research, please cite the following:
@software{minishlab2024model2vec,
author = {Stephan Tulkens and {van Dongen}, Thomas},
title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.17270888},
url = {https://github.com/MinishLab/model2vec},
license = {MIT}
}