stephantulkens commited on
Commit
b95328a
1 Parent(s): 03f10bc

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +23 -15
  2. model.safetensors +3 -0
README.md CHANGED
@@ -1,20 +1,15 @@
1
  ---
2
- base_model: BAAI/bge-base-en-v1.5
3
- language:
4
- - en
5
  library_name: model2vec
6
  license: mit
7
- model_name: M2V_base_output
8
  tags:
9
  - embeddings
10
  - static-embeddings
11
  ---
12
 
13
- # M2V_base_output Model Card
14
-
15
- Model2Vec distills a Sentence Transformer into a small, static model.
16
- This model is ideal for applications requiring fast, lightweight embeddings.
17
 
 
18
 
19
 
20
  ## Installation
@@ -25,10 +20,14 @@ pip install model2vec
25
  ```
26
 
27
  ## Usage
28
- A StaticModel can be loaded using the `from_pretrained` method:
29
  ```python
30
  from model2vec import StaticModel
 
 
31
  model = StaticModel.from_pretrained("minishlab/M2V_base_output")
 
 
32
  embeddings = model.encode(["Example sentence"])
33
  ```
34
 
@@ -52,16 +51,25 @@ Model2vec creates a small, fast, and powerful model that outperforms other stati
52
 
53
  It works by passing a vocabulary through a sentence transformer model, then reducing the dimensionality of the resulting embeddings using PCA, and finally weighting the embeddings using zipf weighting. During inference, we simply take the mean of all token embeddings occurring in a sentence.
54
 
55
- ## Citation
56
-
57
- Please cite the [Model2Vec repository](https://github.com/MinishLab/model2vec) if you use this model in your work.
58
-
59
  ## Additional Resources
60
 
 
61
  - [Model2Vec Repo](https://github.com/MinishLab/model2vec)
62
  - [Model2Vec Results](https://github.com/MinishLab/model2vec?tab=readme-ov-file#results)
63
  - [Model2Vec Tutorials](https://github.com/MinishLab/model2vec/tree/main/tutorials)
64
 
65
- ## Model Authors
 
 
 
 
66
 
67
- Model2Vec was developed by the [Minish Lab](https://github.com/MinishLab) team consisting of Stephan Tulkens and Thomas van Dongen.
 
 
 
 
 
 
 
 
 
1
  ---
 
 
 
2
  library_name: model2vec
3
  license: mit
4
+ model_name: minishlab/M2V_base_output
5
  tags:
6
  - embeddings
7
  - static-embeddings
8
  ---
9
 
10
+ # minishlab/M2V_base_output Model Card
 
 
 
11
 
12
+ This [Model2Vec](https://github.com/MinishLab/model2vec) model is a distilled version of a Sentence Transformer. It uses static embeddings, allowing text embeddings to be computed orders of magnitude faster on both GPU and CPU. It is designed for applications where computational resources are limited or where real-time performance is critical.
13
 
14
 
15
  ## Installation
 
20
  ```
21
 
22
  ## Usage
23
+ Load this model using the `from_pretrained` method:
24
  ```python
25
  from model2vec import StaticModel
26
+
27
+ # Load a pretrained Model2Vec model
28
  model = StaticModel.from_pretrained("minishlab/M2V_base_output")
29
+
30
+ # Compute text embeddings
31
  embeddings = model.encode(["Example sentence"])
32
  ```
33
 
 
51
 
52
  It works by passing a vocabulary through a sentence transformer model, then reducing the dimensionality of the resulting embeddings using PCA, and finally weighting the embeddings using zipf weighting. During inference, we simply take the mean of all token embeddings occurring in a sentence.
53
 
 
 
 
 
54
  ## Additional Resources
55
 
56
+ - [All Model2Vec models on the hub](https://huggingface.co/models?library=model2vec)
57
  - [Model2Vec Repo](https://github.com/MinishLab/model2vec)
58
  - [Model2Vec Results](https://github.com/MinishLab/model2vec?tab=readme-ov-file#results)
59
  - [Model2Vec Tutorials](https://github.com/MinishLab/model2vec/tree/main/tutorials)
60
 
61
+ ## Library Authors
62
+
63
+ Model2Vec was developed by the [Minish Lab](https://github.com/MinishLab) team consisting of [Stephan Tulkens](https://github.com/stephantul) and [Thomas van Dongen](https://github.com/Pringled).
64
+
65
+ ## Citation
66
 
67
+ Please cite the [Model2Vec repository](https://github.com/MinishLab/model2vec) if you use this model in your work.
68
+ ```
69
+ @software{minishlab2024model2vec,
70
+ authors = {Stephan Tulkens, Thomas van Dongen},
71
+ title = {Model2Vec: Turn any Sentence Transformer into a Small Fast Model},
72
+ year = {2024},
73
+ url = {https://github.com/MinishLab/model2vec},
74
+ }
75
+ ```
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b92697b5376a9416a4c761c3a193ce536b8a178ae52c5cf52b0af3266b73b3f
3
+ size 30236760