You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-8Lines changed: 46 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,27 @@
1
-
# model2vec-rs
2
1
3
-
This crate provides a lightweight Rust implementation for loading and running inference on [Model2Vec](https://github.com/MinishLab/model2vec) static embedding models from either local folders or the Hugging Face Hub.
This crate provides a lightweight Rust implementation for loading and inference of [Model2Vec](https://github.com/MinishLab/model2vec) static embedding models. For distillation and training, the [Python Model2Vec package](https://github.com/MinishLab/model2vec) can be used.
@@ -62,6 +72,34 @@ let embeddings = model.encode_with_args(
62
72
);
63
73
```
64
74
75
+
## Models
76
+
77
+
We provide a number of models that can be used out of the box. These models are available on the [HuggingFace hub](https://huggingface.co/collections/minishlab/model2vec-base-models-66fd9dd9b7c3b3c0f25ca90e) and can be loaded using the `from_pretrained` method. The models are listed below.
78
+
79
+
80
+
81
+
| Model | Language | Sentence Transformer | Params | Task |
|[potion-base-32M](https://huggingface.co/minishlab/potion-base-32M)| English |[bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)| 32.3M | General |
84
+
|[potion-base-8M](https://huggingface.co/minishlab/potion-base-8M)| English |[bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)| 7.5M | General |
85
+
|[potion-base-4M](https://huggingface.co/minishlab/potion-base-4M)| English |[bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)| 3.7M | General |
86
+
|[potion-base-2M](https://huggingface.co/minishlab/potion-base-2M)| English |[bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)| 1.8M | General |
87
+
|[potion-retrieval-32M](https://huggingface.co/minishlab/potion-retrieval-32M)| English |[bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)| 32.3M | Retrieval |
88
+
|[M2V_multilingual_output](https://huggingface.co/minishlab/M2V_multilingual_output)| Multilingual |[LaBSE](https://huggingface.co/sentence-transformers/LaBSE)| 471M | General |
89
+
90
+
91
+
## Performance
92
+
93
+
We compared the performance of the Rust implementation with the Python version of Model2Vec. The benchmark was run single-threaded on a CPU.
0 commit comments