---
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: phase changes do not change
sentences:
- The major Atlantic slave trading nations, ordered by trade volume, were the Portuguese,
the British, the Spanish, the French, the Dutch, and the Danish. Several had established
outposts on the African coast where they purchased slaves from local African leaders.
- "phase changes do not change mass. Particles have mass, but mass is energy. \n\
\ phase changes do not change energy"
- According to the U.S. Census Bureau , the county is a total area of , which has
land and ( 0.2 % ) is water .
- source_sentence: what jobs can you get with a bachelor degree in anthropology?
sentences:
- To determine the atomic weight of an element, you should add up protons and neutrons.
- '[''Paleontologist*'', ''Archaeologist*'', ''University Professor*'', ''Market
Research Analyst*'', ''Primatologist.'', ''Forensic Scientist*'', ''Medical Anthropologist.'',
''Museum Technician.'']'
- The wingspan flies , the moth comes depending on the location from July to August
.
- source_sentence: Identify different forms of energy (e.g., light, sound, heat).
sentences:
- '`` Irreplaceable '''' '''' remained on the chart for thirty weeks , and was certified
double-platinum by the Recording Industry Association of America ( RIAA ) , denoting
sales of two million downloads , and had sold over 3,139,000 paid digital downloads
in the US as of October 2012 , according to Nielsen SoundScan . '''''
- On Rotten Tomatoes , the film has a rating of 63 % , based on 87 reviews , with
an average rating of 5.9/10 .
- Heat, light, and sound are all different forms of energy.
- source_sentence: what is so small it can only be seen with an electron microscope?
sentences:
- "Viruses are so small that they can be seen only with an electron microscope..\
\ Where most viruses are DNA, HIV is an RNA virus. \n HIV is so small it can only\
\ be seen with an electron microscope"
- The development of modern lasers has opened many doors to both research and applications.
A laser beam was used to measure the distance from the Earth to the moon. Lasers
are important components of CD players. As the image above illustrates, lasers
can provide precise focusing of beams to selectively destroy cancer cells in patients.
The ability of a laser to focus precisely is due to high-quality crystals that
help give rise to the laser beam. A variety of techniques are used to manufacture
pure crystals for use in lasers.
- Discussion for (a) This value is the net work done on the package. The person
actually does more work than this, because friction opposes the motion. Friction
does negative work and removes some of the energy the person expends and converts
it to thermal energy. The net work equals the sum of the work done by each individual
force. Strategy and Concept for (b) The forces acting on the package are gravity,
the normal force, the force of friction, and the applied force. The normal force
and force of gravity are each perpendicular to the displacement, and therefore
do no work. Solution for (b) The applied force does work.
- source_sentence: what aspects of your environment may relate to the epidemic of
obesity
sentences:
- Jan Kromkamp ( born August 17 , 1980 in Makkinga , Netherlands ) is a Dutch footballer
.
- When chemicals in solution react, the proper way of writing the chemical formulas
of the dissolved ionic compounds is in terms of the dissociated ions, not the
complete ionic formula. A complete ionic equation is a chemical equation in which
the dissolved ionic compounds are written as separated ions. Solubility rules
are very useful in determining which ionic compounds are dissolved and which are
not. For example, when NaCl(aq) reacts with AgNO3(aq) in a double-replacement
reaction to precipitate AgCl(s) and form NaNO3(aq), the complete ionic equation
includes NaCl, AgNO3, and NaNO3 written as separated ions:.
- Genetic changes in human populations occur too slowly to be responsible for the
obesity epidemic. Nevertheless, the variation in how people respond to the environment
that promotes physical inactivity and intake of high-calorie foods suggests that
genes do play a role in the development of obesity.
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.3774946012125992
name: Pearson Cosine
- type: spearman_cosine
value: 0.4056589966976888
name: Spearman Cosine
- type: pearson_manhattan
value: 0.3861982631744407
name: Pearson Manhattan
- type: spearman_manhattan
value: 0.4059364545183154
name: Spearman Manhattan
- type: pearson_euclidean
value: 0.38652243004790016
name: Pearson Euclidean
- type: spearman_euclidean
value: 0.4056589966976888
name: Spearman Euclidean
- type: pearson_dot
value: 0.3774648453085433
name: Pearson Dot
- type: spearman_dot
value: 0.40563469676275316
name: Spearman Dot
- type: pearson_max
value: 0.38652243004790016
name: Pearson Max
- type: spearman_max
value: 0.4059364545183154
name: Spearman Max
- task:
type: binary-classification
name: Binary Classification
dataset:
name: allNLI dev
type: allNLI-dev
metrics:
- type: cosine_accuracy
value: 0.67578125
name: Cosine Accuracy
- type: cosine_accuracy_threshold
value: 0.9427558183670044
name: Cosine Accuracy Threshold
- type: cosine_f1
value: 0.5225225225225225
name: Cosine F1
- type: cosine_f1_threshold
value: 0.8046966791152954
name: Cosine F1 Threshold
- type: cosine_precision
value: 0.3795811518324607
name: Cosine Precision
- type: cosine_recall
value: 0.838150289017341
name: Cosine Recall
- type: cosine_ap
value: 0.4368751759846574
name: Cosine Ap
- type: dot_accuracy
value: 0.67578125
name: Dot Accuracy
- type: dot_accuracy_threshold
value: 724.1080322265625
name: Dot Accuracy Threshold
- type: dot_f1
value: 0.5225225225225225
name: Dot F1
- type: dot_f1_threshold
value: 618.074951171875
name: Dot F1 Threshold
- type: dot_precision
value: 0.3795811518324607
name: Dot Precision
- type: dot_recall
value: 0.838150289017341
name: Dot Recall
- type: dot_ap
value: 0.436842886797982
name: Dot Ap
- type: manhattan_accuracy
value: 0.677734375
name: Manhattan Accuracy
- type: manhattan_accuracy_threshold
value: 223.6764373779297
name: Manhattan Accuracy Threshold
- type: manhattan_f1
value: 0.5239852398523985
name: Manhattan F1
- type: manhattan_f1_threshold
value: 372.31396484375
name: Manhattan F1 Threshold
- type: manhattan_precision
value: 0.38482384823848237
name: Manhattan Precision
- type: manhattan_recall
value: 0.8208092485549133
name: Manhattan Recall
- type: manhattan_ap
value: 0.43892484929307635
name: Manhattan Ap
- type: euclidean_accuracy
value: 0.67578125
name: Euclidean Accuracy
- type: euclidean_accuracy_threshold
value: 9.377331733703613
name: Euclidean Accuracy Threshold
- type: euclidean_f1
value: 0.5225225225225225
name: Euclidean F1
- type: euclidean_f1_threshold
value: 17.321048736572266
name: Euclidean F1 Threshold
- type: euclidean_precision
value: 0.3795811518324607
name: Euclidean Precision
- type: euclidean_recall
value: 0.838150289017341
name: Euclidean Recall
- type: euclidean_ap
value: 0.4368602200677977
name: Euclidean Ap
- type: max_accuracy
value: 0.677734375
name: Max Accuracy
- type: max_accuracy_threshold
value: 724.1080322265625
name: Max Accuracy Threshold
- type: max_f1
value: 0.5239852398523985
name: Max F1
- type: max_f1_threshold
value: 618.074951171875
name: Max F1 Threshold
- type: max_precision
value: 0.38482384823848237
name: Max Precision
- type: max_recall
value: 0.838150289017341
name: Max Recall
- type: max_ap
value: 0.43892484929307635
name: Max Ap
- task:
type: binary-classification
name: Binary Classification
dataset:
name: Qnli dev
type: Qnli-dev
metrics:
- type: cosine_accuracy
value: 0.646484375
name: Cosine Accuracy
- type: cosine_accuracy_threshold
value: 0.8057259321212769
name: Cosine Accuracy Threshold
- type: cosine_f1
value: 0.6688102893890675
name: Cosine F1
- type: cosine_f1_threshold
value: 0.7187118530273438
name: Cosine F1 Threshold
- type: cosine_precision
value: 0.538860103626943
name: Cosine Precision
- type: cosine_recall
value: 0.8813559322033898
name: Cosine Recall
- type: cosine_ap
value: 0.6720663622193426
name: Cosine Ap
- type: dot_accuracy
value: 0.646484375
name: Dot Accuracy
- type: dot_accuracy_threshold
value: 618.8643798828125
name: Dot Accuracy Threshold
- type: dot_f1
value: 0.6688102893890675
name: Dot F1
- type: dot_f1_threshold
value: 552.0260009765625
name: Dot F1 Threshold
- type: dot_precision
value: 0.538860103626943
name: Dot Precision
- type: dot_recall
value: 0.8813559322033898
name: Dot Recall
- type: dot_ap
value: 0.672083506527328
name: Dot Ap
- type: manhattan_accuracy
value: 0.6484375
name: Manhattan Accuracy
- type: manhattan_accuracy_threshold
value: 386.58905029296875
name: Manhattan Accuracy Threshold
- type: manhattan_f1
value: 0.6645569620253164
name: Manhattan F1
- type: manhattan_f1_threshold
value: 462.609130859375
name: Manhattan F1 Threshold
- type: manhattan_precision
value: 0.5303030303030303
name: Manhattan Precision
- type: manhattan_recall
value: 0.8898305084745762
name: Manhattan Recall
- type: manhattan_ap
value: 0.6724653688821339
name: Manhattan Ap
- type: euclidean_accuracy
value: 0.646484375
name: Euclidean Accuracy
- type: euclidean_accuracy_threshold
value: 17.27533721923828
name: Euclidean Accuracy Threshold
- type: euclidean_f1
value: 0.6688102893890675
name: Euclidean F1
- type: euclidean_f1_threshold
value: 20.787063598632812
name: Euclidean F1 Threshold
- type: euclidean_precision
value: 0.538860103626943
name: Euclidean Precision
- type: euclidean_recall
value: 0.8813559322033898
name: Euclidean Recall
- type: euclidean_ap
value: 0.6720591998758361
name: Euclidean Ap
- type: max_accuracy
value: 0.6484375
name: Max Accuracy
- type: max_accuracy_threshold
value: 618.8643798828125
name: Max Accuracy Threshold
- type: max_f1
value: 0.6688102893890675
name: Max F1
- type: max_f1_threshold
value: 552.0260009765625
name: Max F1 Threshold
- type: max_precision
value: 0.538860103626943
name: Max Precision
- type: max_recall
value: 0.8898305084745762
name: Max Recall
- type: max_ap
value: 0.6724653688821339
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.05, inplace=False)
(gate_dropout_layer): Dropout(p=0.0, inplace=False)
(linear_cls_Qpj): 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_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-toytest4-step1-checkpoints-tmp")
# Run inference
sentences = [
'what aspects of your environment may relate to the epidemic of obesity',
'Genetic changes in human populations occur too slowly to be responsible for the obesity epidemic. Nevertheless, the variation in how people respond to the environment that promotes physical inactivity and intake of high-calorie foods suggests that genes do play a role in the development of obesity.',
'When chemicals in solution react, the proper way of writing the chemical formulas of the dissolved ionic compounds is in terms of the dissociated ions, not the complete ionic formula. A complete ionic equation is a chemical equation in which the dissolved ionic compounds are written as separated ions. Solubility rules are very useful in determining which ionic compounds are dissolved and which are not. For example, when NaCl(aq) reacts with AgNO3(aq) in a double-replacement reaction to precipitate AgCl(s) and form NaNO3(aq), the complete ionic equation includes NaCl, AgNO3, and NaNO3 written as separated ions:.',
]
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.3775 |
| **spearman_cosine** | **0.4057** |
| pearson_manhattan | 0.3862 |
| spearman_manhattan | 0.4059 |
| pearson_euclidean | 0.3865 |
| spearman_euclidean | 0.4057 |
| pearson_dot | 0.3775 |
| spearman_dot | 0.4056 |
| pearson_max | 0.3865 |
| spearman_max | 0.4059 |
#### 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.6758 |
| cosine_accuracy_threshold | 0.9428 |
| cosine_f1 | 0.5225 |
| cosine_f1_threshold | 0.8047 |
| cosine_precision | 0.3796 |
| cosine_recall | 0.8382 |
| cosine_ap | 0.4369 |
| dot_accuracy | 0.6758 |
| dot_accuracy_threshold | 724.108 |
| dot_f1 | 0.5225 |
| dot_f1_threshold | 618.075 |
| dot_precision | 0.3796 |
| dot_recall | 0.8382 |
| dot_ap | 0.4368 |
| manhattan_accuracy | 0.6777 |
| manhattan_accuracy_threshold | 223.6764 |
| manhattan_f1 | 0.524 |
| manhattan_f1_threshold | 372.314 |
| manhattan_precision | 0.3848 |
| manhattan_recall | 0.8208 |
| manhattan_ap | 0.4389 |
| euclidean_accuracy | 0.6758 |
| euclidean_accuracy_threshold | 9.3773 |
| euclidean_f1 | 0.5225 |
| euclidean_f1_threshold | 17.321 |
| euclidean_precision | 0.3796 |
| euclidean_recall | 0.8382 |
| euclidean_ap | 0.4369 |
| max_accuracy | 0.6777 |
| max_accuracy_threshold | 724.108 |
| max_f1 | 0.524 |
| max_f1_threshold | 618.075 |
| max_precision | 0.3848 |
| max_recall | 0.8382 |
| **max_ap** | **0.4389** |
#### 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.6465 |
| cosine_accuracy_threshold | 0.8057 |
| cosine_f1 | 0.6688 |
| cosine_f1_threshold | 0.7187 |
| cosine_precision | 0.5389 |
| cosine_recall | 0.8814 |
| cosine_ap | 0.6721 |
| dot_accuracy | 0.6465 |
| dot_accuracy_threshold | 618.8644 |
| dot_f1 | 0.6688 |
| dot_f1_threshold | 552.026 |
| dot_precision | 0.5389 |
| dot_recall | 0.8814 |
| dot_ap | 0.6721 |
| manhattan_accuracy | 0.6484 |
| manhattan_accuracy_threshold | 386.5891 |
| manhattan_f1 | 0.6646 |
| manhattan_f1_threshold | 462.6091 |
| manhattan_precision | 0.5303 |
| manhattan_recall | 0.8898 |
| manhattan_ap | 0.6725 |
| euclidean_accuracy | 0.6465 |
| euclidean_accuracy_threshold | 17.2753 |
| euclidean_f1 | 0.6688 |
| euclidean_f1_threshold | 20.7871 |
| euclidean_precision | 0.5389 |
| euclidean_recall | 0.8814 |
| euclidean_ap | 0.6721 |
| max_accuracy | 0.6484 |
| max_accuracy_threshold | 618.8644 |
| max_f1 | 0.6688 |
| max_f1_threshold | 552.026 |
| max_precision | 0.5389 |
| max_recall | 0.8898 |
| **max_ap** | **0.6725** |
## 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 |
In which London road is Harrod’s department store?
| Harrods, Brompton Road, London | Shopping/Department Stores in London | LondonTown.com Opening Times Britain's most famous store and possibly the most famous store in the world, Harrods features on many tourist 'must-see' lists - and with good reason. Its humble beginnings date back to 1849, when Charles Henry Harrod opened a small East End grocer and tea merchant business that emphasised impeccable service over value. Today, it occupies a vast seven floor site in London's fashionable Knightsbridge and boasts a phenomenal range of products from pianos and cooking pans to fashion and perfumery. The luxurious Urban Retreat can be found on the sixth floor while newer departments include Superbrands, with 17 boutiques from top international designers, and Salon du Parfums, housing some of the most exceptional and exclusive perfumes in the world. The Food Hall is ostentatious to the core and mouth-wateringly exotic, and the store as a whole is well served with 27 restaurants. At Christmas time the Brompton Road windows are transformed into a magical winter wonderland and Father Christmas takes up residence at the enchanting Christmas Grotto. The summer and winter sales are calendar events in the shopping year, and although both sales are extremely crowded there are some great bargains on offer. �
|
| 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
|
| Joe Cole was unable to join West Bromwich Albion .
| On 16th October Joe Cole took a long hard look at himself realising that he would never get the opportunity to join West Bromwich Albion and joined Coventry City instead.
|
* 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-toytest4-step1-checkpoints-tmp
- `hub_strategy`: all_checkpoints
- `batch_sampler`: no_duplicates
#### All Hyperparameters