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 History
-
Update README.md
0b2f225
-
Upload 9 files
724f6ed -
Upload 2 files
20da12f -
Upload config.json
06107f0 -
Update README.md
69638c4
-
Update README.md
1304b68 -
Update README.md
8f18893
-
Update README.md
1a492e5
-
Update README.md
29ec90b -
cd after clone (#2)
- cd after clone (0d9d8764374978fef05d39358583ade511710005) Co-authored-by: Tianbao Xie <tianbaoxiexxx@users.noreply.huggingface.co>6019cfc -
Update README.md
1e69030 -
Update README.md
a3d84cd -
Update README.md
503f576 -
fix typo (#1)
- fix typo (66d89bdaa508c9416e80cc1a3869ae05294326d5) Co-authored-by: Tianbao Xie <tianbaoxiexxx@users.noreply.huggingface.co>08e116c -
Update README.md
557c0ce
-
Update README.md
6bbadc0 -
Update README.md
88f06d6 -
Update README.md
48e04e4 -
Update README.md
bf36312 -
Upload 10 files
7edca84 -
Upload pytorch_model.bin
2c17e50 -
Upload pytorch_model.bin
e75b1a4 -
Create 2_Dense/config.json
3088d18 -
Create 1_Pooling/config.json
6760231 -
initial commit
1b0579e