Downloads · 30 days
92
10% of all-time downloads
tss-deposium/m2v-bge-m3-1024d
m2v-bge-m3-1024d is a machine learning model from tss-deposium. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for model2vec. The card lists the license as mit.
A high-performance Model2Vec distilled embedding model based on BAAI/bge-m3.
Downloads · 30 days
92
10% of all-time downloads
All-time downloads
942
Public
Parameters
256M
514 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors514 MB · 98%
How the weights are stored.
F16256M · 100%
From the Hugging Face model README
A high-performance Model2Vec distilled embedding model based on BAAI/bge-m3.
Key Features:
| 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 |
pip install model2vec
# or
pip install sentence-transformers
from model2vec import StaticModel
# Load the model
model = StaticModel.from_pretrained("tss-deposium/m2v-bge-m3-1024d")
# Compute embeddings
embeddings = model.encode(["Hello world", "Bonjour le monde"])
print(embeddings.shape) # (2, 1024)
from sentence_transformers import SentenceTransformer
# Load the model
model = SentenceTransformer("tss-deposium/m2v-bge-m3-1024d")
# Compute embeddings
embeddings = model.encode(["Hello world", "Bonjour le monde"])
from model2vec import StaticModel
import numpy as np
model = StaticModel.from_pretrained("tss-deposium/m2v-bge-m3-1024d")
# Similar sentences
sent1 = "I want to find financial documents"
sent2 = "Looking for finance-related files"
# Different sentence
sent3 = "The weather is nice today"
emb1, emb2, emb3 = model.encode([sent1, sent2, sent3])
def cosine_sim(a, b):
return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
print(f"Similar: {cosine_sim(emb1, emb2):.3f}") # ~0.85
print(f"Different: {cosine_sim(emb1, emb3):.3f}") # ~0.55
Model2Vec distills a Sentence Transformer by:
This results in embeddings that are 500x faster with only moderate quality loss.
@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}
}
@misc{bge-m3,
title={BGE M3-Embedding},
author={Chen, Jianlv and Xiao, Shitao and Zhang, Peitian and Luo, Kun and Lian, Defu and Liu, Zheng},
year={2024},
publisher={Hugging Face}
}
MIT License - Same as base BGE-M3 model.
Created by: The Seed Ship / Deposium Project