---
base_model: microsoft/deberta-v3-small
library_name: sentence-transformers
metrics:
- pearson_cosine
- spearman_cosine
- pearson_manhattan
- spearman_manhattan
- pearson_euclidean
- spearman_euclidean
- pearson_dot
- spearman_dot
- pearson_max
- spearman_max
- cosine_accuracy
- cosine_accuracy_threshold
- cosine_f1
- cosine_f1_threshold
- cosine_precision
- cosine_recall
- cosine_ap
- dot_accuracy
- dot_accuracy_threshold
- dot_f1
- dot_f1_threshold
- dot_precision
- dot_recall
- dot_ap
- manhattan_accuracy
- manhattan_accuracy_threshold
- manhattan_f1
- manhattan_f1_threshold
- manhattan_precision
- manhattan_recall
- manhattan_ap
- euclidean_accuracy
- euclidean_accuracy_threshold
- euclidean_f1
- euclidean_f1_threshold
- euclidean_precision
- euclidean_recall
- euclidean_ap
- max_accuracy
- max_accuracy_threshold
- max_f1
- max_f1_threshold
- max_precision
- max_recall
- max_ap
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:32500
- loss:GISTEmbedLoss
widget:
- source_sentence: Fish hatch into larvae that are different from the adult form of
species.
sentences:
- Fish hatch into larvae that are different from the adult form of?
- amphibians hatch from eggs
- A solenoid or coil wrapped around iron or certain other metals can form a(n) electromagnet.
- source_sentence: About 200 countries and territories have reported coronavirus cases
in 2020 .
sentences:
- All-Time Olympic Games Medal Tally Analysis Home > Events > Olympics > Summer
> Medal Tally > All-Time All-Time Olympic Games Medal Tally (Summer Olympics)
Which country is the most successful at he Olympic Games? Here are the top ranked
countries in terms of total medals won when all of the summer Games are considered
(including the 2016 Rio Games). There are two tables presented, the first just
lists the top countries based on the total medals won, the second table factors
in how many Olympic Games the country appeared, averaging the total number of
medals per Olympiad. A victory in a team sport is counted as one medal. The USA
Has Won the Most Medals The US have clearly won the most gold medals and the most
medals overall, more than doubling the next ranked country (these figures include
medals won in Rio 2016). Second placed USSR had fewer appearances at the Olympics,
and actually won more medals on average (see the 2nd table). The top 10 includes
one country no longer in existence (the Soviet Union), so their medal totals will
obviously not increase, however China is expected to continue a rapid rise up
the ranks. With the addition of the 2016 data, China has moved up from 11th (in
2008) to 9th (2012) to 7th (2016). The country which has attended the most games
without a medal is Monaco (20 Olympic Games), the country which has won the most
medals without winning a gold medal is Malaysia (0 gold, 7 silver, 4 bronze).
rank
- An example of a reproductive behavior is salmon returning to their birthplace
to lay their eggs
- more than 664,000 cases of COVID-19 have been reported in over 190 countries and
territories , resulting in approximately 30,800 deaths .
- source_sentence: The wave on a guitar string is transverse. the sound wave rattles
a sheet of paper in a direction that shows the sound wave is what?
sentences:
- A Honda motorcycle parked in a grass driveway
- In Panama tipping is a question of rewarding good service rather than an obligation.
Restaurant bills don't include gratuities; adding 10% is customary. Bellhops and
maids expect tips only in more expensive hotels, and $1–$2 per bag is the norm.
You should also give a tip of up to $10 per day to tour guides.
- Figure 16.33 The wave on a guitar string is transverse. The sound wave rattles
a sheet of paper in a direction that shows the sound wave is longitudinal.
- source_sentence: The thermal production of a stove is generically used for
sentences:
- In total , 28 US victims were killed , while Viet Cong losses were killed 345
and a further 192 estimated killed .
- a stove generates heat for cooking usually
- A teenager has been charged over an incident in which a four-year-old girl was
hurt when she was hit in the face by a brick thrown through a van window.
- source_sentence: can sweet potatoes cause itching?
sentences:
- 'People with a true potato allergy may react immediately after touching, peeling,
or eating potatoes. Symptoms may vary from person to person, but typical symptoms
of a potato allergy include: rhinitis, including itchy or stinging eyes, a runny
or stuffy nose, and sneezing.'
- riding a bike does not cause pollution
- "Dilation occurs when cell walls relax.. An aneurysm is a dilation, or bubble,\
\ that occurs in the wall of an artery. \n an artery can be relaxed by dilation"
model-index:
- name: SentenceTransformer based on microsoft/deberta-v3-small
results:
- task:
type: semantic-similarity
name: Semantic Similarity
dataset:
name: sts test
type: sts-test
metrics:
- type: pearson_cosine
value: 0.5415735956899457
name: Pearson Cosine
- type: spearman_cosine
value: 0.5432558343516091
name: Spearman Cosine
- type: pearson_manhattan
value: 0.5451734598739164
name: Pearson Manhattan
- type: spearman_manhattan
value: 0.5424313371117337
name: Spearman Manhattan
- type: pearson_euclidean
value: 0.5463232738462487
name: Pearson Euclidean
- type: spearman_euclidean
value: 0.5433125789510533
name: Spearman Euclidean
- type: pearson_dot
value: 0.5415314946904102
name: Pearson Dot
- type: spearman_dot
value: 0.543190094748625
name: Spearman Dot
- type: pearson_max
value: 0.5463232738462487
name: Pearson Max
- type: spearman_max
value: 0.5433125789510533
name: Spearman Max
- task:
type: binary-classification
name: Binary Classification
dataset:
name: allNLI dev
type: allNLI-dev
metrics:
- type: cosine_accuracy
value: 0.689453125
name: Cosine Accuracy
- type: cosine_accuracy_threshold
value: 0.9186867475509644
name: Cosine Accuracy Threshold
- type: cosine_f1
value: 0.5283018867924528
name: Cosine F1
- type: cosine_f1_threshold
value: 0.8205500245094299
name: Cosine F1 Threshold
- type: cosine_precision
value: 0.4144736842105263
name: Cosine Precision
- type: cosine_recall
value: 0.7283236994219653
name: Cosine Recall
- type: cosine_ap
value: 0.493528404484353
name: Cosine Ap
- type: dot_accuracy
value: 0.689453125
name: Dot Accuracy
- type: dot_accuracy_threshold
value: 706.1145629882812
name: Dot Accuracy Threshold
- type: dot_f1
value: 0.5283018867924528
name: Dot F1
- type: dot_f1_threshold
value: 630.7012939453125
name: Dot F1 Threshold
- type: dot_precision
value: 0.4144736842105263
name: Dot Precision
- type: dot_recall
value: 0.7283236994219653
name: Dot Recall
- type: dot_ap
value: 0.49366530598882574
name: Dot Ap
- type: manhattan_accuracy
value: 0.69140625
name: Manhattan Accuracy
- type: manhattan_accuracy_threshold
value: 251.75421142578125
name: Manhattan Accuracy Threshold
- type: manhattan_f1
value: 0.5285412262156448
name: Manhattan F1
- type: manhattan_f1_threshold
value: 364.7342529296875
name: Manhattan F1 Threshold
- type: manhattan_precision
value: 0.4166666666666667
name: Manhattan Precision
- type: manhattan_recall
value: 0.7225433526011561
name: Manhattan Recall
- type: manhattan_ap
value: 0.4930222958157673
name: Manhattan Ap
- type: euclidean_accuracy
value: 0.689453125
name: Euclidean Accuracy
- type: euclidean_accuracy_threshold
value: 11.180255889892578
name: Euclidean Accuracy Threshold
- type: euclidean_f1
value: 0.5283018867924528
name: Euclidean F1
- type: euclidean_f1_threshold
value: 16.60896873474121
name: Euclidean F1 Threshold
- type: euclidean_precision
value: 0.4144736842105263
name: Euclidean Precision
- type: euclidean_recall
value: 0.7283236994219653
name: Euclidean Recall
- type: euclidean_ap
value: 0.49351830756144216
name: Euclidean Ap
- type: max_accuracy
value: 0.69140625
name: Max Accuracy
- type: max_accuracy_threshold
value: 706.1145629882812
name: Max Accuracy Threshold
- type: max_f1
value: 0.5285412262156448
name: Max F1
- type: max_f1_threshold
value: 630.7012939453125
name: Max F1 Threshold
- type: max_precision
value: 0.4166666666666667
name: Max Precision
- type: max_recall
value: 0.7283236994219653
name: Max Recall
- type: max_ap
value: 0.49366530598882574
name: Max Ap
- task:
type: binary-classification
name: Binary Classification
dataset:
name: Qnli dev
type: Qnli-dev
metrics:
- type: cosine_accuracy
value: 0.677734375
name: Cosine Accuracy
- type: cosine_accuracy_threshold
value: 0.7905216217041016
name: Cosine Accuracy Threshold
- type: cosine_f1
value: 0.7005444646098005
name: Cosine F1
- type: cosine_f1_threshold
value: 0.7738929986953735
name: Cosine F1 Threshold
- type: cosine_precision
value: 0.6126984126984127
name: Cosine Precision
- type: cosine_recall
value: 0.8177966101694916
name: Cosine Recall
- type: cosine_ap
value: 0.7092754004450792
name: Cosine Ap
- type: dot_accuracy
value: 0.677734375
name: Dot Accuracy
- type: dot_accuracy_threshold
value: 607.5902099609375
name: Dot Accuracy Threshold
- type: dot_f1
value: 0.7005444646098005
name: Dot F1
- type: dot_f1_threshold
value: 594.82958984375
name: Dot F1 Threshold
- type: dot_precision
value: 0.6126984126984127
name: Dot Precision
- type: dot_recall
value: 0.8177966101694916
name: Dot Recall
- type: dot_ap
value: 0.7093564593718997
name: Dot Ap
- type: manhattan_accuracy
value: 0.677734375
name: Manhattan Accuracy
- type: manhattan_accuracy_threshold
value: 403.15380859375
name: Manhattan Accuracy Threshold
- type: manhattan_f1
value: 0.696113074204947
name: Manhattan F1
- type: manhattan_f1_threshold
value: 417.12298583984375
name: Manhattan F1 Threshold
- type: manhattan_precision
value: 0.5969696969696969
name: Manhattan Precision
- type: manhattan_recall
value: 0.8347457627118644
name: Manhattan Recall
- type: manhattan_ap
value: 0.7081773921924046
name: Manhattan Ap
- type: euclidean_accuracy
value: 0.677734375
name: Euclidean Accuracy
- type: euclidean_accuracy_threshold
value: 17.944761276245117
name: Euclidean Accuracy Threshold
- type: euclidean_f1
value: 0.7005444646098005
name: Euclidean F1
- type: euclidean_f1_threshold
value: 18.64351463317871
name: Euclidean F1 Threshold
- type: euclidean_precision
value: 0.6126984126984127
name: Euclidean Precision
- type: euclidean_recall
value: 0.8177966101694916
name: Euclidean Recall
- type: euclidean_ap
value: 0.7092822066603943
name: Euclidean Ap
- type: max_accuracy
value: 0.677734375
name: Max Accuracy
- type: max_accuracy_threshold
value: 607.5902099609375
name: Max Accuracy Threshold
- type: max_f1
value: 0.7005444646098005
name: Max F1
- type: max_f1_threshold
value: 594.82958984375
name: Max F1 Threshold
- type: max_precision
value: 0.6126984126984127
name: Max Precision
- type: max_recall
value: 0.8347457627118644
name: Max Recall
- type: max_ap
value: 0.7093564593718997
name: Max Ap
---
# SentenceTransformer based on microsoft/deberta-v3-small
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small)
- **Maximum Sequence Length:** 512 tokens
- **Output Dimensionality:** 768 tokens
- **Similarity Function:** Cosine Similarity
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: DebertaV2Model
(1): AdvancedWeightedPooling(
(alpha_dropout_layer): Dropout(p=0.01, inplace=False)
(gate_dropout_layer): Dropout(p=0.05, inplace=False)
(linear_cls_pj): Linear(in_features=768, out_features=768, bias=True)
(linear_cls_Qpj): Linear(in_features=768, out_features=768, bias=True)
(linear_mean_pj): Linear(in_features=768, out_features=768, bias=True)
(linear_attnOut): Linear(in_features=768, out_features=768, bias=True)
(mha): MultiheadAttention(
(out_proj): NonDynamicallyQuantizableLinear(in_features=768, out_features=768, bias=True)
)
(layernorm_output): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
(layernorm_weightedPooing): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
(layernorm_pjCls): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
(layernorm_pjMean): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
(layernorm_attnOut): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
)
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("bobox/DeBERTa3-s-CustomPoolin-toytest3-step1-checkpoints-tmp")
# Run inference
sentences = [
'can sweet potatoes cause itching?',
'People with a true potato allergy may react immediately after touching, peeling, or eating potatoes. Symptoms may vary from person to person, but typical symptoms of a potato allergy include: rhinitis, including itchy or stinging eyes, a runny or stuffy nose, and sneezing.',
'riding a bike does not cause pollution',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Evaluation
### Metrics
#### Semantic Similarity
* Dataset: `sts-test`
* Evaluated with [EmbeddingSimilarityEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| pearson_cosine | 0.5416 |
| **spearman_cosine** | **0.5433** |
| pearson_manhattan | 0.5452 |
| spearman_manhattan | 0.5424 |
| pearson_euclidean | 0.5463 |
| spearman_euclidean | 0.5433 |
| pearson_dot | 0.5415 |
| spearman_dot | 0.5432 |
| pearson_max | 0.5463 |
| spearman_max | 0.5433 |
#### Binary Classification
* Dataset: `allNLI-dev`
* Evaluated with [BinaryClassificationEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
| Metric | Value |
|:-----------------------------|:-----------|
| cosine_accuracy | 0.6895 |
| cosine_accuracy_threshold | 0.9187 |
| cosine_f1 | 0.5283 |
| cosine_f1_threshold | 0.8206 |
| cosine_precision | 0.4145 |
| cosine_recall | 0.7283 |
| cosine_ap | 0.4935 |
| dot_accuracy | 0.6895 |
| dot_accuracy_threshold | 706.1146 |
| dot_f1 | 0.5283 |
| dot_f1_threshold | 630.7013 |
| dot_precision | 0.4145 |
| dot_recall | 0.7283 |
| dot_ap | 0.4937 |
| manhattan_accuracy | 0.6914 |
| manhattan_accuracy_threshold | 251.7542 |
| manhattan_f1 | 0.5285 |
| manhattan_f1_threshold | 364.7343 |
| manhattan_precision | 0.4167 |
| manhattan_recall | 0.7225 |
| manhattan_ap | 0.493 |
| euclidean_accuracy | 0.6895 |
| euclidean_accuracy_threshold | 11.1803 |
| euclidean_f1 | 0.5283 |
| euclidean_f1_threshold | 16.609 |
| euclidean_precision | 0.4145 |
| euclidean_recall | 0.7283 |
| euclidean_ap | 0.4935 |
| max_accuracy | 0.6914 |
| max_accuracy_threshold | 706.1146 |
| max_f1 | 0.5285 |
| max_f1_threshold | 630.7013 |
| max_precision | 0.4167 |
| max_recall | 0.7283 |
| **max_ap** | **0.4937** |
#### Binary Classification
* Dataset: `Qnli-dev`
* Evaluated with [BinaryClassificationEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
| Metric | Value |
|:-----------------------------|:-----------|
| cosine_accuracy | 0.6777 |
| cosine_accuracy_threshold | 0.7905 |
| cosine_f1 | 0.7005 |
| cosine_f1_threshold | 0.7739 |
| cosine_precision | 0.6127 |
| cosine_recall | 0.8178 |
| cosine_ap | 0.7093 |
| dot_accuracy | 0.6777 |
| dot_accuracy_threshold | 607.5902 |
| dot_f1 | 0.7005 |
| dot_f1_threshold | 594.8296 |
| dot_precision | 0.6127 |
| dot_recall | 0.8178 |
| dot_ap | 0.7094 |
| manhattan_accuracy | 0.6777 |
| manhattan_accuracy_threshold | 403.1538 |
| manhattan_f1 | 0.6961 |
| manhattan_f1_threshold | 417.123 |
| manhattan_precision | 0.597 |
| manhattan_recall | 0.8347 |
| manhattan_ap | 0.7082 |
| euclidean_accuracy | 0.6777 |
| euclidean_accuracy_threshold | 17.9448 |
| euclidean_f1 | 0.7005 |
| euclidean_f1_threshold | 18.6435 |
| euclidean_precision | 0.6127 |
| euclidean_recall | 0.8178 |
| euclidean_ap | 0.7093 |
| max_accuracy | 0.6777 |
| max_accuracy_threshold | 607.5902 |
| max_f1 | 0.7005 |
| max_f1_threshold | 594.8296 |
| max_precision | 0.6127 |
| max_recall | 0.8347 |
| **max_ap** | **0.7094** |
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 32,500 training samples
* Columns: sentence1
and sentence2
* Approximate statistics based on the first 1000 samples:
| | sentence1 | sentence2 |
|:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | string | string |
| details |
The song ‘Fashion for His Love’ by Lady Gaga is a tribute to which late fashion designer?
| Fashion Of His Love by Lady Gaga Songfacts Fashion Of His Love by Lady Gaga Songfacts Songfacts Gaga explained in a tweet that this track from her Born This Way Special Edition album is about the late Alexander McQueen. The fashion designer committed suicide by hanging on February 11, 2010 and Gaga was deeply affected by the tragic death of McQueen, who was a close personal friend. That same month, she performed at the 2010 Brit Awards wearing one of his couture creations and she also paid tribute to her late friend by setting the date on the prison security cameras in her Telephone video as the same day that McQueen's body was discovered in his London home.
|
| e. in solids the atoms are closely locked in position and can only vibrate, in liquids the atoms and molecules are more loosely connected and can collide with and move past one another, while in gases the atoms or molecules are free to move independently, colliding frequently.
| Within a substance, atoms that collide frequently and move independently of one another are most likely in a gas
|
| Helen Lederer is an English comedian .
| Helen Lederer ( born 24 September 1954 ) is an English : //www.scotsman.com/news/now-or-never-1-1396369 comedian , writer and actress who emerged as part of the alternative comedy boom at the beginning of the 1980s .
|
* Loss: [GISTEmbedLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#gistembedloss) with these parameters:
```json
{'guide': SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
), 'temperature': 0.025}
```
### Evaluation Dataset
#### Unnamed Dataset
* Size: 1,664 evaluation samples
* Columns: sentence1
and sentence2
* Approximate statistics based on the first 1000 samples:
| | sentence1 | sentence2 |
|:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | string | string |
| details | What planet did the voyager 1 spacecraft visit in 1980?
| The Voyager 1 spacecraft visited Saturn in 1980. Voyager 2 followed in 1981. These probes sent back detailed pictures of Saturn, its rings, and some of its moons ( Figure below ). From the Voyager data, we learned what Saturn’s rings are made of. They are particles of water and ice with a little bit of dust. There are several gaps in the rings. These gaps were cleared out by moons within the rings. Gravity attracts dust and gas to the moon from the ring. This leaves a gap in the rings. Other gaps in the rings are caused by the competing forces of Saturn and its moons outside the rings.
|
| Diffusion Diffusion is a process where atoms or molecules move from areas of high concentration to areas of low concentration.
| Diffusion is the process in which a substance naturally moves from an area of higher to lower concentration.
|
| Who had an 80s No 1 with Don't You Want Me?
| The Human League - Don't You Want Me - YouTube The Human League - Don't You Want Me Want to watch this again later? Sign in to add this video to a playlist. Need to report the video? Sign in to report inappropriate content. Rating is available when the video has been rented. This feature is not available right now. Please try again later. Uploaded on Feb 27, 2009 Music video by The Human League performing Don't You Want Me (2003 Digital Remaster). Category
|
* Loss: [GISTEmbedLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#gistembedloss) with these parameters:
```json
{'guide': SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
), 'temperature': 0.025}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 32
- `per_device_eval_batch_size`: 256
- `lr_scheduler_type`: cosine_with_min_lr
- `lr_scheduler_kwargs`: {'num_cycles': 0.5, 'min_lr': 3.3333333333333337e-06}
- `warmup_ratio`: 0.33
- `save_safetensors`: False
- `fp16`: True
- `push_to_hub`: True
- `hub_model_id`: bobox/DeBERTa3-s-CustomPoolin-toytest3-step1-checkpoints-tmp
- `hub_strategy`: all_checkpoints
- `batch_sampler`: no_duplicates
#### All Hyperparameters