-
sentence-transformers/gooaq
Viewer • Updated • 3.01M • 524 • 19 -
sentence-transformers/yahoo-answers
Viewer • Updated • 3.14M • 246 • 3 -
sentence-transformers/msmarco-msmarco-distilbert-base-tas-b
Viewer • Updated • 86.3M • 1.38k • 4 -
sentence-transformers/msmarco-msmarco-distilbert-base-v3
Viewer • Updated • 88.9M • 1.12k • 2

Sentence Transformers
university
AI & ML interests
In the following you find models tuned to be used for sentence / text embedding generation. They can be used with the sentence-transformers package.
Recent Activity
View all activity
Organization Card
SentenceTransformers 🤗 is a Python framework for state-of-the-art sentence, text and image embeddings.
Install the Sentence Transformers library.
pip install -U sentence-transformers
The usage is as simple as:
from sentence_transformers import SentenceTransformer
# 1. Load a pretrained Sentence Transformer model
model = SentenceTransformer("all-MiniLM-L6-v2")
# The sentences to encode
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium.",
]
# 2. Calculate embeddings by calling model.encode()
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 384]
# 3. Calculate the embedding similarities
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.6660, 0.1046],
# [0.6660, 1.0000, 0.1411],
# [0.1046, 0.1411, 1.0000]])
Hugging Face makes it easy to collaboratively build and showcase your Sentence Transformers models! You can collaborate with your organization, upload and showcase your own models in your profile ❤️

Documentation

Push your Sentence Transformers models to the Hub ❤️

Find all Sentence Transformers models on the 🤗 Hub
To upload your Sentence Transformers models to the Hugging Face Hub, log in with huggingface-cli login
and use the save_to_hub
method within the Sentence Transformers library.
from sentence_transformers import SentenceTransformer
# Load or train a model
model = SentenceTransformer(...)
# Push to Hub
model.push_to_hub("my_new_model")
Collections
4
A curated subset of the datasets that work out of the box with Sentence Transformers: https://huggingface.co./datasets?other=sentence-transformers
These datasets all have "english" and "non_english" columns for numerous datasets. They can be used to make embedding models multilingual.
-
sentence-transformers/parallel-sentences-wikititles
Viewer • Updated • 14.7M • 186 • 1 -
sentence-transformers/parallel-sentences-tatoeba
Viewer • Updated • 8.35M • 1.68k -
sentence-transformers/parallel-sentences-talks
Viewer • Updated • 19.6M • 5.92k • 10 -
sentence-transformers/parallel-sentences-europarl
Viewer • Updated • 49.7M • 1.03k • 1
spaces
3
models
126

sentence-transformers/static-similarity-mrl-multilingual-v1
Sentence Similarity
•
Updated
•
•
51

sentence-transformers/static-retrieval-mrl-en-v1
Sentence Similarity
•
Updated
•
31

sentence-transformers/xlm-r-base-en-ko-nli-ststb
Sentence Similarity
•
Updated
•
1.2k
•
1

sentence-transformers/bert-base-wikipedia-sections-mean-tokens
Sentence Similarity
•
Updated
•
286

sentence-transformers/bert-base-nli-cls-token
Sentence Similarity
•
Updated
•
1.49k
•
2

sentence-transformers/all-MiniLM-L12-v1
Sentence Similarity
•
Updated
•
17.2k
•
•
13

sentence-transformers/all-MiniLM-L6-v1
Sentence Similarity
•
Updated
•
96.5k
•
16

sentence-transformers/all-mpnet-base-v1
Sentence Similarity
•
Updated
•
10.2k
•
10

sentence-transformers/facebook-dpr-ctx_encoder-multiset-base
Sentence Similarity
•
Updated
•
19.4k
•
4

sentence-transformers/facebook-dpr-ctx_encoder-single-nq-base
Sentence Similarity
•
Updated
•
1.91k
datasets
90
sentence-transformers/NanoTouche2020-bm25
Viewer
•
Updated
•
5.84k
•
29
sentence-transformers/NanoSciFact-bm25
Viewer
•
Updated
•
3.02k
•
32
sentence-transformers/NanoArguAna-bm25
Viewer
•
Updated
•
3.74k
•
15
sentence-transformers/NanoSCIDOCS-bm25
Viewer
•
Updated
•
2.31k
•
28
sentence-transformers/NanoQuoraRetrieval-bm25
Viewer
•
Updated
•
5.15k
•
29
sentence-transformers/NanoNQ-bm25
Viewer
•
Updated
•
5.14k
•
55
sentence-transformers/NanoNFCorpus-bm25
Viewer
•
Updated
•
3.05k
•
49
sentence-transformers/NanoMSMARCO-bm25
Viewer
•
Updated
•
5.14k
•
39
sentence-transformers/NanoHotpotQA-bm25
Viewer
•
Updated
•
5.19k
•
28
sentence-transformers/NanoFiQA2018-bm25
Viewer
•
Updated
•
4.7k
•
7