加载中…
加载中…
An ultra-compact static embedding model at just 3.9MB — 16x smaller than the 512D baseline while retaining 98% of its quality.
| Model | STS | Classification | PairClassification | Avg | Size (int8) |
|---|---|---|---|---|---|
| potion-mxbai-2m-512d | 74.15 | 65.44 | 76.80 | 72.13 | ~125MB |
| potion-mxbai-256d-v2 | 73.79 | 63.23 | 77.33 | 71.45 | 7.5MB |
| potion-mxbai-128d-v2 (this) | 72.56 | 61.48 | 75.45 | 69.83 | 3.9MB |
Evaluated on 25 tasks (10 STS, 12 Classification, 3 PairClassification), English subsets only, identical eval code across all models.
from model2vec import StaticModel
# INT8 quantized (3.9MB)
model = StaticModel.from_pretrained("blobbybob/potion-mxbai-128d-v2")
embeddings = model.encode(["Hello world", "Static embeddings are fast"])
With Sentence Transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("blobbybob/potion-mxbai-128d-v2")
embeddings = model.encode(["Hello world", "Static embeddings are fast"])
| Model | Avg | Size (int8) | Best for |
|---|---|---|---|
| potion-mxbai-2m-512d | 72.13 | ~125MB | Maximum quality |
| potion-mxbai-256d-v2 | 71.45 | 7.5MB | Best quality/size balance |
| potion-mxbai-128d-v2 | 69.83 | 3.9MB | Compact deployments |
| potion-mxbai-micro | 68.91 | 0.7MB | Ultra-tiny / embedded |
@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}
}