Tom Aarsen
commited on
Commit
•
917a3bb
1
Parent(s):
bf6a735
Update README + metadata
Browse filesinference is still false as specified
Also add Sentence Transformers snippet
README.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
license: apache-2.0
|
3 |
language:
|
4 |
- en
|
5 |
inference: false
|
6 |
-
tags:
|
7 |
-
- mteb
|
8 |
model-index:
|
9 |
- name: epoch_0_model
|
10 |
results:
|
@@ -2660,7 +2666,17 @@ Training data to train the models is released in its entirety. For more details,
|
|
2660 |
|
2661 |
## Usage
|
2662 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2663 |
|
|
|
2664 |
```python
|
2665 |
import torch
|
2666 |
import torch.nn.functional as F
|
|
|
1 |
---
|
2 |
+
library_name: sentence-transformers
|
3 |
+
pipeline_tag: sentence-similarity
|
4 |
+
tags:
|
5 |
+
- feature-extraction
|
6 |
+
- sentence-similarity
|
7 |
+
- mteb
|
8 |
+
- transformers
|
9 |
+
- transformers.js
|
10 |
license: apache-2.0
|
11 |
language:
|
12 |
- en
|
13 |
inference: false
|
|
|
|
|
14 |
model-index:
|
15 |
- name: epoch_0_model
|
16 |
results:
|
|
|
2666 |
|
2667 |
## Usage
|
2668 |
|
2669 |
+
### Sentence Transformers
|
2670 |
+
```python
|
2671 |
+
from sentence_transformers import SentenceTransformer
|
2672 |
+
|
2673 |
+
model = SentenceTransformer("nomic-ai/nomic-embed-text-v1-unsupervised", trust_remote_code=True)
|
2674 |
+
sentences = ['What is TSNE?', 'Who is Laurens van der Maaten?']
|
2675 |
+
embeddings = model.encode(sentences)
|
2676 |
+
print(embeddings)
|
2677 |
+
```
|
2678 |
|
2679 |
+
### Transformers
|
2680 |
```python
|
2681 |
import torch
|
2682 |
import torch.nn.functional as F
|