Sentence Similarity
sentence-transformers
Safetensors
English
distilbert
feature-extraction
Generated from Trainer
dataset_size:404290
loss:OnlineContrastiveLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use yahyaabd/stsb-distilbert-base-ocl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use yahyaabd/stsb-distilbert-base-ocl with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("yahyaabd/stsb-distilbert-base-ocl") sentences = [ "What does the lock symbol on my iPhone 6 means?", "How did the Soviet Navy compare to the US Navy?", "What does the iPhone icon with lock and arrow mean?", "What is the importance of electrical engineering?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 565 Bytes
9e58e8b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | {
"_name_or_path": "sentence-transformers/stsb-distilbert-base",
"activation": "gelu",
"architectures": [
"DistilBertModel"
],
"attention_dropout": 0.1,
"dim": 768,
"dropout": 0.1,
"hidden_dim": 3072,
"initializer_range": 0.02,
"max_position_embeddings": 512,
"model_type": "distilbert",
"n_heads": 12,
"n_layers": 6,
"pad_token_id": 0,
"qa_dropout": 0.1,
"seq_classif_dropout": 0.2,
"sinusoidal_pos_embds": false,
"tie_weights_": true,
"torch_dtype": "float32",
"transformers_version": "4.48.1",
"vocab_size": 30522
}
|