youssefkhalil320 commited on
Commit
c9f0f5f
·
verified ·
1 Parent(s): 3654495

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,548 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/all-mpnet-base-v2
3
+ language:
4
+ - en
5
+ library_name: sentence-transformers
6
+ license: apache-2.0
7
+ pipeline_tag: sentence-similarity
8
+ tags:
9
+ - sentence-transformers
10
+ - sentence-similarity
11
+ - feature-extraction
12
+ - generated_from_trainer
13
+ - dataset_size:1363306
14
+ - loss:CoSENTLoss
15
+ widget:
16
+ - source_sentence: labneh
17
+ sentences:
18
+ - iftar
19
+ - bathing suit
20
+ - coffee cup
21
+ - source_sentence: Velvet flock Veil
22
+ sentences:
23
+ - mermaid purse
24
+ - veil
25
+ - mobile bag
26
+ - source_sentence: Red lipstick
27
+ sentences:
28
+ - chemise dress
29
+ - tote
30
+ - rouge
31
+ - source_sentence: Unisex Travel bag
32
+ sentences:
33
+ - spf
34
+ - basic vega ring
35
+ - travel backpack
36
+ - source_sentence: jeremy hush book
37
+ sentences:
38
+ - chinese jumper
39
+ - perfume
40
+ - home automation device
41
+ ---
42
+
43
+ # all-mpnet-base-v2-pair_score
44
+
45
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2). 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.
46
+
47
+ ## Model Details
48
+
49
+ ### Model Description
50
+ - **Model Type:** Sentence Transformer
51
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision 9a3225965996d404b775526de6dbfe85d3368642 -->
52
+ - **Maximum Sequence Length:** 384 tokens
53
+ - **Output Dimensionality:** 768 tokens
54
+ - **Similarity Function:** Cosine Similarity
55
+ <!-- - **Training Dataset:** Unknown -->
56
+ - **Language:** en
57
+ - **License:** apache-2.0
58
+
59
+ ### Model Sources
60
+
61
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
62
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
63
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
64
+
65
+ ### Full Model Architecture
66
+
67
+ ```
68
+ SentenceTransformer(
69
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel
70
+ (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})
71
+ (2): Normalize()
72
+ )
73
+ ```
74
+
75
+ ## Usage
76
+
77
+ ### Direct Usage (Sentence Transformers)
78
+
79
+ First install the Sentence Transformers library:
80
+
81
+ ```bash
82
+ pip install -U sentence-transformers
83
+ ```
84
+
85
+ Then you can load this model and run inference.
86
+ ```python
87
+ from sentence_transformers import SentenceTransformer
88
+
89
+ # Download from the 🤗 Hub
90
+ model = SentenceTransformer("sentence_transformers_model_id")
91
+ # Run inference
92
+ sentences = [
93
+ 'jeremy hush book',
94
+ 'chinese jumper',
95
+ 'perfume',
96
+ ]
97
+ embeddings = model.encode(sentences)
98
+ print(embeddings.shape)
99
+ # [3, 768]
100
+
101
+ # Get the similarity scores for the embeddings
102
+ similarities = model.similarity(embeddings, embeddings)
103
+ print(similarities.shape)
104
+ # [3, 3]
105
+ ```
106
+
107
+ <!--
108
+ ### Direct Usage (Transformers)
109
+
110
+ <details><summary>Click to see the direct usage in Transformers</summary>
111
+
112
+ </details>
113
+ -->
114
+
115
+ <!--
116
+ ### Downstream Usage (Sentence Transformers)
117
+
118
+ You can finetune this model on your own dataset.
119
+
120
+ <details><summary>Click to expand</summary>
121
+
122
+ </details>
123
+ -->
124
+
125
+ <!--
126
+ ### Out-of-Scope Use
127
+
128
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
129
+ -->
130
+
131
+ <!--
132
+ ## Bias, Risks and Limitations
133
+
134
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
135
+ -->
136
+
137
+ <!--
138
+ ### Recommendations
139
+
140
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
141
+ -->
142
+
143
+ ## Training Details
144
+
145
+ ### Training Hyperparameters
146
+ #### Non-Default Hyperparameters
147
+
148
+ - `eval_strategy`: steps
149
+ - `per_device_train_batch_size`: 128
150
+ - `per_device_eval_batch_size`: 128
151
+ - `learning_rate`: 2e-05
152
+ - `num_train_epochs`: 2
153
+ - `warmup_ratio`: 0.1
154
+ - `fp16`: True
155
+
156
+ #### All Hyperparameters
157
+ <details><summary>Click to expand</summary>
158
+
159
+ - `overwrite_output_dir`: False
160
+ - `do_predict`: False
161
+ - `eval_strategy`: steps
162
+ - `prediction_loss_only`: True
163
+ - `per_device_train_batch_size`: 128
164
+ - `per_device_eval_batch_size`: 128
165
+ - `per_gpu_train_batch_size`: None
166
+ - `per_gpu_eval_batch_size`: None
167
+ - `gradient_accumulation_steps`: 1
168
+ - `eval_accumulation_steps`: None
169
+ - `torch_empty_cache_steps`: None
170
+ - `learning_rate`: 2e-05
171
+ - `weight_decay`: 0.0
172
+ - `adam_beta1`: 0.9
173
+ - `adam_beta2`: 0.999
174
+ - `adam_epsilon`: 1e-08
175
+ - `max_grad_norm`: 1.0
176
+ - `num_train_epochs`: 2
177
+ - `max_steps`: -1
178
+ - `lr_scheduler_type`: linear
179
+ - `lr_scheduler_kwargs`: {}
180
+ - `warmup_ratio`: 0.1
181
+ - `warmup_steps`: 0
182
+ - `log_level`: passive
183
+ - `log_level_replica`: warning
184
+ - `log_on_each_node`: True
185
+ - `logging_nan_inf_filter`: True
186
+ - `save_safetensors`: True
187
+ - `save_on_each_node`: False
188
+ - `save_only_model`: False
189
+ - `restore_callback_states_from_checkpoint`: False
190
+ - `no_cuda`: False
191
+ - `use_cpu`: False
192
+ - `use_mps_device`: False
193
+ - `seed`: 42
194
+ - `data_seed`: None
195
+ - `jit_mode_eval`: False
196
+ - `use_ipex`: False
197
+ - `bf16`: False
198
+ - `fp16`: True
199
+ - `fp16_opt_level`: O1
200
+ - `half_precision_backend`: auto
201
+ - `bf16_full_eval`: False
202
+ - `fp16_full_eval`: False
203
+ - `tf32`: None
204
+ - `local_rank`: 0
205
+ - `ddp_backend`: None
206
+ - `tpu_num_cores`: None
207
+ - `tpu_metrics_debug`: False
208
+ - `debug`: []
209
+ - `dataloader_drop_last`: False
210
+ - `dataloader_num_workers`: 0
211
+ - `dataloader_prefetch_factor`: None
212
+ - `past_index`: -1
213
+ - `disable_tqdm`: False
214
+ - `remove_unused_columns`: True
215
+ - `label_names`: None
216
+ - `load_best_model_at_end`: False
217
+ - `ignore_data_skip`: False
218
+ - `fsdp`: []
219
+ - `fsdp_min_num_params`: 0
220
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
221
+ - `fsdp_transformer_layer_cls_to_wrap`: None
222
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
223
+ - `deepspeed`: None
224
+ - `label_smoothing_factor`: 0.0
225
+ - `optim`: adamw_torch
226
+ - `optim_args`: None
227
+ - `adafactor`: False
228
+ - `group_by_length`: False
229
+ - `length_column_name`: length
230
+ - `ddp_find_unused_parameters`: None
231
+ - `ddp_bucket_cap_mb`: None
232
+ - `ddp_broadcast_buffers`: False
233
+ - `dataloader_pin_memory`: True
234
+ - `dataloader_persistent_workers`: False
235
+ - `skip_memory_metrics`: True
236
+ - `use_legacy_prediction_loop`: False
237
+ - `push_to_hub`: False
238
+ - `resume_from_checkpoint`: None
239
+ - `hub_model_id`: None
240
+ - `hub_strategy`: every_save
241
+ - `hub_private_repo`: False
242
+ - `hub_always_push`: False
243
+ - `gradient_checkpointing`: False
244
+ - `gradient_checkpointing_kwargs`: None
245
+ - `include_inputs_for_metrics`: False
246
+ - `eval_do_concat_batches`: True
247
+ - `fp16_backend`: auto
248
+ - `push_to_hub_model_id`: None
249
+ - `push_to_hub_organization`: None
250
+ - `mp_parameters`:
251
+ - `auto_find_batch_size`: False
252
+ - `full_determinism`: False
253
+ - `torchdynamo`: None
254
+ - `ray_scope`: last
255
+ - `ddp_timeout`: 1800
256
+ - `torch_compile`: False
257
+ - `torch_compile_backend`: None
258
+ - `torch_compile_mode`: None
259
+ - `dispatch_batches`: None
260
+ - `split_batches`: None
261
+ - `include_tokens_per_second`: False
262
+ - `include_num_input_tokens_seen`: False
263
+ - `neftune_noise_alpha`: None
264
+ - `optim_target_modules`: None
265
+ - `batch_eval_metrics`: False
266
+ - `eval_on_start`: False
267
+ - `use_liger_kernel`: False
268
+ - `eval_use_gather_object`: False
269
+ - `batch_sampler`: batch_sampler
270
+ - `multi_dataset_batch_sampler`: proportional
271
+
272
+ </details>
273
+
274
+ ### Training Logs
275
+ <details><summary>Click to expand</summary>
276
+
277
+ | Epoch | Step | Training Loss | loss |
278
+ |:------:|:-----:|:-------------:|:------:|
279
+ | 0.0094 | 100 | 16.0755 | - |
280
+ | 0.0188 | 200 | 13.0643 | - |
281
+ | 0.0282 | 300 | 9.3474 | - |
282
+ | 0.0376 | 400 | 8.2606 | - |
283
+ | 0.0469 | 500 | 8.084 | - |
284
+ | 0.0563 | 600 | 8.0581 | - |
285
+ | 0.0657 | 700 | 8.0175 | - |
286
+ | 0.0751 | 800 | 8.0285 | - |
287
+ | 0.0845 | 900 | 8.0024 | - |
288
+ | 0.0939 | 1000 | 8.0161 | - |
289
+ | 0.1033 | 1100 | 7.9941 | - |
290
+ | 0.1127 | 1200 | 8.0233 | - |
291
+ | 0.1221 | 1300 | 8.0141 | - |
292
+ | 0.1314 | 1400 | 7.9644 | - |
293
+ | 0.1408 | 1500 | 8.0311 | - |
294
+ | 0.1502 | 1600 | 8.0306 | - |
295
+ | 0.1596 | 1700 | 7.989 | - |
296
+ | 0.1690 | 1800 | 8.0034 | - |
297
+ | 0.1784 | 1900 | 8.0107 | - |
298
+ | 0.1878 | 2000 | 7.9737 | - |
299
+ | 0.1972 | 2100 | 7.9827 | - |
300
+ | 0.2066 | 2200 | 8.0389 | - |
301
+ | 0.2159 | 2300 | 7.973 | - |
302
+ | 0.2253 | 2400 | 7.9669 | - |
303
+ | 0.2347 | 2500 | 8.0296 | - |
304
+ | 0.2441 | 2600 | 7.9984 | - |
305
+ | 0.2535 | 2700 | 7.9772 | - |
306
+ | 0.2629 | 2800 | 7.9838 | - |
307
+ | 0.2723 | 2900 | 7.9816 | - |
308
+ | 0.2817 | 3000 | 8.0021 | - |
309
+ | 0.2911 | 3100 | 7.9715 | - |
310
+ | 0.3004 | 3200 | 7.9809 | - |
311
+ | 0.3098 | 3300 | 7.9849 | - |
312
+ | 0.3192 | 3400 | 7.9463 | - |
313
+ | 0.3286 | 3500 | 8.0067 | - |
314
+ | 0.3380 | 3600 | 7.9431 | - |
315
+ | 0.3474 | 3700 | 7.9877 | - |
316
+ | 0.3568 | 3800 | 7.9494 | - |
317
+ | 0.3662 | 3900 | 7.9466 | - |
318
+ | 0.3756 | 4000 | 7.9708 | - |
319
+ | 0.3849 | 4100 | 7.9525 | - |
320
+ | 0.3943 | 4200 | 7.9322 | - |
321
+ | 0.4037 | 4300 | 7.9415 | - |
322
+ | 0.4131 | 4400 | 7.9932 | - |
323
+ | 0.4225 | 4500 | 7.9481 | - |
324
+ | 0.4319 | 4600 | 7.976 | - |
325
+ | 0.4413 | 4700 | 7.971 | - |
326
+ | 0.4507 | 4800 | 7.9647 | - |
327
+ | 0.4601 | 4900 | 7.9217 | - |
328
+ | 0.4694 | 5000 | 7.9374 | 7.9518 |
329
+ | 0.4788 | 5100 | 7.9026 | - |
330
+ | 0.4882 | 5200 | 7.9304 | - |
331
+ | 0.4976 | 5300 | 7.9148 | - |
332
+ | 0.5070 | 5400 | 7.9538 | - |
333
+ | 0.5164 | 5500 | 8.0002 | - |
334
+ | 0.5258 | 5600 | 7.9571 | - |
335
+ | 0.5352 | 5700 | 7.932 | - |
336
+ | 0.5445 | 5800 | 7.9047 | - |
337
+ | 0.5539 | 5900 | 7.9353 | - |
338
+ | 0.5633 | 6000 | 7.9203 | - |
339
+ | 0.5727 | 6100 | 7.8967 | - |
340
+ | 0.5821 | 6200 | 7.9414 | - |
341
+ | 0.5915 | 6300 | 7.9631 | - |
342
+ | 0.6009 | 6400 | 7.9606 | - |
343
+ | 0.6103 | 6500 | 7.9377 | - |
344
+ | 0.6197 | 6600 | 7.9108 | - |
345
+ | 0.6290 | 6700 | 7.9225 | - |
346
+ | 0.6384 | 6800 | 7.9154 | - |
347
+ | 0.6478 | 6900 | 7.9191 | - |
348
+ | 0.6572 | 7000 | 7.8903 | - |
349
+ | 0.6666 | 7100 | 7.9213 | - |
350
+ | 0.6760 | 7200 | 7.9202 | - |
351
+ | 0.6854 | 7300 | 7.8998 | - |
352
+ | 0.6948 | 7400 | 7.9153 | - |
353
+ | 0.7042 | 7500 | 7.9037 | - |
354
+ | 0.7135 | 7600 | 7.9146 | - |
355
+ | 0.7229 | 7700 | 7.8972 | - |
356
+ | 0.7323 | 7800 | 7.9374 | - |
357
+ | 0.7417 | 7900 | 7.8647 | - |
358
+ | 0.7511 | 8000 | 7.8915 | - |
359
+ | 0.7605 | 8100 | 7.8846 | - |
360
+ | 0.7699 | 8200 | 7.8988 | - |
361
+ | 0.7793 | 8300 | 7.8702 | - |
362
+ | 0.7887 | 8400 | 7.923 | - |
363
+ | 0.7980 | 8500 | 7.891 | - |
364
+ | 0.8074 | 8600 | 7.8832 | - |
365
+ | 0.8168 | 8700 | 7.8726 | - |
366
+ | 0.8262 | 8800 | 7.8813 | - |
367
+ | 0.8356 | 8900 | 7.8986 | - |
368
+ | 0.8450 | 9000 | 7.8743 | - |
369
+ | 0.8544 | 9100 | 7.8791 | - |
370
+ | 0.8638 | 9200 | 7.8783 | - |
371
+ | 0.8732 | 9300 | 7.8528 | - |
372
+ | 0.8825 | 9400 | 7.8864 | - |
373
+ | 0.8919 | 9500 | 7.8989 | - |
374
+ | 0.9013 | 9600 | 7.8617 | - |
375
+ | 0.9107 | 9700 | 7.8371 | - |
376
+ | 0.9201 | 9800 | 7.8566 | - |
377
+ | 0.9295 | 9900 | 7.8776 | - |
378
+ | 0.9389 | 10000 | 7.8558 | 7.8492 |
379
+ | 0.9483 | 10100 | 7.848 | - |
380
+ | 0.9577 | 10200 | 7.8227 | - |
381
+ | 0.9670 | 10300 | 7.8311 | - |
382
+ | 0.9764 | 10400 | 7.8437 | - |
383
+ | 0.9858 | 10500 | 7.8454 | - |
384
+ | 0.9952 | 10600 | 7.8362 | - |
385
+ | 1.0046 | 10700 | 7.8681 | - |
386
+ | 1.0140 | 10800 | 7.8745 | - |
387
+ | 1.0234 | 10900 | 7.8339 | - |
388
+ | 1.0328 | 11000 | 7.8458 | - |
389
+ | 1.0422 | 11100 | 7.8493 | - |
390
+ | 1.0515 | 11200 | 7.8317 | - |
391
+ | 1.0609 | 11300 | 7.841 | - |
392
+ | 1.0703 | 11400 | 7.8292 | - |
393
+ | 1.0797 | 11500 | 7.8121 | - |
394
+ | 1.0891 | 11600 | 7.8165 | - |
395
+ | 1.0985 | 11700 | 7.8259 | - |
396
+ | 1.1079 | 11800 | 7.8303 | - |
397
+ | 1.1173 | 11900 | 7.809 | - |
398
+ | 1.1267 | 12000 | 7.818 | - |
399
+ | 1.1360 | 12100 | 7.8071 | - |
400
+ | 1.1454 | 12200 | 7.801 | - |
401
+ | 1.1548 | 12300 | 7.8123 | - |
402
+ | 1.1642 | 12400 | 7.8203 | - |
403
+ | 1.1736 | 12500 | 7.8609 | - |
404
+ | 1.1830 | 12600 | 7.7782 | - |
405
+ | 1.1924 | 12700 | 7.8092 | - |
406
+ | 1.2018 | 12800 | 7.815 | - |
407
+ | 1.2112 | 12900 | 7.8196 | - |
408
+ | 1.2205 | 13000 | 7.8206 | - |
409
+ | 1.2299 | 13100 | 7.8022 | - |
410
+ | 1.2393 | 13200 | 7.8043 | - |
411
+ | 1.2487 | 13300 | 7.7823 | - |
412
+ | 1.2581 | 13400 | 7.8061 | - |
413
+ | 1.2675 | 13500 | 7.8016 | - |
414
+ | 1.2769 | 13600 | 7.8076 | - |
415
+ | 1.2863 | 13700 | 7.7996 | - |
416
+ | 1.2957 | 13800 | 7.8035 | - |
417
+ | 1.3050 | 13900 | 7.8092 | - |
418
+ | 1.3144 | 14000 | 7.7902 | - |
419
+ | 1.3238 | 14100 | 7.8114 | - |
420
+ | 1.3332 | 14200 | 7.8112 | - |
421
+ | 1.3426 | 14300 | 7.8036 | - |
422
+ | 1.3520 | 14400 | 7.8178 | - |
423
+ | 1.3614 | 14500 | 7.8391 | - |
424
+ | 1.3708 | 14600 | 7.8151 | - |
425
+ | 1.3802 | 14700 | 7.7957 | - |
426
+ | 1.3895 | 14800 | 7.7833 | - |
427
+ | 1.3989 | 14900 | 7.8049 | - |
428
+ | 1.4083 | 15000 | 7.8163 | 7.8078 |
429
+ | 1.4177 | 15100 | 7.7864 | - |
430
+ | 1.4271 | 15200 | 7.8241 | - |
431
+ | 1.4365 | 15300 | 7.7694 | - |
432
+ | 1.4459 | 15400 | 7.7784 | - |
433
+ | 1.4553 | 15500 | 7.7628 | - |
434
+ | 1.4647 | 15600 | 7.8044 | - |
435
+ | 1.4740 | 15700 | 7.7871 | - |
436
+ | 1.4834 | 15800 | 7.809 | - |
437
+ | 1.4928 | 15900 | 7.7955 | - |
438
+ | 1.5022 | 16000 | 7.8056 | - |
439
+ | 1.5116 | 16100 | 7.774 | - |
440
+ | 1.5210 | 16200 | 7.7874 | - |
441
+ | 1.5304 | 16300 | 7.7918 | - |
442
+ | 1.5398 | 16400 | 7.7787 | - |
443
+ | 1.5492 | 16500 | 7.7881 | - |
444
+ | 1.5585 | 16600 | 7.7723 | - |
445
+ | 1.5679 | 16700 | 7.7809 | - |
446
+ | 1.5773 | 16800 | 7.8096 | - |
447
+ | 1.5867 | 16900 | 7.7559 | - |
448
+ | 1.5961 | 17000 | 7.8063 | - |
449
+ | 1.6055 | 17100 | 7.8137 | - |
450
+ | 1.6149 | 17200 | 7.761 | - |
451
+ | 1.6243 | 17300 | 7.7672 | - |
452
+ | 1.6336 | 17400 | 7.7939 | - |
453
+ | 1.6430 | 17500 | 7.8052 | - |
454
+ | 1.6524 | 17600 | 7.7519 | - |
455
+ | 1.6618 | 17700 | 7.7643 | - |
456
+ | 1.6712 | 17800 | 7.7823 | - |
457
+ | 1.6806 | 17900 | 7.7507 | - |
458
+ | 1.6900 | 18000 | 7.777 | - |
459
+ | 1.6994 | 18100 | 7.786 | - |
460
+ | 1.7088 | 18200 | 7.8097 | - |
461
+ | 1.7181 | 18300 | 7.7749 | - |
462
+ | 1.7275 | 18400 | 7.7626 | - |
463
+ | 1.7369 | 18500 | 7.7783 | - |
464
+ | 1.7463 | 18600 | 7.7552 | - |
465
+ | 1.7557 | 18700 | 7.7837 | - |
466
+ | 1.7651 | 18800 | 7.7583 | - |
467
+ | 1.7745 | 18900 | 7.7617 | - |
468
+ | 1.7839 | 19000 | 7.7649 | - |
469
+ | 1.7933 | 19100 | 7.7767 | - |
470
+ | 1.8026 | 19200 | 7.7565 | - |
471
+ | 1.8120 | 19300 | 7.7702 | - |
472
+ | 1.8214 | 19400 | 7.7552 | - |
473
+ | 1.8308 | 19500 | 7.7511 | - |
474
+ | 1.8402 | 19600 | 7.7818 | - |
475
+ | 1.8496 | 19700 | 7.7704 | - |
476
+ | 1.8590 | 19800 | 7.7824 | - |
477
+ | 1.8684 | 19900 | 7.751 | - |
478
+ | 1.8778 | 20000 | 7.7868 | 7.7942 |
479
+ | 1.8871 | 20100 | 7.7981 | - |
480
+ | 1.8965 | 20200 | 7.7673 | - |
481
+ | 1.9059 | 20300 | 7.7695 | - |
482
+ | 1.9153 | 20400 | 7.7587 | - |
483
+ | 1.9247 | 20500 | 7.7444 | - |
484
+ | 1.9341 | 20600 | 7.7736 | - |
485
+ | 1.9435 | 20700 | 7.7655 | - |
486
+ | 1.9529 | 20800 | 7.7686 | - |
487
+ | 1.9623 | 20900 | 7.7731 | - |
488
+ | 1.9716 | 21000 | 7.7527 | - |
489
+ | 1.9810 | 21100 | 7.7962 | - |
490
+ | 1.9904 | 21200 | 7.7676 | - |
491
+ | 1.9998 | 21300 | 7.7641 | - |
492
+
493
+ </details>
494
+
495
+ ### Framework Versions
496
+ - Python: 3.8.10
497
+ - Sentence Transformers: 3.1.1
498
+ - Transformers: 4.45.2
499
+ - PyTorch: 2.4.1+cu118
500
+ - Accelerate: 1.0.1
501
+ - Datasets: 3.0.1
502
+ - Tokenizers: 0.20.3
503
+
504
+ ## Citation
505
+
506
+ ### BibTeX
507
+
508
+ #### Sentence Transformers
509
+ ```bibtex
510
+ @inproceedings{reimers-2019-sentence-bert,
511
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
512
+ author = "Reimers, Nils and Gurevych, Iryna",
513
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
514
+ month = "11",
515
+ year = "2019",
516
+ publisher = "Association for Computational Linguistics",
517
+ url = "https://arxiv.org/abs/1908.10084",
518
+ }
519
+ ```
520
+
521
+ #### CoSENTLoss
522
+ ```bibtex
523
+ @online{kexuefm-8847,
524
+ title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
525
+ author={Su Jianlin},
526
+ year={2022},
527
+ month={Jan},
528
+ url={https://kexue.fm/archives/8847},
529
+ }
530
+ ```
531
+
532
+ <!--
533
+ ## Glossary
534
+
535
+ *Clearly define terms in order to be accessible across audiences.*
536
+ -->
537
+
538
+ <!--
539
+ ## Model Card Authors
540
+
541
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
542
+ -->
543
+
544
+ <!--
545
+ ## Model Card Contact
546
+
547
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
548
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/all-mpnet-base-v2",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.45.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.1.1",
4
+ "transformers": "4.45.2",
5
+ "pytorch": "2.4.1+cu118"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71c1b1a562a5396f4845339ff04bd5a69dd01be7a4e06fd28722a4d63aec4cea
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 384,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
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": "</s>",
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": false,
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,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
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
+ "104": {
36
+ "content": "[UNK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "30526": {
44
+ "content": "<mask>",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "bos_token": "<s>",
53
+ "clean_up_tokenization_spaces": false,
54
+ "cls_token": "<s>",
55
+ "do_lower_case": true,
56
+ "eos_token": "</s>",
57
+ "mask_token": "<mask>",
58
+ "max_length": 128,
59
+ "model_max_length": 384,
60
+ "pad_to_multiple_of": null,
61
+ "pad_token": "<pad>",
62
+ "pad_token_type_id": 0,
63
+ "padding_side": "right",
64
+ "sep_token": "</s>",
65
+ "stride": 0,
66
+ "strip_accents": null,
67
+ "tokenize_chinese_chars": true,
68
+ "tokenizer_class": "MPNetTokenizer",
69
+ "truncation_side": "right",
70
+ "truncation_strategy": "longest_first",
71
+ "unk_token": "[UNK]"
72
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff