tani-at-nola commited on
Commit
d3b35b0
·
verified ·
1 Parent(s): 59886b0

Add new CrossEncoder model

Browse files
README.md ADDED
@@ -0,0 +1,481 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - cross-encoder
5
+ - reranker
6
+ - generated_from_trainer
7
+ - dataset_size:942069
8
+ - loss:BinaryCrossEntropyLoss
9
+ base_model: microsoft/deberta-v3-base
10
+ pipeline_tag: text-ranking
11
+ library_name: sentence-transformers
12
+ metrics:
13
+ - accuracy
14
+ - accuracy_threshold
15
+ - f1
16
+ - f1_threshold
17
+ - precision
18
+ - recall
19
+ - average_precision
20
+ model-index:
21
+ - name: CrossEncoder based on microsoft/deberta-v3-base
22
+ results:
23
+ - task:
24
+ type: cross-encoder-classification
25
+ name: Cross Encoder Classification
26
+ dataset:
27
+ name: AllNLI norm dev
28
+ type: AllNLI-norm-dev
29
+ metrics:
30
+ - type: accuracy
31
+ value: 0.6807244238693595
32
+ name: Accuracy
33
+ - type: accuracy_threshold
34
+ value: 0.4375791847705841
35
+ name: Accuracy Threshold
36
+ - type: f1
37
+ value: 0.5465734265734266
38
+ name: F1
39
+ - type: f1_threshold
40
+ value: 0.00438243243843317
41
+ name: F1 Threshold
42
+ - type: precision
43
+ value: 0.40035514274006284
44
+ name: Precision
45
+ - type: recall
46
+ value: 0.8610458284371327
47
+ name: Recall
48
+ - type: average_precision
49
+ value: 0.49929639749742777
50
+ name: Average Precision
51
+ - task:
52
+ type: cross-encoder-classification
53
+ name: Cross Encoder Classification
54
+ dataset:
55
+ name: AllNLI test
56
+ type: AllNLI-test
57
+ metrics:
58
+ - type: accuracy
59
+ value: 0.6814204314204314
60
+ name: Accuracy
61
+ - type: accuracy_threshold
62
+ value: 0.5599576234817505
63
+ name: Accuracy Threshold
64
+ - type: f1
65
+ value: 0.5269568771714694
66
+ name: F1
67
+ - type: f1_threshold
68
+ value: 0.0010413693962618709
69
+ name: F1 Threshold
70
+ - type: precision
71
+ value: 0.3655438357718045
72
+ name: Precision
73
+ - type: recall
74
+ value: 0.9436392914653784
75
+ name: Recall
76
+ - type: average_precision
77
+ value: 0.48186391164637776
78
+ name: Average Precision
79
+ ---
80
+
81
+ # CrossEncoder based on microsoft/deberta-v3-base
82
+
83
+ This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [microsoft/deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
84
+
85
+ ## Model Details
86
+
87
+ ### Model Description
88
+ - **Model Type:** Cross Encoder
89
+ - **Base model:** [microsoft/deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) <!-- at revision 8ccc9b6f36199bec6961081d44eb72fb3f7353f3 -->
90
+ - **Maximum Sequence Length:** 512 tokens
91
+ - **Number of Output Labels:** 1 label
92
+ <!-- - **Training Dataset:** Unknown -->
93
+ <!-- - **Language:** Unknown -->
94
+ <!-- - **License:** Unknown -->
95
+
96
+ ### Model Sources
97
+
98
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
99
+ - **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
100
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
101
+ - **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
102
+
103
+ ## Usage
104
+
105
+ ### Direct Usage (Sentence Transformers)
106
+
107
+ First install the Sentence Transformers library:
108
+
109
+ ```bash
110
+ pip install -U sentence-transformers
111
+ ```
112
+
113
+ Then you can load this model and run inference.
114
+ ```python
115
+ from sentence_transformers import CrossEncoder
116
+
117
+ # Download from the 🤗 Hub
118
+ model = CrossEncoder("tani-at-nola/reranker-deberta-v3-base-nli")
119
+ # Get scores for pairs of texts
120
+ pairs = [
121
+ ['The sisters are hugging goodbye while holding to go packages after just eating lunch.', 'Two women are embracing while holding to go packages.'],
122
+ ['Two woman are holding packages.', 'Two women are embracing while holding to go packages.'],
123
+ ['The men are fighting outside a deli.', 'Two women are embracing while holding to go packages.'],
124
+ ['Two kids in numbered jerseys wash their hands.', 'Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.'],
125
+ ['Two kids at a ballgame wash their hands.', 'Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.'],
126
+ ]
127
+ scores = model.predict(pairs)
128
+ print(scores.shape)
129
+ # (5,)
130
+
131
+ # Or rank different texts based on similarity to a single text
132
+ ranks = model.rank(
133
+ 'The sisters are hugging goodbye while holding to go packages after just eating lunch.',
134
+ [
135
+ 'Two women are embracing while holding to go packages.',
136
+ 'Two women are embracing while holding to go packages.',
137
+ 'Two women are embracing while holding to go packages.',
138
+ 'Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.',
139
+ 'Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.',
140
+ ]
141
+ )
142
+ # [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
143
+ ```
144
+
145
+ <!--
146
+ ### Direct Usage (Transformers)
147
+
148
+ <details><summary>Click to see the direct usage in Transformers</summary>
149
+
150
+ </details>
151
+ -->
152
+
153
+ <!--
154
+ ### Downstream Usage (Sentence Transformers)
155
+
156
+ You can finetune this model on your own dataset.
157
+
158
+ <details><summary>Click to expand</summary>
159
+
160
+ </details>
161
+ -->
162
+
163
+ <!--
164
+ ### Out-of-Scope Use
165
+
166
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
167
+ -->
168
+
169
+ ## Evaluation
170
+
171
+ ### Metrics
172
+
173
+ #### Cross Encoder Classification
174
+
175
+ * Datasets: `AllNLI-norm-dev` and `AllNLI-test`
176
+ * Evaluated with [<code>CrossEncoderClassificationEvaluator</code>](https://sbert.net/docs/package_reference/cross_encoder/evaluation.html#sentence_transformers.cross_encoder.evaluation.CrossEncoderClassificationEvaluator)
177
+
178
+ | Metric | AllNLI-norm-dev | AllNLI-test |
179
+ |:----------------------|:----------------|:------------|
180
+ | accuracy | 0.6807 | 0.6814 |
181
+ | accuracy_threshold | 0.4376 | 0.56 |
182
+ | f1 | 0.5466 | 0.527 |
183
+ | f1_threshold | 0.0044 | 0.001 |
184
+ | precision | 0.4004 | 0.3655 |
185
+ | recall | 0.861 | 0.9436 |
186
+ | **average_precision** | **0.4993** | **0.4819** |
187
+
188
+ <!--
189
+ ## Bias, Risks and Limitations
190
+
191
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
192
+ -->
193
+
194
+ <!--
195
+ ### Recommendations
196
+
197
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
198
+ -->
199
+
200
+ ## Training Details
201
+
202
+ ### Training Dataset
203
+
204
+ #### Unnamed Dataset
205
+
206
+ * Size: 942,069 training samples
207
+ * Columns: <code>hypothesis</code>, <code>premise</code>, and <code>label</code>
208
+ * Approximate statistics based on the first 1000 samples:
209
+ | | hypothesis | premise | label |
210
+ |:--------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------|
211
+ | type | string | string | int |
212
+ | details | <ul><li>min: 11 characters</li><li>mean: 38.26 characters</li><li>max: 131 characters</li></ul> | <ul><li>min: 23 characters</li><li>mean: 69.54 characters</li><li>max: 227 characters</li></ul> | <ul><li>0: ~66.60%</li><li>1: ~33.40%</li></ul> |
213
+ * Samples:
214
+ | hypothesis | premise | label |
215
+ |:---------------------------------------------------------------|:--------------------------------------------------------------------|:---------------|
216
+ | <code>A person is training his horse for a competition.</code> | <code>A person on a horse jumps over a broken down airplane.</code> | <code>0</code> |
217
+ | <code>A person is at a diner, ordering an omelette.</code> | <code>A person on a horse jumps over a broken down airplane.</code> | <code>0</code> |
218
+ | <code>A person is outdoors, on a horse.</code> | <code>A person on a horse jumps over a broken down airplane.</code> | <code>1</code> |
219
+ * Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
220
+ ```json
221
+ {
222
+ "activation_fn": "torch.nn.modules.linear.Identity",
223
+ "pos_weight": null
224
+ }
225
+ ```
226
+
227
+ ### Evaluation Dataset
228
+
229
+ #### Unnamed Dataset
230
+
231
+ * Size: 19,657 evaluation samples
232
+ * Columns: <code>hypothesis</code>, <code>premise</code>, and <code>label</code>
233
+ * Approximate statistics based on the first 1000 samples:
234
+ | | hypothesis | premise | label |
235
+ |:--------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:------------------------------------------------|
236
+ | type | string | string | int |
237
+ | details | <ul><li>min: 11 characters</li><li>mean: 37.66 characters</li><li>max: 116 characters</li></ul> | <ul><li>min: 16 characters</li><li>mean: 75.01 characters</li><li>max: 229 characters</li></ul> | <ul><li>0: ~66.90%</li><li>1: ~33.10%</li></ul> |
238
+ * Samples:
239
+ | hypothesis | premise | label |
240
+ |:---------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------|:---------------|
241
+ | <code>The sisters are hugging goodbye while holding to go packages after just eating lunch.</code> | <code>Two women are embracing while holding to go packages.</code> | <code>0</code> |
242
+ | <code>Two woman are holding packages.</code> | <code>Two women are embracing while holding to go packages.</code> | <code>1</code> |
243
+ | <code>The men are fighting outside a deli.</code> | <code>Two women are embracing while holding to go packages.</code> | <code>0</code> |
244
+ * Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
245
+ ```json
246
+ {
247
+ "activation_fn": "torch.nn.modules.linear.Identity",
248
+ "pos_weight": null
249
+ }
250
+ ```
251
+
252
+ ### Training Hyperparameters
253
+ #### Non-Default Hyperparameters
254
+
255
+ - `eval_strategy`: steps
256
+ - `per_device_train_batch_size`: 64
257
+ - `per_device_eval_batch_size`: 64
258
+ - `num_train_epochs`: 5
259
+ - `warmup_ratio`: 0.1
260
+ - `bf16`: True
261
+ - `load_best_model_at_end`: True
262
+
263
+ #### All Hyperparameters
264
+ <details><summary>Click to expand</summary>
265
+
266
+ - `overwrite_output_dir`: False
267
+ - `do_predict`: False
268
+ - `eval_strategy`: steps
269
+ - `prediction_loss_only`: True
270
+ - `per_device_train_batch_size`: 64
271
+ - `per_device_eval_batch_size`: 64
272
+ - `per_gpu_train_batch_size`: None
273
+ - `per_gpu_eval_batch_size`: None
274
+ - `gradient_accumulation_steps`: 1
275
+ - `eval_accumulation_steps`: None
276
+ - `torch_empty_cache_steps`: None
277
+ - `learning_rate`: 5e-05
278
+ - `weight_decay`: 0.0
279
+ - `adam_beta1`: 0.9
280
+ - `adam_beta2`: 0.999
281
+ - `adam_epsilon`: 1e-08
282
+ - `max_grad_norm`: 1.0
283
+ - `num_train_epochs`: 5
284
+ - `max_steps`: -1
285
+ - `lr_scheduler_type`: linear
286
+ - `lr_scheduler_kwargs`: {}
287
+ - `warmup_ratio`: 0.1
288
+ - `warmup_steps`: 0
289
+ - `log_level`: passive
290
+ - `log_level_replica`: warning
291
+ - `log_on_each_node`: True
292
+ - `logging_nan_inf_filter`: True
293
+ - `save_safetensors`: True
294
+ - `save_on_each_node`: False
295
+ - `save_only_model`: False
296
+ - `restore_callback_states_from_checkpoint`: False
297
+ - `no_cuda`: False
298
+ - `use_cpu`: False
299
+ - `use_mps_device`: False
300
+ - `seed`: 42
301
+ - `data_seed`: None
302
+ - `jit_mode_eval`: False
303
+ - `use_ipex`: False
304
+ - `bf16`: True
305
+ - `fp16`: False
306
+ - `fp16_opt_level`: O1
307
+ - `half_precision_backend`: auto
308
+ - `bf16_full_eval`: False
309
+ - `fp16_full_eval`: False
310
+ - `tf32`: None
311
+ - `local_rank`: 0
312
+ - `ddp_backend`: None
313
+ - `tpu_num_cores`: None
314
+ - `tpu_metrics_debug`: False
315
+ - `debug`: []
316
+ - `dataloader_drop_last`: True
317
+ - `dataloader_num_workers`: 0
318
+ - `dataloader_prefetch_factor`: None
319
+ - `past_index`: -1
320
+ - `disable_tqdm`: False
321
+ - `remove_unused_columns`: True
322
+ - `label_names`: None
323
+ - `load_best_model_at_end`: True
324
+ - `ignore_data_skip`: False
325
+ - `fsdp`: []
326
+ - `fsdp_min_num_params`: 0
327
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
328
+ - `fsdp_transformer_layer_cls_to_wrap`: None
329
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
330
+ - `deepspeed`: None
331
+ - `label_smoothing_factor`: 0.0
332
+ - `optim`: adamw_torch
333
+ - `optim_args`: None
334
+ - `adafactor`: False
335
+ - `group_by_length`: False
336
+ - `length_column_name`: length
337
+ - `ddp_find_unused_parameters`: None
338
+ - `ddp_bucket_cap_mb`: None
339
+ - `ddp_broadcast_buffers`: False
340
+ - `dataloader_pin_memory`: True
341
+ - `dataloader_persistent_workers`: False
342
+ - `skip_memory_metrics`: True
343
+ - `use_legacy_prediction_loop`: False
344
+ - `push_to_hub`: False
345
+ - `resume_from_checkpoint`: None
346
+ - `hub_model_id`: None
347
+ - `hub_strategy`: every_save
348
+ - `hub_private_repo`: None
349
+ - `hub_always_push`: False
350
+ - `hub_revision`: None
351
+ - `gradient_checkpointing`: False
352
+ - `gradient_checkpointing_kwargs`: None
353
+ - `include_inputs_for_metrics`: False
354
+ - `include_for_metrics`: []
355
+ - `eval_do_concat_batches`: True
356
+ - `fp16_backend`: auto
357
+ - `push_to_hub_model_id`: None
358
+ - `push_to_hub_organization`: None
359
+ - `mp_parameters`:
360
+ - `auto_find_batch_size`: False
361
+ - `full_determinism`: False
362
+ - `torchdynamo`: None
363
+ - `ray_scope`: last
364
+ - `ddp_timeout`: 1800
365
+ - `torch_compile`: False
366
+ - `torch_compile_backend`: None
367
+ - `torch_compile_mode`: None
368
+ - `include_tokens_per_second`: False
369
+ - `include_num_input_tokens_seen`: False
370
+ - `neftune_noise_alpha`: None
371
+ - `optim_target_modules`: None
372
+ - `batch_eval_metrics`: False
373
+ - `eval_on_start`: False
374
+ - `use_liger_kernel`: False
375
+ - `liger_kernel_config`: None
376
+ - `eval_use_gather_object`: False
377
+ - `average_tokens_across_devices`: False
378
+ - `prompts`: None
379
+ - `batch_sampler`: batch_sampler
380
+ - `multi_dataset_batch_sampler`: proportional
381
+ - `router_mapping`: {}
382
+ - `learning_rate_mapping`: {}
383
+
384
+ </details>
385
+
386
+ ### Training Logs
387
+ | Epoch | Step | Training Loss | Validation Loss | AllNLI-norm-dev_average_precision | AllNLI-test_average_precision |
388
+ |:----------:|:--------:|:-------------:|:---------------:|:---------------------------------:|:-----------------------------:|
389
+ | -1 | -1 | - | - | 0.3614 | - |
390
+ | 0.0068 | 100 | 0.7205 | - | - | - |
391
+ | 0.0136 | 200 | 0.6972 | - | - | - |
392
+ | 0.0204 | 300 | 0.6086 | - | - | - |
393
+ | 0.0272 | 400 | 0.4855 | - | - | - |
394
+ | 0.0340 | 500 | 0.3991 | - | - | - |
395
+ | 0.0408 | 600 | 0.3409 | - | - | - |
396
+ | 0.0476 | 700 | 0.2987 | - | - | - |
397
+ | 0.0544 | 800 | 0.2841 | - | - | - |
398
+ | 0.0611 | 900 | 0.2729 | - | - | - |
399
+ | 0.0679 | 1000 | 0.2627 | - | - | - |
400
+ | 0.0747 | 1100 | 0.2517 | - | - | - |
401
+ | 0.0815 | 1200 | 0.2286 | - | - | - |
402
+ | 0.0883 | 1300 | 0.2385 | - | - | - |
403
+ | 0.0951 | 1400 | 0.2329 | - | - | - |
404
+ | 0.1019 | 1500 | 0.2213 | 0.1959 | 0.4997 | - |
405
+ | 0.1087 | 1600 | 0.22 | - | - | - |
406
+ | 0.1155 | 1700 | 0.2295 | - | - | - |
407
+ | 0.1223 | 1800 | 0.2236 | - | - | - |
408
+ | 0.1291 | 1900 | 0.2273 | - | - | - |
409
+ | 0.1359 | 2000 | 0.2071 | - | - | - |
410
+ | 0.1427 | 2100 | 0.2254 | - | - | - |
411
+ | 0.1495 | 2200 | 0.2217 | - | - | - |
412
+ | 0.1563 | 2300 | 0.2093 | - | - | - |
413
+ | 0.1631 | 2400 | 0.2112 | - | - | - |
414
+ | 0.1698 | 2500 | 0.2176 | - | - | - |
415
+ | 0.1766 | 2600 | 0.2195 | - | - | - |
416
+ | 0.1834 | 2700 | 0.2107 | - | - | - |
417
+ | 0.1902 | 2800 | 0.2164 | - | - | - |
418
+ | 0.1970 | 2900 | 0.213 | - | - | - |
419
+ | **0.2038** | **3000** | **0.2055** | **0.1726** | **0.4789** | **-** |
420
+ | 0.2106 | 3100 | 0.2039 | - | - | - |
421
+ | 0.2174 | 3200 | 0.2157 | - | - | - |
422
+ | 0.2242 | 3300 | 0.2155 | - | - | - |
423
+ | 0.2310 | 3400 | 0.2017 | - | - | - |
424
+ | 0.2378 | 3500 | 0.2068 | - | - | - |
425
+ | 0.2446 | 3600 | 0.2111 | - | - | - |
426
+ | 0.2514 | 3700 | 0.2062 | - | - | - |
427
+ | 0.2582 | 3800 | 0.2062 | - | - | - |
428
+ | 0.2650 | 3900 | 0.2217 | - | - | - |
429
+ | 0.2718 | 4000 | 0.2012 | - | - | - |
430
+ | 0.2786 | 4100 | 0.2127 | - | - | - |
431
+ | 0.2853 | 4200 | 0.212 | - | - | - |
432
+ | 0.2921 | 4300 | 0.2075 | - | - | - |
433
+ | 0.2989 | 4400 | 0.2099 | - | - | - |
434
+ | 0.3057 | 4500 | 0.2134 | 0.1644 | 0.4993 | - |
435
+ | -1 | -1 | - | - | - | 0.4819 |
436
+
437
+ * The bold row denotes the saved checkpoint.
438
+
439
+ ### Framework Versions
440
+ - Python: 3.10.12
441
+ - Sentence Transformers: 5.0.0
442
+ - Transformers: 4.53.2
443
+ - PyTorch: 2.7.1+cu126
444
+ - Accelerate: 1.9.0
445
+ - Datasets: 4.0.0
446
+ - Tokenizers: 0.21.2
447
+
448
+ ## Citation
449
+
450
+ ### BibTeX
451
+
452
+ #### Sentence Transformers
453
+ ```bibtex
454
+ @inproceedings{reimers-2019-sentence-bert,
455
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
456
+ author = "Reimers, Nils and Gurevych, Iryna",
457
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
458
+ month = "11",
459
+ year = "2019",
460
+ publisher = "Association for Computational Linguistics",
461
+ url = "https://arxiv.org/abs/1908.10084",
462
+ }
463
+ ```
464
+
465
+ <!--
466
+ ## Glossary
467
+
468
+ *Clearly define terms in order to be accessible across audiences.*
469
+ -->
470
+
471
+ <!--
472
+ ## Model Card Authors
473
+
474
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
475
+ -->
476
+
477
+ <!--
478
+ ## Model Card Contact
479
+
480
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
481
+ -->
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DebertaV2ForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "hidden_act": "gelu",
7
+ "hidden_dropout_prob": 0.1,
8
+ "hidden_size": 768,
9
+ "id2label": {
10
+ "0": "LABEL_0"
11
+ },
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "label2id": {
15
+ "LABEL_0": 0
16
+ },
17
+ "layer_norm_eps": 1e-07,
18
+ "legacy": true,
19
+ "max_position_embeddings": 512,
20
+ "max_relative_positions": -1,
21
+ "model_type": "deberta-v2",
22
+ "norm_rel_ebd": "layer_norm",
23
+ "num_attention_heads": 12,
24
+ "num_hidden_layers": 12,
25
+ "pad_token_id": 0,
26
+ "pooler_dropout": 0,
27
+ "pooler_hidden_act": "gelu",
28
+ "pooler_hidden_size": 768,
29
+ "pos_att_type": [
30
+ "p2c",
31
+ "c2p"
32
+ ],
33
+ "position_biased_input": false,
34
+ "position_buckets": 256,
35
+ "relative_attention": true,
36
+ "sentence_transformers": {
37
+ "activation_fn": "torch.nn.modules.activation.Sigmoid",
38
+ "version": "5.0.0"
39
+ },
40
+ "share_att_key": true,
41
+ "torch_dtype": "float32",
42
+ "transformers_version": "4.53.2",
43
+ "type_vocab_size": 0,
44
+ "vocab_size": 128100
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddd1af35c1ed1f48817f2cb8e0ae4ebb08f5e4380a846b68eda58305a5400a5b
3
+ size 737716196
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "unk_token": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
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
+ }