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 t12e/instructor-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use t12e/instructor-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("t12e/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 t12e/instructor-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("t12e/instructor-base") model = AutoModel.from_pretrained("t12e/instructor-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download __pycache__/handler.cpython-310.pyc from t12e/instructor-base: direct link, hf CLI and curl.
- Browser
- Download file 926 Bytes
-
https://huggingface.co/t12e/instructor-base/resolve/main/__pycache__/handler.cpython-310.pyc
- Command line
-
hf download hf://t12e/instructor-base/__pycache__/handler.cpython-310.pyc
-
curl -L -o handler.cpython-310.pyc https://huggingface.co/t12e/instructor-base/resolve/main/__pycache__/handler.cpython-310.pyc
926 Bytes
This file contains binary data. It cannot be displayed, but you can still download it.