Sentence Similarity
sentence-transformers
PyTorch
mpnet
feature-extraction
text-embeddings-inference
Instructions to use marianodo/ContrastiveLoss with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use marianodo/ContrastiveLoss with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("marianodo/ContrastiveLoss") 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] - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from marianodo/ContrastiveLoss: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/marianodo/ContrastiveLoss/resolve/refs%2Fpr%2F1/pytorch_model.bin
- Command line
-
hf download hf://marianodo/ContrastiveLoss@refs/pr/1/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/marianodo/ContrastiveLoss/resolve/refs%2Fpr%2F1/pytorch_model.bin
438 MB
- Xet hash:
- 7d2d45c0eb8b6cc11dffb1e96ee38990e54da103e6ed1426e14faf15aa6cd6c3
- Size of remote file:
- 438 MB
- SHA256:
- 517b6b1b5206f8f421c222798025e9e77d30c74a9652126b4371eb2f1d7842e3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.