Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
text-embeddings-inference
Instructions to use Elpapudex/SimSCE_supervised_full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Elpapudex/SimSCE_supervised_full with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Elpapudex/SimSCE_supervised_full") 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
File size: 1,365 Bytes
28285c2 | 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 26 27 28 29 30 31 32 33 34 35 36 37 | {
"model_name": "simcse-supervised-final",
"base_model": "bert-base-uncased",
"method": "SimCSE (supervised)",
"training_data": "100k SNLI records (premise + hypothesis pairs), supervised: 33351 (premise, entailment) pairs, 8473 with a contradiction hard negative",
"recipe": {
"batch_size": 48,
"learning_rate_encoder": 2e-05,
"learning_rate_head_train_only": 0.001,
"epochs": 3,
"best_step": 400,
"temperature": 0.05,
"dropout": 0.1,
"weight_decay": 0.01,
"warmup_ratio": 0.1,
"optimizer": "AdamW, linear decay",
"pooling": "mean",
"max_seq_length": 128,
"seed": 42,
"precision": "fp16 autocast (training)"
},
"metrics": {
"stsb_dev_spearman_x100": 83.72,
"stsb_test_spearman_x100": 79.37,
"alignment": 0.1714,
"uniformity": -2.3282
},
"intended_use": "Sentence embeddings for semantic similarity and retrieval tasks.",
"limitations": [
"Trained on English SNLI; performance on out-of-domain tasks unknown.",
"Trained on 100k records, smaller than the SimCSE paper's training data."
],
"references": [
"Gao, Yao & Chen (2021). SimCSE: Simple Contrastive Learning of Sentence Embeddings. EMNLP. https://arxiv.org/abs/2104.08821",
"Cer et al. (2017). SemEval-2017 Task 1 / STS Benchmark. https://huggingface.co/datasets/sentence-transformers/stsb"
]
} |