Sentence Similarity
sentence-transformers
PyTorch
Transformers
English
t5
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
prompt-retrieval
text-reranking
feature-extraction
English
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
Eval Results (legacy)
Instructions to use hkunlp/instructor-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hkunlp/instructor-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hkunlp/instructor-base") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use hkunlp/instructor-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hkunlp/instructor-base") model = AutoModel.from_pretrained("hkunlp/instructor-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
1a492e5
1
Parent(s): 29ec90b
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,6 +7,24 @@ tags:
|
|
| 7 |
- feature-extraction
|
| 8 |
- sentence-similarity
|
| 9 |
- transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# hkunlp/instructor-base
|
|
|
|
| 7 |
- feature-extraction
|
| 8 |
- sentence-similarity
|
| 9 |
- transformers
|
| 10 |
+
- t5
|
| 11 |
+
- English
|
| 12 |
+
- Sentence Similarity
|
| 13 |
+
- natural_questions
|
| 14 |
+
- ms_marco
|
| 15 |
+
- fever
|
| 16 |
+
- hotpot_qa
|
| 17 |
+
- beir
|
| 18 |
+
- information-retrieval
|
| 19 |
+
- text-classification
|
| 20 |
+
- embeddings
|
| 21 |
+
- language-model
|
| 22 |
+
- text-embedding
|
| 23 |
+
- text-clustering
|
| 24 |
+
- text-semantic-similarity
|
| 25 |
+
- text-evaluation
|
| 26 |
+
- prompt-retrieval
|
| 27 |
+
- text-reranking
|
| 28 |
---
|
| 29 |
|
| 30 |
# hkunlp/instructor-base
|