Views
No views yet
| Task Category | Score |
|---|---|
| STS (Semantic Similarity) | 0.5831 |
| - STSBenchmark | 0.5714 |
| - SICK-R | 0.5947 |
| Classification (kNN) | 0.6564 |
| - Banking77 | 0.8027 |
| - Emotion | 0.5101 |
| Clustering | 0.1771 |
| - TwentyNewsgroups | 0.1771 |
| Overall MTEB | 0.4722 |
| Model | STS | Classification | Size | Latency |
|---|---|---|---|---|
| M2V-BGE-M3-1024d | 0.5831 | 0.6564 | 499 MB | <1ms |
| M2V-Qwen3-0.6B | 0.4845 | 0.5949 | 302 MB | ~1ms |
| POTION-base-8M | ~0.52 | ~0.55 | 30 MB | <1ms |
1pip install model2vec
2# or
3pip install sentence-transformers1from model2vec import StaticModel
2
3# Load the model
4model = StaticModel.from_pretrained("tss-deposium/m2v-bge-m3-1024d")
5
6# Compute embeddings
7embeddings = model.encode(["Hello world", "Bonjour le monde"])
8print(embeddings.shape) # (2, 1024)1from sentence_transformers import SentenceTransformer
2
3# Load the model
4model = SentenceTransformer("tss-deposium/m2v-bge-m3-1024d")
5
6# Compute embeddings
7embeddings = model.encode(["Hello world", "Bonjour le monde"])1from model2vec import StaticModel
2import numpy as np
3
4model = StaticModel.from_pretrained("tss-deposium/m2v-bge-m3-1024d")
5
6# Similar sentences
7sent1 = "I want to find financial documents"
8sent2 = "Looking for finance-related files"
9
10# Different sentence
11sent3 = "The weather is nice today"
12
13emb1, emb2, emb3 = model.encode([sent1, sent2, sent3])
14
15def cosine_sim(a, b):
16 return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
17
18print(f"Similar: {cosine_sim(emb1, emb2):.3f}") # ~0.85
19print(f"Different: {cosine_sim(emb1, emb3):.3f}") # ~0.551@article{minishlab2024model2vec,
2 author = {Tulkens, Stephan and {van Dongen}, Thomas},
3 title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
4 year = {2024},
5 url = {https://github.com/MinishLab/model2vec}
6}
7
8@misc{bge-m3,
9 title={BGE M3-Embedding},
10 author={Chen, Jianlv and Xiao, Shitao and Zhang, Peitian and Luo, Kun and Lian, Defu and Liu, Zheng},
11 year={2024},
12 publisher={Hugging Face}
13}