Sentence Similarity
sentence-transformers
PyTorch
TensorBoard
English
deberta-v2
feature-extraction
Generated from Trainer
dataset_size:123245
loss:CachedGISTEmbedLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use bobox/DeBERTa3-base-STr-CosineWaves with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use bobox/DeBERTa3-base-STr-CosineWaves with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bobox/DeBERTa3-base-STr-CosineWaves") sentences = [ "what type of inheritance does haemochromatosis", "Nestled on the tranquil banks of the Pamlico River, Moss Landing is a vibrant new community of thoughtfully conceived, meticulously crafted single-family homes in Washington, North Carolina. Washington is renowned for its historic architecture and natural beauty.", "1 Microwave on high for 8 to 10 minutes or until tender, turning the yams once. 2 To microwave sliced yams: Wash, peel, and cut off the woody portions and ends. 3 Cut yams into quarters. 4 Place the yams and 1/2 cup water in a microwave-safe casserole.ake the Yams. 1 Place half the yams in a 1-quart casserole. 2 Layer with half the brown sugar and half the margarine. 3 Repeat the layers. 4 Bake, uncovered, in a 375 degree F oven for 30 to 35 minutes or until the yams are glazed, spooning the liquid over the yams once or twice during cooking.", "Types 1, 2, and 3 hemochromatosis are inherited in an autosomal recessive pattern, which means both copies of the gene in each cell have mutations. Most often, the parents of an individual with an autosomal recessive condition each carry one copy of the mutated gene but do not show signs and symptoms of the condition.Type 4 hemochromatosis is distinguished by its autosomal dominant inheritance pattern.With this type of inheritance, one copy of the altered gene in each cell is sufficient to cause the disorder. In most cases, an affected person has one parent with the condition.ype 1, the most common form of the disorder, and type 4 (also called ferroportin disease) begin in adulthood. Men with type 1 or type 4 hemochromatosis typically develop symptoms between the ages of 40 and 60, and women usually develop symptoms after menopause. Type 2 hemochromatosis is a juvenile-onset disorder." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "bos_token": "[CLS]", | |
| "cls_token": "[CLS]", | |
| "eos_token": "[SEP]", | |
| "mask_token": "[MASK]", | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "unk_token": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |