Sentence Similarity
sentence-transformers
Safetensors
English
distilbert
feature-extraction
Generated from Trainer
dataset_size:100000
loss:OnlineContrastiveLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use CalebR84/stsb-distilbert-base-ocl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use CalebR84/stsb-distilbert-base-ocl with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("CalebR84/stsb-distilbert-base-ocl") sentences = [ "Can I retrieve my deleted text messages on my LG phone?", "Why do we sleep?", "How do I recover a deleted text message from my phone without a computer?", "What are subjects to study in upsc?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download modules.json from CalebR84/stsb-distilbert-base-ocl: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/CalebR84/stsb-distilbert-base-ocl/resolve/main/modules.json
- Command line
-
hf download hf://CalebR84/stsb-distilbert-base-ocl/modules.json
-
curl -L -o modules.json https://huggingface.co/CalebR84/stsb-distilbert-base-ocl/resolve/main/modules.json
242 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| } | |
| ] |