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