加载中…
加载中…
A high-quality static embedding model that outperforms potion-base-32M — trained on 2M C4 sentences with tokenlearn contrastive pre-training.
| Model | STS | Classification | PairClassification | Avg | Size |
|---|---|---|---|---|---|
| potion-mxbai-2m-512d (this) | 74.15 | 65.44 | 76.80 | 72.13 | ~125MB |
| potion-mxbai-256d-v2 | 71.92 | 63.05 | 73.99 | 69.65 | 7.2MB (int8) |
| potion-mxbai-128d-v2 | 70.81 | 60.62 | 72.46 | 67.97 | 3.6MB (int8) |
Evaluated on 25 tasks (10 STS, 12 Classification, 3 PairClassification), English subsets only.
| Model | Avg | Size | Best for |
|---|---|---|---|
| potion-mxbai-2m-512d | 72.13 | ~125MB | Maximum quality |
| potion-mxbai-256d-v2 | 69.65 | 7.2MB (int8) | Best quality/size balance |
| potion-mxbai-128d-v2 | 67.97 | 3.6MB (int8) | Extreme size constraints |
from model2vec import StaticModel
model = StaticModel.from_pretrained("blobbybob/potion-mxbai-2m-512d")
embeddings = model.encode(["Hello world", "Static embeddings are fast"])
With Sentence Transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("blobbybob/potion-mxbai-2m-512d")
embeddings = model.encode(["Hello world", "Static embeddings are fast"])
@article{minishlab2024model2vec,
author = {Tulkens, Stephan and {van Dongen}, Thomas},
title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
year = {2024},
url = {https://github.com/MinishLab/model2vec}
}