Sentence Similarity
sentence-transformers
PyTorch
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use ceggian/sbert_standard_reddit_softmax with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ceggian/sbert_standard_reddit_softmax with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ceggian/sbert_standard_reddit_softmax") 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 ceggian/sbert_standard_reddit_softmax with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ceggian/sbert_standard_reddit_softmax") model = AutoModel.from_pretrained("ceggian/sbert_standard_reddit_softmax", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from ceggian/sbert_standard_reddit_softmax: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/ceggian/sbert_standard_reddit_softmax/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://ceggian/sbert_standard_reddit_softmax/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/ceggian/sbert_standard_reddit_softmax/resolve/main/pytorch_model.bin
438 MB
- Xet hash:
- 593fc79426e0c7d5879c9a84192c87d24b4c4199bd91592bc89c0bec97693857
- Size of remote file:
- 438 MB
- SHA256:
- f5484a6f74b78b01f17bb4aa1b63e59040518e8481b6ca12bc0fb5d63071e406
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.