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
Download model_metadata.json from Elpapudex/SimSCE_supervised_full: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/Elpapudex/SimSCE_supervised_full/resolve/main/model_metadata.json
- Command line
-
hf download hf://Elpapudex/SimSCE_supervised_full/model_metadata.json
-
curl -L -o model_metadata.json https://huggingface.co/Elpapudex/SimSCE_supervised_full/resolve/main/model_metadata.json
1.37 kB
| { | |
| "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" | |
| ] | |
| } |