Views
No views yet
pip install model2vecfrom_pretrained method:1from model2vec import StaticModel
2
3# Load a pretrained Model2Vec model
4model = StaticModel.from_pretrained("blobbybob/potion-256d-v3")
5
6# Compute text embeddings
7embeddings = model.encode(["Example sentence"])| Model | STS | Classification | PairClassification | CatAVG |
|---|---|---|---|---|
| potion-256d-v3 | 79.32 | 63.23 | 73.97 | 72.17 |
| potion-base-32M | 78.97 | 61.42 | 69.18 | 69.86 |
| all-MiniLM-L6-v2 | 78.95 | 69.25 | 82.37 | 74.65 |
| GloVe 300d | 61.52 | 62.73 | 72.48 | 61.45 |
1@software{minishlab2024model2vec,
2 author = {Stephan Tulkens and {van Dongen}, Thomas},
3 title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
4 year = {2024},
5 publisher = {Zenodo},
6 doi = {10.5281/zenodo.17270888},
7 url = {https://github.com/MinishLab/model2vec},
8 license = {MIT}
9}