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-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hkunlp/instructor-xl with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hkunlp/instructor-xl") 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-xl with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hkunlp/instructor-xl") model = AutoModel.from_pretrained("hkunlp/instructor-xl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
ce48b21
-
Upload 2 files
7c65e1a -
Update README.md
47a2cb1
-
Upload 9 files
2400f9e -
Upload 2 files
62ae72d -
Upload config.json
c517e39
-
Update README.md
ed2f160 -
Update README.md
ccd768b
-
Update README.md
0bbb2a0
-
Update README.md
721bfad -
cd after clone (#1)
- cd after clone (83d6a8fb4d541f6b94f5941728f4f5095a9939fd) Co-authored-by: Tianbao Xie <tianbaoxiexxx@users.noreply.huggingface.co>422c3d9 -
Update README.md
2b309db -
Update README.md
40679b6 -
fix typo
e6d3826 -
Update README.md
f2b4625
-
Update README.md
51e835d -
Update README.md
3f6f495 -
Update README.md
7e838ca -
Upload 10 files
718cedb -
Upload pytorch_model.bin
4c2d4e2 -
Create 2_Dense/config.json
8148680 -
Update 1_Pooling/config.json
ff2ab64 -
Create 1_Pooling/config.json
4597ba6 -
initial commit
804363d