Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:18963
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Rich740804/st-scale70 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Rich740804/st-scale70 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Rich740804/st-scale70") sentences = [ "If the comatose man had previously expressed a desire to be euthanized in such a situation, respecting his autonomy would support euthanasia.", "If the comatose man had previously expressed a desire for euthanasia in such circumstances, there may be a duty to respect his autonomy, which would support the action.", "If the man is believed to be suffering in his comatose state or there is a significant burden on his family, there may be a duty to alleviate suffering that supports euthanasia.", "As a living being, the rat may warrant a duty of care from humans, which may include providing it with appropriate medical treatment or humane euthanasia in case of suffering." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "bos_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "cls_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |