Text Classification
sentence-transformers
Safetensors
English
deberta-v2
cross-encoder
reranker
Generated from Trainer
dataset_size:102836
loss:CrossEntropyLoss
text-embeddings-inference
Instructions to use software-si/kitchen-nli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use software-si/kitchen-nli with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("software-si/kitchen-nli") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
Add new CrossEncoder model
Browse files- README.md +334 -0
- config.json +51 -0
- model.safetensors +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +59 -0
README.md
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- cross-encoder
|
| 5 |
+
- reranker
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:102836
|
| 8 |
+
- loss:CrossEntropyLoss
|
| 9 |
+
base_model: cross-encoder/nli-deberta-v3-base
|
| 10 |
+
datasets:
|
| 11 |
+
- software-si/horeca-nli
|
| 12 |
+
pipeline_tag: text-classification
|
| 13 |
+
library_name: sentence-transformers
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# CrossEncoder based on cross-encoder/nli-deberta-v3-base
|
| 17 |
+
|
| 18 |
+
This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [cross-encoder/nli-deberta-v3-base](https://huggingface.co/cross-encoder/nli-deberta-v3-base) on the [horeca-nli](https://huggingface.co/datasets/software-si/horeca-nli) dataset using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text pair classification.
|
| 19 |
+
|
| 20 |
+
## Model Details
|
| 21 |
+
|
| 22 |
+
### Model Description
|
| 23 |
+
- **Model Type:** Cross Encoder
|
| 24 |
+
- **Base model:** [cross-encoder/nli-deberta-v3-base](https://huggingface.co/cross-encoder/nli-deberta-v3-base) <!-- at revision 6c749ce3425cd33b46d187e45b92bbf96ee12ec7 -->
|
| 25 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 26 |
+
- **Number of Output Labels:** 3 labels
|
| 27 |
+
- **Training Dataset:**
|
| 28 |
+
- [horeca-nli](https://huggingface.co/datasets/software-si/horeca-nli)
|
| 29 |
+
<!-- - **Language:** Unknown -->
|
| 30 |
+
<!-- - **License:** Unknown -->
|
| 31 |
+
|
| 32 |
+
### Model Sources
|
| 33 |
+
|
| 34 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 35 |
+
- **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
|
| 36 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 37 |
+
- **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
|
| 38 |
+
|
| 39 |
+
## Usage
|
| 40 |
+
|
| 41 |
+
### Direct Usage (Sentence Transformers)
|
| 42 |
+
|
| 43 |
+
First install the Sentence Transformers library:
|
| 44 |
+
|
| 45 |
+
```bash
|
| 46 |
+
pip install -U sentence-transformers
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Then you can load this model and run inference.
|
| 50 |
+
```python
|
| 51 |
+
from sentence_transformers import CrossEncoder
|
| 52 |
+
|
| 53 |
+
# Download from the 🤗 Hub
|
| 54 |
+
model = CrossEncoder("software-si/kitchen-nli")
|
| 55 |
+
# Get scores for pairs of texts
|
| 56 |
+
pairs = [
|
| 57 |
+
['cooking unit with square plates on compartment with doors', 'the depth of the kitchen is 70 centimeters'],
|
| 58 |
+
['cooking unit with 2 electric plates, on compartment with doors', 'the kitchen is placed on top'],
|
| 59 |
+
['kitchen module in top version deep 70 cm eighty centimeters wide,', 'the kitchen is placed on cabinet'],
|
| 60 |
+
['cooking unit wide 80 cm, with a depth of 90 centimeters, placed on closed compartment', 'the kitchen has a width of 40 cm'],
|
| 61 |
+
['kitchen with gas cooking, with gas oven, one hundred twenty centimeters wide,', 'the layout of the kitchen is top'],
|
| 62 |
+
]
|
| 63 |
+
scores = model.predict(pairs)
|
| 64 |
+
print(scores.shape)
|
| 65 |
+
# (5, 3)
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
<!--
|
| 69 |
+
### Direct Usage (Transformers)
|
| 70 |
+
|
| 71 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 72 |
+
|
| 73 |
+
</details>
|
| 74 |
+
-->
|
| 75 |
+
|
| 76 |
+
<!--
|
| 77 |
+
### Downstream Usage (Sentence Transformers)
|
| 78 |
+
|
| 79 |
+
You can finetune this model on your own dataset.
|
| 80 |
+
|
| 81 |
+
<details><summary>Click to expand</summary>
|
| 82 |
+
|
| 83 |
+
</details>
|
| 84 |
+
-->
|
| 85 |
+
|
| 86 |
+
<!--
|
| 87 |
+
### Out-of-Scope Use
|
| 88 |
+
|
| 89 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 90 |
+
-->
|
| 91 |
+
|
| 92 |
+
<!--
|
| 93 |
+
## Bias, Risks and Limitations
|
| 94 |
+
|
| 95 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 96 |
+
-->
|
| 97 |
+
|
| 98 |
+
<!--
|
| 99 |
+
### Recommendations
|
| 100 |
+
|
| 101 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 102 |
+
-->
|
| 103 |
+
|
| 104 |
+
## Training Details
|
| 105 |
+
|
| 106 |
+
### Training Dataset
|
| 107 |
+
|
| 108 |
+
#### horeca-nli
|
| 109 |
+
|
| 110 |
+
* Dataset: [horeca-nli](https://huggingface.co/datasets/software-si/horeca-nli) at [a6bd6a4](https://huggingface.co/datasets/software-si/horeca-nli/tree/a6bd6a4e3cfa88c4081a4a0ff814f92d00dcf463)
|
| 111 |
+
* Size: 102,836 training samples
|
| 112 |
+
* Columns: <code>premises</code>, <code>hypothesis</code>, and <code>labels</code>
|
| 113 |
+
* Approximate statistics based on the first 1000 samples:
|
| 114 |
+
| | premises | hypothesis | labels |
|
| 115 |
+
|:--------|:------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|:-------------------------------------------------------------------|
|
| 116 |
+
| type | string | string | int |
|
| 117 |
+
| details | <ul><li>min: 26 characters</li><li>mean: 64.84 characters</li><li>max: 112 characters</li></ul> | <ul><li>min: 23 characters</li><li>mean: 36.55 characters</li><li>max: 60 characters</li></ul> | <ul><li>0: ~33.30%</li><li>1: ~23.70%</li><li>2: ~43.00%</li></ul> |
|
| 118 |
+
* Samples:
|
| 119 |
+
| premises | hypothesis | labels |
|
| 120 |
+
|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------|:---------------|
|
| 121 |
+
| <code>kitchen eighty centimeters wide, deep 70 cm placed on closed compartment</code> | <code>the kitchen is forty centimeters wide</code> | <code>0</code> |
|
| 122 |
+
| <code>cooking unit placed on cabinet deep 90 cm, gas supply,</code> | <code>the kitchen is placed on open shelf</code> | <code>2</code> |
|
| 123 |
+
| <code>cooking unit wide 40 cm, powered by electricity with the square plates</code> | <code>the kitchen measures one hundred twenty centimeters in width</code> | <code>0</code> |
|
| 124 |
+
* Loss: [<code>CrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#crossentropyloss)
|
| 125 |
+
|
| 126 |
+
### Evaluation Dataset
|
| 127 |
+
|
| 128 |
+
#### horeca-nli
|
| 129 |
+
|
| 130 |
+
* Dataset: [horeca-nli](https://huggingface.co/datasets/software-si/horeca-nli) at [a6bd6a4](https://huggingface.co/datasets/software-si/horeca-nli/tree/a6bd6a4e3cfa88c4081a4a0ff814f92d00dcf463)
|
| 131 |
+
* Size: 30,851 evaluation samples
|
| 132 |
+
* Columns: <code>premises</code>, <code>hypothesis</code>, and <code>labels</code>
|
| 133 |
+
* Approximate statistics based on the first 1000 samples:
|
| 134 |
+
| | premises | hypothesis | labels |
|
| 135 |
+
|:--------|:------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|:-------------------------------------------------------------------|
|
| 136 |
+
| type | string | string | int |
|
| 137 |
+
| details | <ul><li>min: 21 characters</li><li>mean: 65.62 characters</li><li>max: 114 characters</li></ul> | <ul><li>min: 23 characters</li><li>mean: 36.56 characters</li><li>max: 60 characters</li></ul> | <ul><li>0: ~35.20%</li><li>1: ~23.20%</li><li>2: ~41.60%</li></ul> |
|
| 138 |
+
* Samples:
|
| 139 |
+
| premises | hypothesis | labels |
|
| 140 |
+
|:-------------------------------------------------------------------------------|:--------------------------------------------------------|:---------------|
|
| 141 |
+
| <code>cooking unit with square plates on compartment with doors</code> | <code>the depth of the kitchen is 70 centimeters</code> | <code>2</code> |
|
| 142 |
+
| <code>cooking unit with 2 electric plates, on compartment with doors</code> | <code>the kitchen is placed on top</code> | <code>2</code> |
|
| 143 |
+
| <code>kitchen module in top version deep 70 cm eighty centimeters wide,</code> | <code>the kitchen is placed on cabinet</code> | <code>0</code> |
|
| 144 |
+
* Loss: [<code>CrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#crossentropyloss)
|
| 145 |
+
|
| 146 |
+
### Training Hyperparameters
|
| 147 |
+
#### Non-Default Hyperparameters
|
| 148 |
+
|
| 149 |
+
- `eval_strategy`: steps
|
| 150 |
+
- `per_device_train_batch_size`: 32
|
| 151 |
+
- `per_device_eval_batch_size`: 32
|
| 152 |
+
- `learning_rate`: 1e-05
|
| 153 |
+
- `num_train_epochs`: 1
|
| 154 |
+
- `warmup_steps`: 10283
|
| 155 |
+
- `bf16`: True
|
| 156 |
+
- `load_best_model_at_end`: True
|
| 157 |
+
|
| 158 |
+
#### All Hyperparameters
|
| 159 |
+
<details><summary>Click to expand</summary>
|
| 160 |
+
|
| 161 |
+
- `overwrite_output_dir`: False
|
| 162 |
+
- `do_predict`: False
|
| 163 |
+
- `eval_strategy`: steps
|
| 164 |
+
- `prediction_loss_only`: True
|
| 165 |
+
- `per_device_train_batch_size`: 32
|
| 166 |
+
- `per_device_eval_batch_size`: 32
|
| 167 |
+
- `per_gpu_train_batch_size`: None
|
| 168 |
+
- `per_gpu_eval_batch_size`: None
|
| 169 |
+
- `gradient_accumulation_steps`: 1
|
| 170 |
+
- `eval_accumulation_steps`: None
|
| 171 |
+
- `torch_empty_cache_steps`: None
|
| 172 |
+
- `learning_rate`: 1e-05
|
| 173 |
+
- `weight_decay`: 0.0
|
| 174 |
+
- `adam_beta1`: 0.9
|
| 175 |
+
- `adam_beta2`: 0.999
|
| 176 |
+
- `adam_epsilon`: 1e-08
|
| 177 |
+
- `max_grad_norm`: 1.0
|
| 178 |
+
- `num_train_epochs`: 1
|
| 179 |
+
- `max_steps`: -1
|
| 180 |
+
- `lr_scheduler_type`: linear
|
| 181 |
+
- `lr_scheduler_kwargs`: {}
|
| 182 |
+
- `warmup_ratio`: 0.0
|
| 183 |
+
- `warmup_steps`: 10283
|
| 184 |
+
- `log_level`: passive
|
| 185 |
+
- `log_level_replica`: warning
|
| 186 |
+
- `log_on_each_node`: True
|
| 187 |
+
- `logging_nan_inf_filter`: True
|
| 188 |
+
- `save_safetensors`: True
|
| 189 |
+
- `save_on_each_node`: False
|
| 190 |
+
- `save_only_model`: False
|
| 191 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 192 |
+
- `no_cuda`: False
|
| 193 |
+
- `use_cpu`: False
|
| 194 |
+
- `use_mps_device`: False
|
| 195 |
+
- `seed`: 42
|
| 196 |
+
- `data_seed`: None
|
| 197 |
+
- `jit_mode_eval`: False
|
| 198 |
+
- `use_ipex`: False
|
| 199 |
+
- `bf16`: True
|
| 200 |
+
- `fp16`: False
|
| 201 |
+
- `fp16_opt_level`: O1
|
| 202 |
+
- `half_precision_backend`: auto
|
| 203 |
+
- `bf16_full_eval`: False
|
| 204 |
+
- `fp16_full_eval`: False
|
| 205 |
+
- `tf32`: None
|
| 206 |
+
- `local_rank`: 0
|
| 207 |
+
- `ddp_backend`: None
|
| 208 |
+
- `tpu_num_cores`: None
|
| 209 |
+
- `tpu_metrics_debug`: False
|
| 210 |
+
- `debug`: []
|
| 211 |
+
- `dataloader_drop_last`: False
|
| 212 |
+
- `dataloader_num_workers`: 0
|
| 213 |
+
- `dataloader_prefetch_factor`: None
|
| 214 |
+
- `past_index`: -1
|
| 215 |
+
- `disable_tqdm`: False
|
| 216 |
+
- `remove_unused_columns`: True
|
| 217 |
+
- `label_names`: None
|
| 218 |
+
- `load_best_model_at_end`: True
|
| 219 |
+
- `ignore_data_skip`: False
|
| 220 |
+
- `fsdp`: []
|
| 221 |
+
- `fsdp_min_num_params`: 0
|
| 222 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 223 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 224 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 225 |
+
- `parallelism_config`: None
|
| 226 |
+
- `deepspeed`: None
|
| 227 |
+
- `label_smoothing_factor`: 0.0
|
| 228 |
+
- `optim`: adamw_torch_fused
|
| 229 |
+
- `optim_args`: None
|
| 230 |
+
- `adafactor`: False
|
| 231 |
+
- `group_by_length`: False
|
| 232 |
+
- `length_column_name`: length
|
| 233 |
+
- `ddp_find_unused_parameters`: None
|
| 234 |
+
- `ddp_bucket_cap_mb`: None
|
| 235 |
+
- `ddp_broadcast_buffers`: False
|
| 236 |
+
- `dataloader_pin_memory`: True
|
| 237 |
+
- `dataloader_persistent_workers`: False
|
| 238 |
+
- `skip_memory_metrics`: True
|
| 239 |
+
- `use_legacy_prediction_loop`: False
|
| 240 |
+
- `push_to_hub`: False
|
| 241 |
+
- `resume_from_checkpoint`: None
|
| 242 |
+
- `hub_model_id`: None
|
| 243 |
+
- `hub_strategy`: every_save
|
| 244 |
+
- `hub_private_repo`: None
|
| 245 |
+
- `hub_always_push`: False
|
| 246 |
+
- `hub_revision`: None
|
| 247 |
+
- `gradient_checkpointing`: False
|
| 248 |
+
- `gradient_checkpointing_kwargs`: None
|
| 249 |
+
- `include_inputs_for_metrics`: False
|
| 250 |
+
- `include_for_metrics`: []
|
| 251 |
+
- `eval_do_concat_batches`: True
|
| 252 |
+
- `fp16_backend`: auto
|
| 253 |
+
- `push_to_hub_model_id`: None
|
| 254 |
+
- `push_to_hub_organization`: None
|
| 255 |
+
- `mp_parameters`:
|
| 256 |
+
- `auto_find_batch_size`: False
|
| 257 |
+
- `full_determinism`: False
|
| 258 |
+
- `torchdynamo`: None
|
| 259 |
+
- `ray_scope`: last
|
| 260 |
+
- `ddp_timeout`: 1800
|
| 261 |
+
- `torch_compile`: False
|
| 262 |
+
- `torch_compile_backend`: None
|
| 263 |
+
- `torch_compile_mode`: None
|
| 264 |
+
- `include_tokens_per_second`: False
|
| 265 |
+
- `include_num_input_tokens_seen`: False
|
| 266 |
+
- `neftune_noise_alpha`: None
|
| 267 |
+
- `optim_target_modules`: None
|
| 268 |
+
- `batch_eval_metrics`: False
|
| 269 |
+
- `eval_on_start`: False
|
| 270 |
+
- `use_liger_kernel`: False
|
| 271 |
+
- `liger_kernel_config`: None
|
| 272 |
+
- `eval_use_gather_object`: False
|
| 273 |
+
- `average_tokens_across_devices`: False
|
| 274 |
+
- `prompts`: None
|
| 275 |
+
- `batch_sampler`: batch_sampler
|
| 276 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 277 |
+
- `router_mapping`: {}
|
| 278 |
+
- `learning_rate_mapping`: {}
|
| 279 |
+
|
| 280 |
+
</details>
|
| 281 |
+
|
| 282 |
+
### Training Logs
|
| 283 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
| 284 |
+
|:------:|:----:|:-------------:|:---------------:|
|
| 285 |
+
| 0.1556 | 500 | 0.2842 | 0.1468 |
|
| 286 |
+
| 0.3111 | 1000 | 0.1083 | 0.0741 |
|
| 287 |
+
| 0.1556 | 500 | 0.0652 | 0.0457 |
|
| 288 |
+
| 0.3111 | 1000 | 0.0303 | 0.0189 |
|
| 289 |
+
| 0.4667 | 1500 | 0.0157 | 0.0357 |
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
### Framework Versions
|
| 293 |
+
- Python: 3.12.11
|
| 294 |
+
- Sentence Transformers: 5.1.1
|
| 295 |
+
- Transformers: 4.56.2
|
| 296 |
+
- PyTorch: 2.8.0+cu128
|
| 297 |
+
- Accelerate: 1.10.1
|
| 298 |
+
- Datasets: 4.1.1
|
| 299 |
+
- Tokenizers: 0.22.1
|
| 300 |
+
|
| 301 |
+
## Citation
|
| 302 |
+
|
| 303 |
+
### BibTeX
|
| 304 |
+
|
| 305 |
+
#### Sentence Transformers
|
| 306 |
+
```bibtex
|
| 307 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 308 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 309 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 310 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 311 |
+
month = "11",
|
| 312 |
+
year = "2019",
|
| 313 |
+
publisher = "Association for Computational Linguistics",
|
| 314 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 315 |
+
}
|
| 316 |
+
```
|
| 317 |
+
|
| 318 |
+
<!--
|
| 319 |
+
## Glossary
|
| 320 |
+
|
| 321 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 322 |
+
-->
|
| 323 |
+
|
| 324 |
+
<!--
|
| 325 |
+
## Model Card Authors
|
| 326 |
+
|
| 327 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 328 |
+
-->
|
| 329 |
+
|
| 330 |
+
<!--
|
| 331 |
+
## Model Card Contact
|
| 332 |
+
|
| 333 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 334 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"DebertaV2ForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"dtype": "float32",
|
| 8 |
+
"eos_token_id": 2,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "contradiction",
|
| 14 |
+
"1": "entailment",
|
| 15 |
+
"2": "neutral"
|
| 16 |
+
},
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 3072,
|
| 19 |
+
"label2id": {
|
| 20 |
+
"contradiction": 0,
|
| 21 |
+
"entailment": 1,
|
| 22 |
+
"neutral": 2
|
| 23 |
+
},
|
| 24 |
+
"layer_norm_eps": 1e-07,
|
| 25 |
+
"legacy": true,
|
| 26 |
+
"max_position_embeddings": 512,
|
| 27 |
+
"max_relative_positions": -1,
|
| 28 |
+
"model_type": "deberta-v2",
|
| 29 |
+
"norm_rel_ebd": "layer_norm",
|
| 30 |
+
"num_attention_heads": 12,
|
| 31 |
+
"num_hidden_layers": 12,
|
| 32 |
+
"pad_token_id": 0,
|
| 33 |
+
"pooler_dropout": 0,
|
| 34 |
+
"pooler_hidden_act": "gelu",
|
| 35 |
+
"pooler_hidden_size": 768,
|
| 36 |
+
"pos_att_type": [
|
| 37 |
+
"p2c",
|
| 38 |
+
"c2p"
|
| 39 |
+
],
|
| 40 |
+
"position_biased_input": false,
|
| 41 |
+
"position_buckets": 256,
|
| 42 |
+
"relative_attention": true,
|
| 43 |
+
"sentence_transformers": {
|
| 44 |
+
"activation_fn": "torch.nn.modules.linear.Identity",
|
| 45 |
+
"version": "5.1.1"
|
| 46 |
+
},
|
| 47 |
+
"share_att_key": true,
|
| 48 |
+
"transformers_version": "4.56.2",
|
| 49 |
+
"type_vocab_size": 0,
|
| 50 |
+
"vocab_size": 128100
|
| 51 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2e33b79edab81d0c3e4f29a140d91901f89d856ff9f087603d55052c2ee958d
|
| 3 |
+
size 737722356
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"cls_token": {
|
| 10 |
+
"content": "[CLS]",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"eos_token": {
|
| 17 |
+
"content": "[SEP]",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"mask_token": {
|
| 24 |
+
"content": "[MASK]",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"pad_token": {
|
| 31 |
+
"content": "[PAD]",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
},
|
| 37 |
+
"sep_token": {
|
| 38 |
+
"content": "[SEP]",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false
|
| 43 |
+
},
|
| 44 |
+
"unk_token": {
|
| 45 |
+
"content": "[UNK]",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": true,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false
|
| 50 |
+
}
|
| 51 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "[CLS]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "[SEP]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "[UNK]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": true,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"128000": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"bos_token": "[CLS]",
|
| 45 |
+
"clean_up_tokenization_spaces": false,
|
| 46 |
+
"cls_token": "[CLS]",
|
| 47 |
+
"do_lower_case": false,
|
| 48 |
+
"eos_token": "[SEP]",
|
| 49 |
+
"extra_special_tokens": {},
|
| 50 |
+
"mask_token": "[MASK]",
|
| 51 |
+
"model_max_length": 512,
|
| 52 |
+
"pad_token": "[PAD]",
|
| 53 |
+
"sep_token": "[SEP]",
|
| 54 |
+
"sp_model_kwargs": {},
|
| 55 |
+
"split_by_punct": false,
|
| 56 |
+
"tokenizer_class": "DebertaV2Tokenizer",
|
| 57 |
+
"unk_token": "[UNK]",
|
| 58 |
+
"vocab_type": "spm"
|
| 59 |
+
}
|