from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'The weather is lovely today.',
"It's so sunny outside!",
'He drove to the stadium.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.5664, 0.3789],# [0.5664, 1.0000, 0.3086],# [0.3789, 0.3086, 1.0000]], dtype=torch.bfloat16)
Training Details
Framework Versions
Python: 3.12.3
Sentence Transformers: 5.0.0
Transformers: 4.48.0
PyTorch: 2.5.0+cu121
Accelerate: 1.8.1
Datasets: 3.6.0
Tokenizers: 0.21.2
Citation
BibTeX
Runs of UMCU SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 on huggingface.co
26
Total runs
0
24-hour runs
-1
3-day runs
-12
7-day runs
-8
30-day runs
More Information About SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 huggingface.co Model
SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 huggingface.co is an AI model on huggingface.co that provides SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16's model effect (), which can be used instantly with this UMCU SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 model. huggingface.co supports a free trial of the SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 model, and also provides paid use of the SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16. Support call SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 model through api, including Node.js, Python, http.
SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 huggingface.co is an online trial and call api platform, which integrates SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16's modeling effects, including api services, and provides a free online trial of SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16, you can try SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 online for free by clicking the link below.
UMCU SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 online free url in huggingface.co:
SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 is an open source model from GitHub that offers a free installation service, and any user can find SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 on GitHub to install. At the same time, huggingface.co provides the effect of SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 install, users can directly use SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
SapBERT-from-PubMedBERT-fulltext-mean-token-ST_bf16 install url in huggingface.co: