bobox commited on
Commit
554d487
·
verified ·
1 Parent(s): e48f1b5

n_layers_per_step = 1, last_layer_weight = 1.5 * model_layers,, prior_layers_weight= 1, kl_div_weight = 2, kl_temperature= 1,

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,637 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: sentence-transformers
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - generated_from_trainer
10
+ - dataset_size:67190
11
+ - loss:AdaptiveLayerLoss
12
+ - loss:MultipleNegativesRankingLoss
13
+ base_model: microsoft/deberta-v3-small
14
+ datasets:
15
+ - stanfordnlp/snli
16
+ metrics:
17
+ - cosine_accuracy
18
+ - cosine_accuracy_threshold
19
+ - cosine_f1
20
+ - cosine_f1_threshold
21
+ - cosine_precision
22
+ - cosine_recall
23
+ - cosine_ap
24
+ - dot_accuracy
25
+ - dot_accuracy_threshold
26
+ - dot_f1
27
+ - dot_f1_threshold
28
+ - dot_precision
29
+ - dot_recall
30
+ - dot_ap
31
+ - manhattan_accuracy
32
+ - manhattan_accuracy_threshold
33
+ - manhattan_f1
34
+ - manhattan_f1_threshold
35
+ - manhattan_precision
36
+ - manhattan_recall
37
+ - manhattan_ap
38
+ - euclidean_accuracy
39
+ - euclidean_accuracy_threshold
40
+ - euclidean_f1
41
+ - euclidean_f1_threshold
42
+ - euclidean_precision
43
+ - euclidean_recall
44
+ - euclidean_ap
45
+ - max_accuracy
46
+ - max_accuracy_threshold
47
+ - max_f1
48
+ - max_f1_threshold
49
+ - max_precision
50
+ - max_recall
51
+ - max_ap
52
+ widget:
53
+ - source_sentence: A man is walking past a large sign that says E.S.E. Electronics.
54
+ sentences:
55
+ - a child opens a present on his birthday
56
+ - The man works at E.S.E Electronics.
57
+ - The soccer team in blue plays soccer.
58
+ - source_sentence: This child is on the library steps.
59
+ sentences:
60
+ - A mother dog checking up on her baby puppy.
61
+ - A guy bites into a freshly opened marshmallow chick
62
+ - The child is on the steps inside the library.
63
+ - source_sentence: Two men are standing in a boat.
64
+ sentences:
65
+ - People are watching the flowers blossom
66
+ - The couple is married.
67
+ - A few men are fishing on a boat.
68
+ - source_sentence: Four men playing drums in very orange lighting while one of them
69
+ is also drinking something out of a bottle.
70
+ sentences:
71
+ - four men play drums
72
+ - The man puts something on the other mans head.
73
+ - The dogs are in the backyard.
74
+ - source_sentence: First Lady Laura Bush at podium, in front of seated audience, at
75
+ the White House Conference on Global Literacy.
76
+ sentences:
77
+ - Some people are exercising outside.
78
+ - The former First Lady is at the podium for a conference.
79
+ - This person is going to the waterfall
80
+ pipeline_tag: sentence-similarity
81
+ model-index:
82
+ - name: SentenceTransformer based on microsoft/deberta-v3-small
83
+ results:
84
+ - task:
85
+ type: binary-classification
86
+ name: Binary Classification
87
+ dataset:
88
+ name: Unknown
89
+ type: unknown
90
+ metrics:
91
+ - type: cosine_accuracy
92
+ value: 0.6605795351645035
93
+ name: Cosine Accuracy
94
+ - type: cosine_accuracy_threshold
95
+ value: 0.688193678855896
96
+ name: Cosine Accuracy Threshold
97
+ - type: cosine_f1
98
+ value: 0.7076101468624832
99
+ name: Cosine F1
100
+ - type: cosine_f1_threshold
101
+ value: 0.5949093103408813
102
+ name: Cosine F1 Threshold
103
+ - type: cosine_precision
104
+ value: 0.6053997923156802
105
+ name: Cosine Precision
106
+ - type: cosine_recall
107
+ value: 0.8513434579439252
108
+ name: Cosine Recall
109
+ - type: cosine_ap
110
+ value: 0.7024412828441404
111
+ name: Cosine Ap
112
+ - type: dot_accuracy
113
+ value: 0.6320555387865983
114
+ name: Dot Accuracy
115
+ - type: dot_accuracy_threshold
116
+ value: 152.9224853515625
117
+ name: Dot Accuracy Threshold
118
+ - type: dot_f1
119
+ value: 0.6979234972677596
120
+ name: Dot F1
121
+ - type: dot_f1_threshold
122
+ value: 110.95356750488281
123
+ name: Dot F1 Threshold
124
+ - type: dot_precision
125
+ value: 0.5576318546978694
126
+ name: Dot Precision
127
+ - type: dot_recall
128
+ value: 0.9325350467289719
129
+ name: Dot Recall
130
+ - type: dot_ap
131
+ value: 0.6470829330129519
132
+ name: Dot Ap
133
+ - type: manhattan_accuracy
134
+ value: 0.661334138243284
135
+ name: Manhattan Accuracy
136
+ - type: manhattan_accuracy_threshold
137
+ value: 235.78744506835938
138
+ name: Manhattan Accuracy Threshold
139
+ - type: manhattan_f1
140
+ value: 0.7093479035514908
141
+ name: Manhattan F1
142
+ - type: manhattan_f1_threshold
143
+ value: 285.1435852050781
144
+ name: Manhattan F1 Threshold
145
+ - type: manhattan_precision
146
+ value: 0.5977977977977978
147
+ name: Manhattan Precision
148
+ - type: manhattan_recall
149
+ value: 0.8720794392523364
150
+ name: Manhattan Recall
151
+ - type: manhattan_ap
152
+ value: 0.7110821827765943
153
+ name: Manhattan Ap
154
+ - type: euclidean_accuracy
155
+ value: 0.6605795351645035
156
+ name: Euclidean Accuracy
157
+ - type: euclidean_accuracy_threshold
158
+ value: 12.528359413146973
159
+ name: Euclidean Accuracy Threshold
160
+ - type: euclidean_f1
161
+ value: 0.7051541483156768
162
+ name: Euclidean F1
163
+ - type: euclidean_f1_threshold
164
+ value: 13.97222900390625
165
+ name: Euclidean F1 Threshold
166
+ - type: euclidean_precision
167
+ value: 0.5951376331123167
168
+ name: Euclidean Precision
169
+ - type: euclidean_recall
170
+ value: 0.865070093457944
171
+ name: Euclidean Recall
172
+ - type: euclidean_ap
173
+ value: 0.7071775256273181
174
+ name: Euclidean Ap
175
+ - type: max_accuracy
176
+ value: 0.661334138243284
177
+ name: Max Accuracy
178
+ - type: max_accuracy_threshold
179
+ value: 235.78744506835938
180
+ name: Max Accuracy Threshold
181
+ - type: max_f1
182
+ value: 0.7093479035514908
183
+ name: Max F1
184
+ - type: max_f1_threshold
185
+ value: 285.1435852050781
186
+ name: Max F1 Threshold
187
+ - type: max_precision
188
+ value: 0.6053997923156802
189
+ name: Max Precision
190
+ - type: max_recall
191
+ value: 0.9325350467289719
192
+ name: Max Recall
193
+ - type: max_ap
194
+ value: 0.7110821827765943
195
+ name: Max Ap
196
+ ---
197
+
198
+ # SentenceTransformer based on microsoft/deberta-v3-small
199
+
200
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small) on the [stanfordnlp/snli](https://huggingface.co/datasets/stanfordnlp/snli) dataset. 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.
201
+
202
+ ## Model Details
203
+
204
+ ### Model Description
205
+ - **Model Type:** Sentence Transformer
206
+ - **Base model:** [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small) <!-- at revision a36c739020e01763fe789b4b85e2df55d6180012 -->
207
+ - **Maximum Sequence Length:** 512 tokens
208
+ - **Output Dimensionality:** 768 tokens
209
+ - **Similarity Function:** Cosine Similarity
210
+ - **Training Dataset:**
211
+ - [stanfordnlp/snli](https://huggingface.co/datasets/stanfordnlp/snli)
212
+ - **Language:** en
213
+ <!-- - **License:** Unknown -->
214
+
215
+ ### Model Sources
216
+
217
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
218
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
219
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
220
+
221
+ ### Full Model Architecture
222
+
223
+ ```
224
+ SentenceTransformer(
225
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: DebertaV2Model
226
+ (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})
227
+ )
228
+ ```
229
+
230
+ ## Usage
231
+
232
+ ### Direct Usage (Sentence Transformers)
233
+
234
+ First install the Sentence Transformers library:
235
+
236
+ ```bash
237
+ pip install -U sentence-transformers
238
+ ```
239
+
240
+ Then you can load this model and run inference.
241
+ ```python
242
+ from sentence_transformers import SentenceTransformer
243
+
244
+ # Download from the 🤗 Hub
245
+ model = SentenceTransformer("bobox/DeBERTaV3-small-ST-AdaptiveLayer-Norm-ep2")
246
+ # Run inference
247
+ sentences = [
248
+ 'First Lady Laura Bush at podium, in front of seated audience, at the White House Conference on Global Literacy.',
249
+ 'The former First Lady is at the podium for a conference.',
250
+ 'This person is going to the waterfall',
251
+ ]
252
+ embeddings = model.encode(sentences)
253
+ print(embeddings.shape)
254
+ # [3, 768]
255
+
256
+ # Get the similarity scores for the embeddings
257
+ similarities = model.similarity(embeddings, embeddings)
258
+ print(similarities.shape)
259
+ # [3, 3]
260
+ ```
261
+
262
+ <!--
263
+ ### Direct Usage (Transformers)
264
+
265
+ <details><summary>Click to see the direct usage in Transformers</summary>
266
+
267
+ </details>
268
+ -->
269
+
270
+ <!--
271
+ ### Downstream Usage (Sentence Transformers)
272
+
273
+ You can finetune this model on your own dataset.
274
+
275
+ <details><summary>Click to expand</summary>
276
+
277
+ </details>
278
+ -->
279
+
280
+ <!--
281
+ ### Out-of-Scope Use
282
+
283
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
284
+ -->
285
+
286
+ ## Evaluation
287
+
288
+ ### Metrics
289
+
290
+ #### Binary Classification
291
+
292
+ * Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
293
+
294
+ | Metric | Value |
295
+ |:-----------------------------|:-----------|
296
+ | cosine_accuracy | 0.6606 |
297
+ | cosine_accuracy_threshold | 0.6882 |
298
+ | cosine_f1 | 0.7076 |
299
+ | cosine_f1_threshold | 0.5949 |
300
+ | cosine_precision | 0.6054 |
301
+ | cosine_recall | 0.8513 |
302
+ | cosine_ap | 0.7024 |
303
+ | dot_accuracy | 0.6321 |
304
+ | dot_accuracy_threshold | 152.9225 |
305
+ | dot_f1 | 0.6979 |
306
+ | dot_f1_threshold | 110.9536 |
307
+ | dot_precision | 0.5576 |
308
+ | dot_recall | 0.9325 |
309
+ | dot_ap | 0.6471 |
310
+ | manhattan_accuracy | 0.6613 |
311
+ | manhattan_accuracy_threshold | 235.7874 |
312
+ | manhattan_f1 | 0.7093 |
313
+ | manhattan_f1_threshold | 285.1436 |
314
+ | manhattan_precision | 0.5978 |
315
+ | manhattan_recall | 0.8721 |
316
+ | manhattan_ap | 0.7111 |
317
+ | euclidean_accuracy | 0.6606 |
318
+ | euclidean_accuracy_threshold | 12.5284 |
319
+ | euclidean_f1 | 0.7052 |
320
+ | euclidean_f1_threshold | 13.9722 |
321
+ | euclidean_precision | 0.5951 |
322
+ | euclidean_recall | 0.8651 |
323
+ | euclidean_ap | 0.7072 |
324
+ | max_accuracy | 0.6613 |
325
+ | max_accuracy_threshold | 235.7874 |
326
+ | max_f1 | 0.7093 |
327
+ | max_f1_threshold | 285.1436 |
328
+ | max_precision | 0.6054 |
329
+ | max_recall | 0.9325 |
330
+ | **max_ap** | **0.7111** |
331
+
332
+ <!--
333
+ ## Bias, Risks and Limitations
334
+
335
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
336
+ -->
337
+
338
+ <!--
339
+ ### Recommendations
340
+
341
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
342
+ -->
343
+
344
+ ## Training Details
345
+
346
+ ### Training Dataset
347
+
348
+ #### stanfordnlp/snli
349
+
350
+ * Dataset: [stanfordnlp/snli](https://huggingface.co/datasets/stanfordnlp/snli) at [cdb5c3d](https://huggingface.co/datasets/stanfordnlp/snli/tree/cdb5c3d5eed6ead6e5a341c8e56e669bb666725b)
351
+ * Size: 67,190 training samples
352
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>label</code>
353
+ * Approximate statistics based on the first 1000 samples:
354
+ | | sentence1 | sentence2 | label |
355
+ |:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:-----------------------------|
356
+ | type | string | string | int |
357
+ | details | <ul><li>min: 4 tokens</li><li>mean: 21.19 tokens</li><li>max: 133 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 11.77 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>0: 100.00%</li></ul> |
358
+ * Samples:
359
+ | sentence1 | sentence2 | label |
360
+ |:---------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:---------------|
361
+ | <code>Without a placebo group, we still won't know if any of the treatments are better than nothing and therefore worth giving.</code> | <code>It is necessary to use a controlled method to ensure the treatments are worthwhile.</code> | <code>0</code> |
362
+ | <code>It was conducted in silence.</code> | <code>It was done silently.</code> | <code>0</code> |
363
+ | <code>oh Lewisville any decent food in your cafeteria up there</code> | <code>Is there any decent food in your cafeteria up there in Lewisville?</code> | <code>0</code> |
364
+ * Loss: [<code>AdaptiveLayerLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#adaptivelayerloss) with these parameters:
365
+ ```json
366
+ {
367
+ "loss": "MultipleNegativesRankingLoss",
368
+ "n_layers_per_step": 1,
369
+ "last_layer_weight": 1.5,
370
+ "prior_layers_weight": 1,
371
+ "kl_div_weight": 2,
372
+ "kl_temperature": 1
373
+ }
374
+ ```
375
+
376
+ ### Evaluation Dataset
377
+
378
+ #### stanfordnlp/snli
379
+
380
+ * Dataset: [stanfordnlp/snli](https://huggingface.co/datasets/stanfordnlp/snli) at [cdb5c3d](https://huggingface.co/datasets/stanfordnlp/snli/tree/cdb5c3d5eed6ead6e5a341c8e56e669bb666725b)
381
+ * Size: 6,626 evaluation samples
382
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
383
+ * Approximate statistics based on the first 1000 samples:
384
+ | | premise | hypothesis | label |
385
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:------------------------------------------------|
386
+ | type | string | string | int |
387
+ | details | <ul><li>min: 6 tokens</li><li>mean: 17.28 tokens</li><li>max: 59 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 10.53 tokens</li><li>max: 32 tokens</li></ul> | <ul><li>0: ~48.70%</li><li>1: ~51.30%</li></ul> |
388
+ * Samples:
389
+ | premise | hypothesis | label |
390
+ |:--------------------------------------------------------------------------------------------------------|:---------------------------------------------------|:---------------|
391
+ | <code>This church choir sings to the masses as they sing joyous songs from the book at a church.</code> | <code>The church has cracks in the ceiling.</code> | <code>0</code> |
392
+ | <code>This church choir sings to the masses as they sing joyous songs from the book at a church.</code> | <code>The church is filled with song.</code> | <code>1</code> |
393
+ | <code>A woman with a green headscarf, blue shirt and a very big grin.</code> | <code>The woman is young.</code> | <code>0</code> |
394
+ * Loss: [<code>AdaptiveLayerLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#adaptivelayerloss) with these parameters:
395
+ ```json
396
+ {
397
+ "loss": "MultipleNegativesRankingLoss",
398
+ "n_layers_per_step": 1,
399
+ "last_layer_weight": 1.5,
400
+ "prior_layers_weight": 1,
401
+ "kl_div_weight": 2,
402
+ "kl_temperature": 1
403
+ }
404
+ ```
405
+
406
+ ### Training Hyperparameters
407
+ #### Non-Default Hyperparameters
408
+
409
+ - `eval_strategy`: steps
410
+ - `per_device_train_batch_size`: 45
411
+ - `per_device_eval_batch_size`: 22
412
+ - `learning_rate`: 3e-06
413
+ - `weight_decay`: 1e-09
414
+ - `num_train_epochs`: 2
415
+ - `lr_scheduler_type`: cosine
416
+ - `warmup_ratio`: 0.5
417
+ - `save_safetensors`: False
418
+ - `fp16`: True
419
+ - `push_to_hub`: True
420
+ - `hub_model_id`: bobox/DeBERTaV3-small-ST-AdaptiveLayer-Norm-ep2-checkpoints
421
+ - `hub_strategy`: checkpoint
422
+ - `batch_sampler`: no_duplicates
423
+
424
+ #### All Hyperparameters
425
+ <details><summary>Click to expand</summary>
426
+
427
+ - `overwrite_output_dir`: False
428
+ - `do_predict`: False
429
+ - `eval_strategy`: steps
430
+ - `prediction_loss_only`: True
431
+ - `per_device_train_batch_size`: 45
432
+ - `per_device_eval_batch_size`: 22
433
+ - `per_gpu_train_batch_size`: None
434
+ - `per_gpu_eval_batch_size`: None
435
+ - `gradient_accumulation_steps`: 1
436
+ - `eval_accumulation_steps`: None
437
+ - `learning_rate`: 3e-06
438
+ - `weight_decay`: 1e-09
439
+ - `adam_beta1`: 0.9
440
+ - `adam_beta2`: 0.999
441
+ - `adam_epsilon`: 1e-08
442
+ - `max_grad_norm`: 1.0
443
+ - `num_train_epochs`: 2
444
+ - `max_steps`: -1
445
+ - `lr_scheduler_type`: cosine
446
+ - `lr_scheduler_kwargs`: {}
447
+ - `warmup_ratio`: 0.5
448
+ - `warmup_steps`: 0
449
+ - `log_level`: passive
450
+ - `log_level_replica`: warning
451
+ - `log_on_each_node`: True
452
+ - `logging_nan_inf_filter`: True
453
+ - `save_safetensors`: False
454
+ - `save_on_each_node`: False
455
+ - `save_only_model`: False
456
+ - `restore_callback_states_from_checkpoint`: False
457
+ - `no_cuda`: False
458
+ - `use_cpu`: False
459
+ - `use_mps_device`: False
460
+ - `seed`: 42
461
+ - `data_seed`: None
462
+ - `jit_mode_eval`: False
463
+ - `use_ipex`: False
464
+ - `bf16`: False
465
+ - `fp16`: True
466
+ - `fp16_opt_level`: O1
467
+ - `half_precision_backend`: auto
468
+ - `bf16_full_eval`: False
469
+ - `fp16_full_eval`: False
470
+ - `tf32`: None
471
+ - `local_rank`: 0
472
+ - `ddp_backend`: None
473
+ - `tpu_num_cores`: None
474
+ - `tpu_metrics_debug`: False
475
+ - `debug`: []
476
+ - `dataloader_drop_last`: False
477
+ - `dataloader_num_workers`: 0
478
+ - `dataloader_prefetch_factor`: None
479
+ - `past_index`: -1
480
+ - `disable_tqdm`: False
481
+ - `remove_unused_columns`: True
482
+ - `label_names`: None
483
+ - `load_best_model_at_end`: False
484
+ - `ignore_data_skip`: False
485
+ - `fsdp`: []
486
+ - `fsdp_min_num_params`: 0
487
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
488
+ - `fsdp_transformer_layer_cls_to_wrap`: None
489
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
490
+ - `deepspeed`: None
491
+ - `label_smoothing_factor`: 0.0
492
+ - `optim`: adamw_torch
493
+ - `optim_args`: None
494
+ - `adafactor`: False
495
+ - `group_by_length`: False
496
+ - `length_column_name`: length
497
+ - `ddp_find_unused_parameters`: None
498
+ - `ddp_bucket_cap_mb`: None
499
+ - `ddp_broadcast_buffers`: False
500
+ - `dataloader_pin_memory`: True
501
+ - `dataloader_persistent_workers`: False
502
+ - `skip_memory_metrics`: True
503
+ - `use_legacy_prediction_loop`: False
504
+ - `push_to_hub`: True
505
+ - `resume_from_checkpoint`: None
506
+ - `hub_model_id`: bobox/DeBERTaV3-small-ST-AdaptiveLayer-Norm-ep2-checkpoints
507
+ - `hub_strategy`: checkpoint
508
+ - `hub_private_repo`: False
509
+ - `hub_always_push`: False
510
+ - `gradient_checkpointing`: False
511
+ - `gradient_checkpointing_kwargs`: None
512
+ - `include_inputs_for_metrics`: False
513
+ - `eval_do_concat_batches`: True
514
+ - `fp16_backend`: auto
515
+ - `push_to_hub_model_id`: None
516
+ - `push_to_hub_organization`: None
517
+ - `mp_parameters`:
518
+ - `auto_find_batch_size`: False
519
+ - `full_determinism`: False
520
+ - `torchdynamo`: None
521
+ - `ray_scope`: last
522
+ - `ddp_timeout`: 1800
523
+ - `torch_compile`: False
524
+ - `torch_compile_backend`: None
525
+ - `torch_compile_mode`: None
526
+ - `dispatch_batches`: None
527
+ - `split_batches`: None
528
+ - `include_tokens_per_second`: False
529
+ - `include_num_input_tokens_seen`: False
530
+ - `neftune_noise_alpha`: None
531
+ - `optim_target_modules`: None
532
+ - `batch_eval_metrics`: False
533
+ - `batch_sampler`: no_duplicates
534
+ - `multi_dataset_batch_sampler`: proportional
535
+
536
+ </details>
537
+
538
+ ### Training Logs
539
+ | Epoch | Step | Training Loss | loss | max_ap |
540
+ |:------:|:----:|:-------------:|:------:|:------:|
541
+ | 0.1004 | 150 | 6.8384 | - | - |
542
+ | 0.2001 | 299 | - | 6.3046 | 0.6155 |
543
+ | 0.2008 | 300 | 5.9024 | - | - |
544
+ | 0.3012 | 450 | 4.9822 | - | - |
545
+ | 0.4003 | 598 | - | 5.1572 | 0.6595 |
546
+ | 0.4016 | 600 | 4.3996 | - | - |
547
+ | 0.5020 | 750 | 3.6015 | - | - |
548
+ | 0.6004 | 897 | - | 4.0073 | 0.6904 |
549
+ | 0.6024 | 900 | 3.0732 | - | - |
550
+ | 0.7028 | 1050 | 2.7211 | - | - |
551
+ | 0.8005 | 1196 | - | 3.3433 | 0.7034 |
552
+ | 0.8032 | 1200 | 2.4196 | - | - |
553
+ | 0.9036 | 1350 | 2.2256 | - | - |
554
+ | 1.0007 | 1495 | - | 2.9401 | 0.7079 |
555
+ | 1.0040 | 1500 | 2.0015 | - | - |
556
+ | 1.1044 | 1650 | 1.9828 | - | - |
557
+ | 1.2008 | 1794 | - | 2.8339 | 0.7104 |
558
+ | 1.2048 | 1800 | 1.8243 | - | - |
559
+ | 1.3052 | 1950 | 1.7393 | - | - |
560
+ | 1.4009 | 2093 | - | 2.5906 | 0.7120 |
561
+ | 1.4056 | 2100 | 1.7702 | - | - |
562
+ | 1.5060 | 2250 | 1.615 | - | - |
563
+ | 1.6011 | 2392 | - | 2.5455 | 0.7111 |
564
+ | 1.6064 | 2400 | 1.6249 | - | - |
565
+ | 1.7068 | 2550 | 1.5804 | - | - |
566
+ | 1.8012 | 2691 | - | 2.4747 | 0.7111 |
567
+ | 1.8072 | 2700 | 1.5935 | - | - |
568
+ | 1.9076 | 2850 | 1.5088 | - | - |
569
+
570
+
571
+ ### Framework Versions
572
+ - Python: 3.10.13
573
+ - Sentence Transformers: 3.0.1
574
+ - Transformers: 4.41.2
575
+ - PyTorch: 2.1.2
576
+ - Accelerate: 0.30.1
577
+ - Datasets: 2.19.2
578
+ - Tokenizers: 0.19.1
579
+
580
+ ## Citation
581
+
582
+ ### BibTeX
583
+
584
+ #### Sentence Transformers
585
+ ```bibtex
586
+ @inproceedings{reimers-2019-sentence-bert,
587
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
588
+ author = "Reimers, Nils and Gurevych, Iryna",
589
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
590
+ month = "11",
591
+ year = "2019",
592
+ publisher = "Association for Computational Linguistics",
593
+ url = "https://arxiv.org/abs/1908.10084",
594
+ }
595
+ ```
596
+
597
+ #### AdaptiveLayerLoss
598
+ ```bibtex
599
+ @misc{li20242d,
600
+ title={2D Matryoshka Sentence Embeddings},
601
+ author={Xianming Li and Zongxi Li and Jing Li and Haoran Xie and Qing Li},
602
+ year={2024},
603
+ eprint={2402.14776},
604
+ archivePrefix={arXiv},
605
+ primaryClass={cs.CL}
606
+ }
607
+ ```
608
+
609
+ #### MultipleNegativesRankingLoss
610
+ ```bibtex
611
+ @misc{henderson2017efficient,
612
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
613
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
614
+ year={2017},
615
+ eprint={1705.00652},
616
+ archivePrefix={arXiv},
617
+ primaryClass={cs.CL}
618
+ }
619
+ ```
620
+
621
+ <!--
622
+ ## Glossary
623
+
624
+ *Clearly define terms in order to be accessible across audiences.*
625
+ -->
626
+
627
+ <!--
628
+ ## Model Card Authors
629
+
630
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
631
+ -->
632
+
633
+ <!--
634
+ ## Model Card Contact
635
+
636
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
637
+ -->
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/deberta-v3-small",
3
+ "architectures": [
4
+ "DebertaV2Model"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
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
+ "max_position_embeddings": 512,
14
+ "max_relative_positions": -1,
15
+ "model_type": "deberta-v2",
16
+ "norm_rel_ebd": "layer_norm",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "pooler_dropout": 0,
21
+ "pooler_hidden_act": "gelu",
22
+ "pooler_hidden_size": 768,
23
+ "pos_att_type": [
24
+ "p2c",
25
+ "c2p"
26
+ ],
27
+ "position_biased_input": false,
28
+ "position_buckets": 256,
29
+ "relative_attention": true,
30
+ "share_att_key": true,
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.41.2",
33
+ "type_vocab_size": 0,
34
+ "vocab_size": 128100
35
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.1.2"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
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
+ ]
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b93c9d7c3dd14655bcd8b8f7526e0c331aeb9ead053243ae631a7970785cfee
3
+ size 565251810
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
46
+ "cls_token": "[CLS]",
47
+ "do_lower_case": false,
48
+ "eos_token": "[SEP]",
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "sp_model_kwargs": {},
54
+ "split_by_punct": false,
55
+ "tokenizer_class": "DebertaV2Tokenizer",
56
+ "unk_token": "[UNK]",
57
+ "vocab_type": "spm"
58
+ }