Sentence Similarity
sentence-transformers
PyTorch
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use gubartz/st_scibert_pubmed_rct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use gubartz/st_scibert_pubmed_rct with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("gubartz/st_scibert_pubmed_rct") 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 gubartz/st_scibert_pubmed_rct with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("gubartz/st_scibert_pubmed_rct") model = AutoModel.from_pretrained("gubartz/st_scibert_pubmed_rct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload folder using huggingface_hub
96dabf6 -
Pushing model
f499e6e -
Pushing model
4a25ddb -
Pushing model
5f0fffd -
Pushing model
525b01c -
Pushing model
da2975a -
Pushing model
395a478 -
Pushing model
862b30a -
Pushing model
7bf546b -
Pushing model
9e06372 -
Pushing model
04e99bf -
initial commit
1807080