laura2243 commited on
Commit
2033599
·
verified ·
1 Parent(s): fbd0d65

Upload folder using huggingface_hub

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:44114
9
+ - loss:ContrastiveLoss
10
+ widget:
11
+ - source_sentence: The Sadrist movement left the Alliance before the elections in
12
+ December 2005 , which also brought the Iraqi National Congress more firmly to
13
+ the Alliance .
14
+ sentences:
15
+ - The Iraqi National Congress left the Alliance before the December 2005 elections
16
+ , which also brought the Sadrist movement more to the Alliance .
17
+ - He pioneered important developments in the style of sculpting in wood , parallel
18
+ to those driven by Filippo Parodi in marble sculpture and Domenico Piola in painting
19
+ .
20
+ - The Mine South Deep is a large mine in the northern part of Gauteng in South Africa
21
+ .
22
+ - source_sentence: Mike Monroney was challenged by A.S. Thomas in the Democratic Prefix
23
+ in 1950 .
24
+ sentences:
25
+ - was challenged in 1950 by A.S. Mike Monroney in the Democratic Primary .
26
+ - The T helper cells then activate the B cells , which are also in the presence
27
+ of these antigens , causing the production of autoantibodies .
28
+ - Illinois Route 158 , or Washington Avenue , leads west to Columbia and east to
29
+ Belleville .
30
+ - source_sentence: Morrow can mean either the next day in particular or the future
31
+ in general .
32
+ sentences:
33
+ - Brockton is located approximately 25 miles northeast of Providence , Rhode Island
34
+ and 30 miles south of Boston .
35
+ - He had been in the state playing for Melbourne , but moved to Victoria in 1925
36
+ and appointed New Town .
37
+ - Morrow can either mean the next day in general , or the future in particular .
38
+ - source_sentence: Fotbal Club Forex Braşov was a Romanian professional club from
39
+ Braşov , Romania , who was founded in October 2002 and was dissolved in 2011 .
40
+ sentences:
41
+ - Fotbal Club Forex Braşov was a Romanian professional club from Braşov , Romania
42
+ , which was dissolved in October 2002 and was founded in 2011 .
43
+ - Nate decides to struggle for Ricky and confirms his love for her .
44
+ - Ricardo Lingan Baccay was ordained a priest on April 10 , 1987 by Diosdado Aenlle
45
+ Talamayan .
46
+ - source_sentence: He was born in July 1973 in Petroupoli ( Athens ) .
47
+ sentences:
48
+ - Carmen Aub Romero ( born October 24 , 1989 in Mexico City , DF , Mexico ) is a
49
+ Mexican actress .
50
+ - He was born in Athens in July 1973 ( Petroupoli ) .
51
+ - At the age of nine , Garcia appeared in his first concert and since then has appeared
52
+ alone or with his aunt and his uncle in all parts of France .
53
+ pipeline_tag: sentence-similarity
54
+ library_name: sentence-transformers
55
+ metrics:
56
+ - cosine_accuracy
57
+ - cosine_accuracy_threshold
58
+ - cosine_f1
59
+ - cosine_f1_threshold
60
+ - cosine_precision
61
+ - cosine_recall
62
+ - cosine_ap
63
+ - cosine_mcc
64
+ model-index:
65
+ - name: SentenceTransformer
66
+ results:
67
+ - task:
68
+ type: binary-classification
69
+ name: Binary Classification
70
+ dataset:
71
+ name: paws val deberta
72
+ type: paws-val-deberta
73
+ metrics:
74
+ - type: cosine_accuracy
75
+ value: 0.9121457489878543
76
+ name: Cosine Accuracy
77
+ - type: cosine_accuracy_threshold
78
+ value: 0.8481842279434204
79
+ name: Cosine Accuracy Threshold
80
+ - type: cosine_f1
81
+ value: 0.9024280575539567
82
+ name: Cosine F1
83
+ - type: cosine_f1_threshold
84
+ value: 0.8432618379592896
85
+ name: Cosine F1 Threshold
86
+ - type: cosine_precision
87
+ value: 0.8860927152317881
88
+ name: Cosine Precision
89
+ - type: cosine_recall
90
+ value: 0.9193770041227668
91
+ name: Cosine Recall
92
+ - type: cosine_ap
93
+ value: 0.9503471324249102
94
+ name: Cosine Ap
95
+ - type: cosine_mcc
96
+ value: 0.8230430822451054
97
+ name: Cosine Mcc
98
+ ---
99
+
100
+ # SentenceTransformer
101
+
102
+ This is a [sentence-transformers](https://www.SBERT.net) model trained. 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.
103
+
104
+ ## Model Details
105
+
106
+ ### Model Description
107
+ - **Model Type:** Sentence Transformer
108
+ <!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
109
+ - **Maximum Sequence Length:** 64 tokens
110
+ - **Output Dimensionality:** 768 dimensions
111
+ - **Similarity Function:** Cosine Similarity
112
+ <!-- - **Training Dataset:** Unknown -->
113
+ <!-- - **Language:** Unknown -->
114
+ <!-- - **License:** Unknown -->
115
+
116
+ ### Model Sources
117
+
118
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
119
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
120
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
121
+
122
+ ### Full Model Architecture
123
+
124
+ ```
125
+ SentenceTransformer(
126
+ (0): Transformer({'max_seq_length': 64, 'do_lower_case': False, 'architecture': 'DebertaV2Model'})
127
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
128
+ )
129
+ ```
130
+
131
+ ## Usage
132
+
133
+ ### Direct Usage (Sentence Transformers)
134
+
135
+ First install the Sentence Transformers library:
136
+
137
+ ```bash
138
+ pip install -U sentence-transformers
139
+ ```
140
+
141
+ Then you can load this model and run inference.
142
+ ```python
143
+ from sentence_transformers import SentenceTransformer
144
+
145
+ # Download from the 🤗 Hub
146
+ model = SentenceTransformer("sentence_transformers_model_id")
147
+ # Run inference
148
+ sentences = [
149
+ 'He was born in July 1973 in Petroupoli ( Athens ) .',
150
+ 'He was born in Athens in July 1973 ( Petroupoli ) .',
151
+ 'At the age of nine , Garcia appeared in his first concert and since then has appeared alone or with his aunt and his uncle in all parts of France .',
152
+ ]
153
+ embeddings = model.encode(sentences)
154
+ print(embeddings.shape)
155
+ # [3, 768]
156
+
157
+ # Get the similarity scores for the embeddings
158
+ similarities = model.similarity(embeddings, embeddings)
159
+ print(similarities)
160
+ # tensor([[1.0000, 0.9386, 0.5843],
161
+ # [0.9386, 1.0000, 0.5614],
162
+ # [0.5843, 0.5614, 1.0000]])
163
+ ```
164
+
165
+ <!--
166
+ ### Direct Usage (Transformers)
167
+
168
+ <details><summary>Click to see the direct usage in Transformers</summary>
169
+
170
+ </details>
171
+ -->
172
+
173
+ <!--
174
+ ### Downstream Usage (Sentence Transformers)
175
+
176
+ You can finetune this model on your own dataset.
177
+
178
+ <details><summary>Click to expand</summary>
179
+
180
+ </details>
181
+ -->
182
+
183
+ <!--
184
+ ### Out-of-Scope Use
185
+
186
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
187
+ -->
188
+
189
+ ## Evaluation
190
+
191
+ ### Metrics
192
+
193
+ #### Binary Classification
194
+
195
+ * Dataset: `paws-val-deberta`
196
+ * Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
197
+
198
+ | Metric | Value |
199
+ |:--------------------------|:-----------|
200
+ | cosine_accuracy | 0.9121 |
201
+ | cosine_accuracy_threshold | 0.8482 |
202
+ | cosine_f1 | 0.9024 |
203
+ | cosine_f1_threshold | 0.8433 |
204
+ | cosine_precision | 0.8861 |
205
+ | cosine_recall | 0.9194 |
206
+ | **cosine_ap** | **0.9503** |
207
+ | cosine_mcc | 0.823 |
208
+
209
+ <!--
210
+ ## Bias, Risks and Limitations
211
+
212
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
213
+ -->
214
+
215
+ <!--
216
+ ### Recommendations
217
+
218
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
219
+ -->
220
+
221
+ ## Training Details
222
+
223
+ ### Training Dataset
224
+
225
+ #### Unnamed Dataset
226
+
227
+ * Size: 44,114 training samples
228
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
229
+ * Approximate statistics based on the first 1000 samples:
230
+ | | sentence_0 | sentence_1 | label |
231
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
232
+ | type | string | string | float |
233
+ | details | <ul><li>min: 8 tokens</li><li>mean: 25.39 tokens</li><li>max: 47 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 25.47 tokens</li><li>max: 45 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.48</li><li>max: 1.0</li></ul> |
234
+ * Samples:
235
+ | sentence_0 | sentence_1 | label |
236
+ |:----------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
237
+ | <code>The Song of Ceylon is a 1934 British documentary film produced by Basil Wright and directed by John Grierson for the Ceylon Tea Propaganda Board .</code> | <code>The Song of Ceylon is a British documentary film directed by Basil Wright by John Grierson for the Ceylon Tea Propaganda Board in 1934 .</code> | <code>0.0</code> |
238
+ | <code>The two leased aircraft were returned to the BAE Systems lessor on 9 November 2006 .</code> | <code>Centavia 's two leased aircraft were returned to the lessor , BAE Systems , on November 9 , 2006 .</code> | <code>1.0</code> |
239
+ | <code>When , in 1818 , Ortona was assigned to Lanciano , Campli was joined to the diocese of Teramo .</code> | <code>When Ortona was assigned to Lanciano in 1818 , Campli was connected to the Diocese of Teramo .</code> | <code>1.0</code> |
240
+ * Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
241
+ ```json
242
+ {
243
+ "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
244
+ "margin": 0.5,
245
+ "size_average": true
246
+ }
247
+ ```
248
+
249
+ ### Training Hyperparameters
250
+ #### Non-Default Hyperparameters
251
+
252
+ - `per_device_train_batch_size`: 16
253
+ - `per_device_eval_batch_size`: 16
254
+ - `num_train_epochs`: 2
255
+ - `multi_dataset_batch_sampler`: round_robin
256
+
257
+ #### All Hyperparameters
258
+ <details><summary>Click to expand</summary>
259
+
260
+ - `overwrite_output_dir`: False
261
+ - `do_predict`: False
262
+ - `eval_strategy`: no
263
+ - `prediction_loss_only`: True
264
+ - `per_device_train_batch_size`: 16
265
+ - `per_device_eval_batch_size`: 16
266
+ - `per_gpu_train_batch_size`: None
267
+ - `per_gpu_eval_batch_size`: None
268
+ - `gradient_accumulation_steps`: 1
269
+ - `eval_accumulation_steps`: None
270
+ - `torch_empty_cache_steps`: None
271
+ - `learning_rate`: 5e-05
272
+ - `weight_decay`: 0.0
273
+ - `adam_beta1`: 0.9
274
+ - `adam_beta2`: 0.999
275
+ - `adam_epsilon`: 1e-08
276
+ - `max_grad_norm`: 1
277
+ - `num_train_epochs`: 2
278
+ - `max_steps`: -1
279
+ - `lr_scheduler_type`: linear
280
+ - `lr_scheduler_kwargs`: {}
281
+ - `warmup_ratio`: 0.0
282
+ - `warmup_steps`: 0
283
+ - `log_level`: passive
284
+ - `log_level_replica`: warning
285
+ - `log_on_each_node`: True
286
+ - `logging_nan_inf_filter`: True
287
+ - `save_safetensors`: True
288
+ - `save_on_each_node`: False
289
+ - `save_only_model`: False
290
+ - `restore_callback_states_from_checkpoint`: False
291
+ - `no_cuda`: False
292
+ - `use_cpu`: False
293
+ - `use_mps_device`: False
294
+ - `seed`: 42
295
+ - `data_seed`: None
296
+ - `jit_mode_eval`: False
297
+ - `bf16`: False
298
+ - `fp16`: False
299
+ - `fp16_opt_level`: O1
300
+ - `half_precision_backend`: auto
301
+ - `bf16_full_eval`: False
302
+ - `fp16_full_eval`: False
303
+ - `tf32`: None
304
+ - `local_rank`: 0
305
+ - `ddp_backend`: None
306
+ - `tpu_num_cores`: None
307
+ - `tpu_metrics_debug`: False
308
+ - `debug`: []
309
+ - `dataloader_drop_last`: False
310
+ - `dataloader_num_workers`: 0
311
+ - `dataloader_prefetch_factor`: None
312
+ - `past_index`: -1
313
+ - `disable_tqdm`: False
314
+ - `remove_unused_columns`: True
315
+ - `label_names`: None
316
+ - `load_best_model_at_end`: False
317
+ - `ignore_data_skip`: False
318
+ - `fsdp`: []
319
+ - `fsdp_min_num_params`: 0
320
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
321
+ - `fsdp_transformer_layer_cls_to_wrap`: None
322
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
323
+ - `parallelism_config`: None
324
+ - `deepspeed`: None
325
+ - `label_smoothing_factor`: 0.0
326
+ - `optim`: adamw_torch_fused
327
+ - `optim_args`: None
328
+ - `adafactor`: False
329
+ - `group_by_length`: False
330
+ - `length_column_name`: length
331
+ - `project`: huggingface
332
+ - `trackio_space_id`: trackio
333
+ - `ddp_find_unused_parameters`: None
334
+ - `ddp_bucket_cap_mb`: None
335
+ - `ddp_broadcast_buffers`: False
336
+ - `dataloader_pin_memory`: True
337
+ - `dataloader_persistent_workers`: False
338
+ - `skip_memory_metrics`: True
339
+ - `use_legacy_prediction_loop`: False
340
+ - `push_to_hub`: False
341
+ - `resume_from_checkpoint`: None
342
+ - `hub_model_id`: None
343
+ - `hub_strategy`: every_save
344
+ - `hub_private_repo`: None
345
+ - `hub_always_push`: False
346
+ - `hub_revision`: None
347
+ - `gradient_checkpointing`: False
348
+ - `gradient_checkpointing_kwargs`: None
349
+ - `include_inputs_for_metrics`: False
350
+ - `include_for_metrics`: []
351
+ - `eval_do_concat_batches`: True
352
+ - `fp16_backend`: auto
353
+ - `push_to_hub_model_id`: None
354
+ - `push_to_hub_organization`: None
355
+ - `mp_parameters`:
356
+ - `auto_find_batch_size`: False
357
+ - `full_determinism`: False
358
+ - `torchdynamo`: None
359
+ - `ray_scope`: last
360
+ - `ddp_timeout`: 1800
361
+ - `torch_compile`: False
362
+ - `torch_compile_backend`: None
363
+ - `torch_compile_mode`: None
364
+ - `include_tokens_per_second`: False
365
+ - `include_num_input_tokens_seen`: no
366
+ - `neftune_noise_alpha`: None
367
+ - `optim_target_modules`: None
368
+ - `batch_eval_metrics`: False
369
+ - `eval_on_start`: False
370
+ - `use_liger_kernel`: False
371
+ - `liger_kernel_config`: None
372
+ - `eval_use_gather_object`: False
373
+ - `average_tokens_across_devices`: True
374
+ - `prompts`: None
375
+ - `batch_sampler`: batch_sampler
376
+ - `multi_dataset_batch_sampler`: round_robin
377
+ - `router_mapping`: {}
378
+ - `learning_rate_mapping`: {}
379
+
380
+ </details>
381
+
382
+ ### Training Logs
383
+ | Epoch | Step | Training Loss | paws-val-deberta_cosine_ap |
384
+ |:------:|:----:|:-------------:|:--------------------------:|
385
+ | 0.1813 | 500 | 0.0314 | - |
386
+ | 0.3626 | 1000 | 0.023 | - |
387
+ | 0.5439 | 1500 | 0.0188 | - |
388
+ | 0.7252 | 2000 | 0.0161 | - |
389
+ | 0.9065 | 2500 | 0.0148 | - |
390
+ | 1.0 | 2758 | - | 0.9361 |
391
+ | 1.0877 | 3000 | 0.0121 | - |
392
+ | 1.2690 | 3500 | 0.0107 | - |
393
+ | 1.4503 | 4000 | 0.01 | - |
394
+ | 1.6316 | 4500 | 0.0098 | - |
395
+ | 1.8129 | 5000 | 0.0094 | - |
396
+ | 1.9942 | 5500 | 0.0091 | - |
397
+ | 2.0 | 5516 | - | 0.9503 |
398
+
399
+
400
+ ### Framework Versions
401
+ - Python: 3.12.12
402
+ - Sentence Transformers: 5.2.0
403
+ - Transformers: 4.57.3
404
+ - PyTorch: 2.9.0+cu126
405
+ - Accelerate: 1.12.0
406
+ - Datasets: 4.0.0
407
+ - Tokenizers: 0.22.1
408
+
409
+ ## Citation
410
+
411
+ ### BibTeX
412
+
413
+ #### Sentence Transformers
414
+ ```bibtex
415
+ @inproceedings{reimers-2019-sentence-bert,
416
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
417
+ author = "Reimers, Nils and Gurevych, Iryna",
418
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
419
+ month = "11",
420
+ year = "2019",
421
+ publisher = "Association for Computational Linguistics",
422
+ url = "https://arxiv.org/abs/1908.10084",
423
+ }
424
+ ```
425
+
426
+ #### ContrastiveLoss
427
+ ```bibtex
428
+ @inproceedings{hadsell2006dimensionality,
429
+ author={Hadsell, R. and Chopra, S. and LeCun, Y.},
430
+ booktitle={2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06)},
431
+ title={Dimensionality Reduction by Learning an Invariant Mapping},
432
+ year={2006},
433
+ volume={2},
434
+ number={},
435
+ pages={1735-1742},
436
+ doi={10.1109/CVPR.2006.100}
437
+ }
438
+ ```
439
+
440
+ <!--
441
+ ## Glossary
442
+
443
+ *Clearly define terms in order to be accessible across audiences.*
444
+ -->
445
+
446
+ <!--
447
+ ## Model Card Authors
448
+
449
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
450
+ -->
451
+
452
+ <!--
453
+ ## Model Card Contact
454
+
455
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
456
+ -->
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DebertaV2Model"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "dtype": "float32",
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 3072,
12
+ "layer_norm_eps": 1e-07,
13
+ "legacy": true,
14
+ "max_position_embeddings": 512,
15
+ "max_relative_positions": -1,
16
+ "model_type": "deberta-v2",
17
+ "norm_rel_ebd": "layer_norm",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 0,
21
+ "pooler_dropout": 0,
22
+ "pooler_hidden_act": "gelu",
23
+ "pooler_hidden_size": 768,
24
+ "pos_att_type": [
25
+ "p2c",
26
+ "c2p"
27
+ ],
28
+ "position_biased_input": false,
29
+ "position_buckets": 256,
30
+ "relative_attention": true,
31
+ "share_att_key": true,
32
+ "transformers_version": "4.57.3",
33
+ "type_vocab_size": 0,
34
+ "vocab_size": 128100
35
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.2.0",
5
+ "transformers": "4.57.3",
6
+ "pytorch": "2.9.0+cu126"
7
+ },
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
eval/binary_classification_evaluation_paws-val-deberta_results.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ epoch,steps,cosine_accuracy,cosine_accuracy_threshold,cosine_f1,cosine_precision,cosine_recall,cosine_f1_threshold,cosine_ap,cosine_mcc
2
+ 1.0,2758,0.8955465587044534,0.8826057453064917,0.8717605004468275,0.8937242327072835,0.936077357984464,0.787759670906764
3
+ 2.0,5516,0.9121457489878543,0.9024280575539567,0.8860927152317881,0.9193770041227668,0.9503471324249102,0.8230430822451054
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff895ac8655ae36f56552c06815df259d040830db7e40873ebb6dd1ad186cda0
3
+ size 735348840
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 64,
3
+ "do_lower_case": false
4
+ }
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
+ }
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,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 64,
52
+ "model_max_length": 64,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "sp_model_kwargs": {},
59
+ "split_by_punct": false,
60
+ "stride": 0,
61
+ "tokenizer_class": "DebertaV2Tokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]",
65
+ "vocab_type": "spm"
66
+ }