youssefkhalil320 commited on
Commit
0c5c1b9
·
verified ·
1 Parent(s): 9bf80ee

Upload folder using huggingface_hub

Browse files
checkpoint-2500/1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
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
+ }
checkpoint-2500/README.md ADDED
@@ -0,0 +1,412 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/all-MiniLM-L6-v2
3
+ datasets:
4
+ - youssefkhalil320/pairs_three_scores_v5
5
+ language:
6
+ - en
7
+ library_name: sentence-transformers
8
+ license: apache-2.0
9
+ pipeline_tag: sentence-similarity
10
+ tags:
11
+ - sentence-transformers
12
+ - sentence-similarity
13
+ - feature-extraction
14
+ - generated_from_trainer
15
+ - dataset_size:80000003
16
+ - loss:CoSENTLoss
17
+ widget:
18
+ - source_sentence: durable pvc swim ring
19
+ sentences:
20
+ - flaky croissant
21
+ - urban shoes
22
+ - warm drinks mug
23
+ - source_sentence: iso mak retard capsules
24
+ sentences:
25
+ - savory baguette
26
+ - shea butter body cream
27
+ - softwheeled cruiser
28
+ - source_sentence: love sandra potty
29
+ sentences:
30
+ - utensil holder
31
+ - olive pants
32
+ - headwear
33
+ - source_sentence: dusky hair brush
34
+ sentences:
35
+ - back compartment laptop
36
+ - rubber feet platter
37
+ - honed blade knife
38
+ - source_sentence: nkd skn
39
+ sentences:
40
+ - fruit fragrances nail polish remover
41
+ - panini salmon
42
+ - hand drawing bag
43
+ ---
44
+
45
+ # all-MiniLM-L6-v8-pair_score
46
+
47
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) on the [pairs_three_scores_v5](https://huggingface.co/datasets/youssefkhalil320/pairs_three_scores_v5) dataset. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
48
+
49
+ ## Model Details
50
+
51
+ ### Model Description
52
+ - **Model Type:** Sentence Transformer
53
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
54
+ - **Maximum Sequence Length:** 256 tokens
55
+ - **Output Dimensionality:** 384 tokens
56
+ - **Similarity Function:** Cosine Similarity
57
+ - **Training Dataset:**
58
+ - [pairs_three_scores_v5](https://huggingface.co/datasets/youssefkhalil320/pairs_three_scores_v5)
59
+ - **Language:** en
60
+ - **License:** apache-2.0
61
+
62
+ ### Model Sources
63
+
64
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
65
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
66
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
67
+
68
+ ### Full Model Architecture
69
+
70
+ ```
71
+ SentenceTransformer(
72
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False}) with Transformer model: BertModel
73
+ (1): Pooling({'word_embedding_dimension': 384, '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})
74
+ (2): Normalize()
75
+ )
76
+ ```
77
+
78
+ ## Usage
79
+
80
+ ### Direct Usage (Sentence Transformers)
81
+
82
+ First install the Sentence Transformers library:
83
+
84
+ ```bash
85
+ pip install -U sentence-transformers
86
+ ```
87
+
88
+ Then you can load this model and run inference.
89
+ ```python
90
+ from sentence_transformers import SentenceTransformer
91
+
92
+ # Download from the 🤗 Hub
93
+ model = SentenceTransformer("sentence_transformers_model_id")
94
+ # Run inference
95
+ sentences = [
96
+ 'nkd skn',
97
+ 'hand drawing bag',
98
+ 'panini salmon',
99
+ ]
100
+ embeddings = model.encode(sentences)
101
+ print(embeddings.shape)
102
+ # [3, 384]
103
+
104
+ # Get the similarity scores for the embeddings
105
+ similarities = model.similarity(embeddings, embeddings)
106
+ print(similarities.shape)
107
+ # [3, 3]
108
+ ```
109
+
110
+ <!--
111
+ ### Direct Usage (Transformers)
112
+
113
+ <details><summary>Click to see the direct usage in Transformers</summary>
114
+
115
+ </details>
116
+ -->
117
+
118
+ <!--
119
+ ### Downstream Usage (Sentence Transformers)
120
+
121
+ You can finetune this model on your own dataset.
122
+
123
+ <details><summary>Click to expand</summary>
124
+
125
+ </details>
126
+ -->
127
+
128
+ <!--
129
+ ### Out-of-Scope Use
130
+
131
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
132
+ -->
133
+
134
+ <!--
135
+ ## Bias, Risks and Limitations
136
+
137
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
138
+ -->
139
+
140
+ <!--
141
+ ### Recommendations
142
+
143
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
144
+ -->
145
+
146
+ ## Training Details
147
+
148
+ ### Training Dataset
149
+
150
+ #### pairs_three_scores_v5
151
+
152
+ * Dataset: [pairs_three_scores_v5](https://huggingface.co/datasets/youssefkhalil320/pairs_three_scores_v5) at [3d8c457](https://huggingface.co/datasets/youssefkhalil320/pairs_three_scores_v5/tree/3d8c45703846bd2adfaaf422abafbc389b283de1)
153
+ * Size: 80,000,003 training samples
154
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
155
+ * Approximate statistics based on the first 1000 samples:
156
+ | | sentence1 | sentence2 | score |
157
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
158
+ | type | string | string | float |
159
+ | details | <ul><li>min: 3 tokens</li><li>mean: 6.06 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 5.71 tokens</li><li>max: 13 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.11</li><li>max: 1.0</li></ul> |
160
+ * Samples:
161
+ | sentence1 | sentence2 | score |
162
+ |:-------------------------------------|:---------------------------------------|:-----------------|
163
+ | <code>vanilla hair cream</code> | <code>free of paraben hair mask</code> | <code>0.5</code> |
164
+ | <code>nourishing shampoo</code> | <code>cumin lemon tea</code> | <code>0.0</code> |
165
+ | <code>safe materials pacifier</code> | <code>facial serum</code> | <code>0.5</code> |
166
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
167
+ ```json
168
+ {
169
+ "scale": 20.0,
170
+ "similarity_fct": "pairwise_cos_sim"
171
+ }
172
+ ```
173
+
174
+ ### Evaluation Dataset
175
+
176
+ #### pairs_three_scores_v5
177
+
178
+ * Dataset: [pairs_three_scores_v5](https://huggingface.co/datasets/youssefkhalil320/pairs_three_scores_v5) at [3d8c457](https://huggingface.co/datasets/youssefkhalil320/pairs_three_scores_v5/tree/3d8c45703846bd2adfaaf422abafbc389b283de1)
179
+ * Size: 20,000,001 evaluation samples
180
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
181
+ * Approximate statistics based on the first 1000 samples:
182
+ | | sentence1 | sentence2 | score |
183
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
184
+ | type | string | string | float |
185
+ | details | <ul><li>min: 3 tokens</li><li>mean: 6.21 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 5.75 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.11</li><li>max: 1.0</li></ul> |
186
+ * Samples:
187
+ | sentence1 | sentence2 | score |
188
+ |:----------------------------------------|:-----------------------------------|:-----------------|
189
+ | <code>teddy bear toy</code> | <code>long lasting cat food</code> | <code>0.0</code> |
190
+ | <code>eva hair treatment</code> | <code>fresh pineapple</code> | <code>0.0</code> |
191
+ | <code>soft wave hair conditioner</code> | <code>hybrid seat bike</code> | <code>0.0</code> |
192
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
193
+ ```json
194
+ {
195
+ "scale": 20.0,
196
+ "similarity_fct": "pairwise_cos_sim"
197
+ }
198
+ ```
199
+
200
+ ### Training Hyperparameters
201
+ #### Non-Default Hyperparameters
202
+
203
+ - `eval_strategy`: steps
204
+ - `per_device_train_batch_size`: 128
205
+ - `per_device_eval_batch_size`: 128
206
+ - `learning_rate`: 2e-05
207
+ - `num_train_epochs`: 1
208
+ - `warmup_ratio`: 0.1
209
+ - `fp16`: True
210
+
211
+ #### All Hyperparameters
212
+ <details><summary>Click to expand</summary>
213
+
214
+ - `overwrite_output_dir`: False
215
+ - `do_predict`: False
216
+ - `eval_strategy`: steps
217
+ - `prediction_loss_only`: True
218
+ - `per_device_train_batch_size`: 128
219
+ - `per_device_eval_batch_size`: 128
220
+ - `per_gpu_train_batch_size`: None
221
+ - `per_gpu_eval_batch_size`: None
222
+ - `gradient_accumulation_steps`: 1
223
+ - `eval_accumulation_steps`: None
224
+ - `torch_empty_cache_steps`: None
225
+ - `learning_rate`: 2e-05
226
+ - `weight_decay`: 0.0
227
+ - `adam_beta1`: 0.9
228
+ - `adam_beta2`: 0.999
229
+ - `adam_epsilon`: 1e-08
230
+ - `max_grad_norm`: 1.0
231
+ - `num_train_epochs`: 1
232
+ - `max_steps`: -1
233
+ - `lr_scheduler_type`: linear
234
+ - `lr_scheduler_kwargs`: {}
235
+ - `warmup_ratio`: 0.1
236
+ - `warmup_steps`: 0
237
+ - `log_level`: passive
238
+ - `log_level_replica`: warning
239
+ - `log_on_each_node`: True
240
+ - `logging_nan_inf_filter`: True
241
+ - `save_safetensors`: True
242
+ - `save_on_each_node`: False
243
+ - `save_only_model`: False
244
+ - `restore_callback_states_from_checkpoint`: False
245
+ - `no_cuda`: False
246
+ - `use_cpu`: False
247
+ - `use_mps_device`: False
248
+ - `seed`: 42
249
+ - `data_seed`: None
250
+ - `jit_mode_eval`: False
251
+ - `use_ipex`: False
252
+ - `bf16`: False
253
+ - `fp16`: True
254
+ - `fp16_opt_level`: O1
255
+ - `half_precision_backend`: auto
256
+ - `bf16_full_eval`: False
257
+ - `fp16_full_eval`: False
258
+ - `tf32`: None
259
+ - `local_rank`: 0
260
+ - `ddp_backend`: None
261
+ - `tpu_num_cores`: None
262
+ - `tpu_metrics_debug`: False
263
+ - `debug`: []
264
+ - `dataloader_drop_last`: False
265
+ - `dataloader_num_workers`: 0
266
+ - `dataloader_prefetch_factor`: None
267
+ - `past_index`: -1
268
+ - `disable_tqdm`: False
269
+ - `remove_unused_columns`: True
270
+ - `label_names`: None
271
+ - `load_best_model_at_end`: False
272
+ - `ignore_data_skip`: False
273
+ - `fsdp`: []
274
+ - `fsdp_min_num_params`: 0
275
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
276
+ - `fsdp_transformer_layer_cls_to_wrap`: None
277
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
278
+ - `deepspeed`: None
279
+ - `label_smoothing_factor`: 0.0
280
+ - `optim`: adamw_torch
281
+ - `optim_args`: None
282
+ - `adafactor`: False
283
+ - `group_by_length`: False
284
+ - `length_column_name`: length
285
+ - `ddp_find_unused_parameters`: None
286
+ - `ddp_bucket_cap_mb`: None
287
+ - `ddp_broadcast_buffers`: False
288
+ - `dataloader_pin_memory`: True
289
+ - `dataloader_persistent_workers`: False
290
+ - `skip_memory_metrics`: True
291
+ - `use_legacy_prediction_loop`: False
292
+ - `push_to_hub`: False
293
+ - `resume_from_checkpoint`: None
294
+ - `hub_model_id`: None
295
+ - `hub_strategy`: every_save
296
+ - `hub_private_repo`: False
297
+ - `hub_always_push`: False
298
+ - `gradient_checkpointing`: False
299
+ - `gradient_checkpointing_kwargs`: None
300
+ - `include_inputs_for_metrics`: False
301
+ - `eval_do_concat_batches`: True
302
+ - `fp16_backend`: auto
303
+ - `push_to_hub_model_id`: None
304
+ - `push_to_hub_organization`: None
305
+ - `mp_parameters`:
306
+ - `auto_find_batch_size`: False
307
+ - `full_determinism`: False
308
+ - `torchdynamo`: None
309
+ - `ray_scope`: last
310
+ - `ddp_timeout`: 1800
311
+ - `torch_compile`: False
312
+ - `torch_compile_backend`: None
313
+ - `torch_compile_mode`: None
314
+ - `dispatch_batches`: None
315
+ - `split_batches`: None
316
+ - `include_tokens_per_second`: False
317
+ - `include_num_input_tokens_seen`: False
318
+ - `neftune_noise_alpha`: None
319
+ - `optim_target_modules`: None
320
+ - `batch_eval_metrics`: False
321
+ - `eval_on_start`: False
322
+ - `use_liger_kernel`: False
323
+ - `eval_use_gather_object`: False
324
+ - `batch_sampler`: batch_sampler
325
+ - `multi_dataset_batch_sampler`: proportional
326
+
327
+ </details>
328
+
329
+ ### Training Logs
330
+ | Epoch | Step | Training Loss |
331
+ |:------:|:----:|:-------------:|
332
+ | 0.0002 | 100 | 10.8792 |
333
+ | 0.0003 | 200 | 10.9284 |
334
+ | 0.0005 | 300 | 10.6466 |
335
+ | 0.0006 | 400 | 10.841 |
336
+ | 0.0008 | 500 | 10.8094 |
337
+ | 0.0010 | 600 | 10.4323 |
338
+ | 0.0011 | 700 | 10.3032 |
339
+ | 0.0013 | 800 | 10.4006 |
340
+ | 0.0014 | 900 | 10.4743 |
341
+ | 0.0016 | 1000 | 10.2334 |
342
+ | 0.0018 | 1100 | 10.0135 |
343
+ | 0.0019 | 1200 | 9.7874 |
344
+ | 0.0021 | 1300 | 9.7419 |
345
+ | 0.0022 | 1400 | 9.7412 |
346
+ | 0.0024 | 1500 | 9.4585 |
347
+ | 0.0026 | 1600 | 9.5339 |
348
+ | 0.0027 | 1700 | 9.4345 |
349
+ | 0.0029 | 1800 | 9.1733 |
350
+ | 0.0030 | 1900 | 8.9952 |
351
+ | 0.0032 | 2000 | 8.9669 |
352
+ | 0.0034 | 2100 | 8.8152 |
353
+ | 0.0035 | 2200 | 8.7936 |
354
+ | 0.0037 | 2300 | 8.6771 |
355
+ | 0.0038 | 2400 | 8.4648 |
356
+ | 0.0040 | 2500 | 8.5764 |
357
+
358
+
359
+ ### Framework Versions
360
+ - Python: 3.8.10
361
+ - Sentence Transformers: 3.1.1
362
+ - Transformers: 4.45.2
363
+ - PyTorch: 2.4.1+cu118
364
+ - Accelerate: 1.0.1
365
+ - Datasets: 3.0.1
366
+ - Tokenizers: 0.20.3
367
+
368
+ ## Citation
369
+
370
+ ### BibTeX
371
+
372
+ #### Sentence Transformers
373
+ ```bibtex
374
+ @inproceedings{reimers-2019-sentence-bert,
375
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
376
+ author = "Reimers, Nils and Gurevych, Iryna",
377
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
378
+ month = "11",
379
+ year = "2019",
380
+ publisher = "Association for Computational Linguistics",
381
+ url = "https://arxiv.org/abs/1908.10084",
382
+ }
383
+ ```
384
+
385
+ #### CoSENTLoss
386
+ ```bibtex
387
+ @online{kexuefm-8847,
388
+ title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
389
+ author={Su Jianlin},
390
+ year={2022},
391
+ month={Jan},
392
+ url={https://kexue.fm/archives/8847},
393
+ }
394
+ ```
395
+
396
+ <!--
397
+ ## Glossary
398
+
399
+ *Clearly define terms in order to be accessible across audiences.*
400
+ -->
401
+
402
+ <!--
403
+ ## Model Card Authors
404
+
405
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
406
+ -->
407
+
408
+ <!--
409
+ ## Model Card Contact
410
+
411
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
412
+ -->
checkpoint-2500/config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/all-MiniLM-L6-v2",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.45.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
checkpoint-2500/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
+ }
checkpoint-2500/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dee3cc8658fbd11fd37131561f4436112b56d93ca34a3fe93c13dd331f41f2c7
3
+ size 90864192
checkpoint-2500/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
+ ]
checkpoint-2500/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04776edf0e69baf550b78fa37798da16e30f267d71f7a5402a5c2595a7e7d202
3
+ size 180607738
checkpoint-2500/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd94f7c6b4d89279d6951afee1af2a94f86465f73d1e94dfd90380511c35f188
3
+ size 14244
checkpoint-2500/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a58aecbecbecb24f362efa6fb2b6d01f5144603b4a7bf7918a4f53aca780dce6
3
+ size 1064
checkpoint-2500/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
checkpoint-2500/special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
checkpoint-2500/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-2500/tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": false,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "max_length": 128,
50
+ "model_max_length": 256,
51
+ "never_split": null,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
checkpoint-2500/trainer_state.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.00399999360001024,
5
+ "eval_steps": 200000,
6
+ "global_step": 2500,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.0001599997440004096,
13
+ "grad_norm": 84.32501983642578,
14
+ "learning_rate": 3.103950336794611e-08,
15
+ "loss": 10.8792,
16
+ "step": 100
17
+ },
18
+ {
19
+ "epoch": 0.0003199994880008192,
20
+ "grad_norm": 60.63747024536133,
21
+ "learning_rate": 6.303899137613798e-08,
22
+ "loss": 10.9284,
23
+ "step": 200
24
+ },
25
+ {
26
+ "epoch": 0.00047999923200122877,
27
+ "grad_norm": 55.71075439453125,
28
+ "learning_rate": 9.503847938432986e-08,
29
+ "loss": 10.6466,
30
+ "step": 300
31
+ },
32
+ {
33
+ "epoch": 0.0006399989760016384,
34
+ "grad_norm": 57.63307189941406,
35
+ "learning_rate": 1.2703796739252173e-07,
36
+ "loss": 10.841,
37
+ "step": 400
38
+ },
39
+ {
40
+ "epoch": 0.000799998720002048,
41
+ "grad_norm": 89.1032485961914,
42
+ "learning_rate": 1.590374554007136e-07,
43
+ "loss": 10.8094,
44
+ "step": 500
45
+ },
46
+ {
47
+ "epoch": 0.0009599984640024575,
48
+ "grad_norm": 57.2479362487793,
49
+ "learning_rate": 1.9103694340890547e-07,
50
+ "loss": 10.4323,
51
+ "step": 600
52
+ },
53
+ {
54
+ "epoch": 0.0011199982080028672,
55
+ "grad_norm": 51.17530059814453,
56
+ "learning_rate": 2.2303643141709733e-07,
57
+ "loss": 10.3032,
58
+ "step": 700
59
+ },
60
+ {
61
+ "epoch": 0.0012799979520032767,
62
+ "grad_norm": 60.76409912109375,
63
+ "learning_rate": 2.550359194252892e-07,
64
+ "loss": 10.4006,
65
+ "step": 800
66
+ },
67
+ {
68
+ "epoch": 0.0014399976960036865,
69
+ "grad_norm": 67.00859069824219,
70
+ "learning_rate": 2.870354074334811e-07,
71
+ "loss": 10.4743,
72
+ "step": 900
73
+ },
74
+ {
75
+ "epoch": 0.001599997440004096,
76
+ "grad_norm": 68.4343032836914,
77
+ "learning_rate": 3.19034895441673e-07,
78
+ "loss": 10.2334,
79
+ "step": 1000
80
+ },
81
+ {
82
+ "epoch": 0.0017599971840045055,
83
+ "grad_norm": 48.704105377197266,
84
+ "learning_rate": 3.510343834498648e-07,
85
+ "loss": 10.0135,
86
+ "step": 1100
87
+ },
88
+ {
89
+ "epoch": 0.001919996928004915,
90
+ "grad_norm": 45.30134963989258,
91
+ "learning_rate": 3.830338714580567e-07,
92
+ "loss": 9.7874,
93
+ "step": 1200
94
+ },
95
+ {
96
+ "epoch": 0.002079996672005325,
97
+ "grad_norm": 84.56024169921875,
98
+ "learning_rate": 4.150333594662486e-07,
99
+ "loss": 9.7419,
100
+ "step": 1300
101
+ },
102
+ {
103
+ "epoch": 0.0022399964160057344,
104
+ "grad_norm": 45.73213195800781,
105
+ "learning_rate": 4.470328474744404e-07,
106
+ "loss": 9.7412,
107
+ "step": 1400
108
+ },
109
+ {
110
+ "epoch": 0.002399996160006144,
111
+ "grad_norm": 50.21996307373047,
112
+ "learning_rate": 4.790323354826324e-07,
113
+ "loss": 9.4585,
114
+ "step": 1500
115
+ },
116
+ {
117
+ "epoch": 0.0025599959040065534,
118
+ "grad_norm": 59.475799560546875,
119
+ "learning_rate": 5.110318234908241e-07,
120
+ "loss": 9.5339,
121
+ "step": 1600
122
+ },
123
+ {
124
+ "epoch": 0.002719995648006963,
125
+ "grad_norm": 82.53620910644531,
126
+ "learning_rate": 5.43031311499016e-07,
127
+ "loss": 9.4345,
128
+ "step": 1700
129
+ },
130
+ {
131
+ "epoch": 0.002879995392007373,
132
+ "grad_norm": 39.44235610961914,
133
+ "learning_rate": 5.750307995072079e-07,
134
+ "loss": 9.1733,
135
+ "step": 1800
136
+ },
137
+ {
138
+ "epoch": 0.0030399951360077825,
139
+ "grad_norm": 37.58698654174805,
140
+ "learning_rate": 6.070302875153998e-07,
141
+ "loss": 8.9952,
142
+ "step": 1900
143
+ },
144
+ {
145
+ "epoch": 0.003199994880008192,
146
+ "grad_norm": 40.35204315185547,
147
+ "learning_rate": 6.390297755235917e-07,
148
+ "loss": 8.9669,
149
+ "step": 2000
150
+ },
151
+ {
152
+ "epoch": 0.0033599946240086016,
153
+ "grad_norm": 57.84451675415039,
154
+ "learning_rate": 6.707092686517017e-07,
155
+ "loss": 8.8152,
156
+ "step": 2100
157
+ },
158
+ {
159
+ "epoch": 0.003519994368009011,
160
+ "grad_norm": 40.126953125,
161
+ "learning_rate": 7.027087566598935e-07,
162
+ "loss": 8.7936,
163
+ "step": 2200
164
+ },
165
+ {
166
+ "epoch": 0.0036799941120094206,
167
+ "grad_norm": 35.435707092285156,
168
+ "learning_rate": 7.347082446680854e-07,
169
+ "loss": 8.6771,
170
+ "step": 2300
171
+ },
172
+ {
173
+ "epoch": 0.00383999385600983,
174
+ "grad_norm": 42.3509635925293,
175
+ "learning_rate": 7.667077326762773e-07,
176
+ "loss": 8.4648,
177
+ "step": 2400
178
+ },
179
+ {
180
+ "epoch": 0.00399999360001024,
181
+ "grad_norm": 33.58556365966797,
182
+ "learning_rate": 7.987072206844691e-07,
183
+ "loss": 8.5764,
184
+ "step": 2500
185
+ }
186
+ ],
187
+ "logging_steps": 100,
188
+ "max_steps": 625001,
189
+ "num_input_tokens_seen": 0,
190
+ "num_train_epochs": 1,
191
+ "save_steps": 500,
192
+ "stateful_callbacks": {
193
+ "TrainerControl": {
194
+ "args": {
195
+ "should_epoch_stop": false,
196
+ "should_evaluate": false,
197
+ "should_log": false,
198
+ "should_save": true,
199
+ "should_training_stop": false
200
+ },
201
+ "attributes": {}
202
+ }
203
+ },
204
+ "total_flos": 0.0,
205
+ "train_batch_size": 128,
206
+ "trial_name": null,
207
+ "trial_params": null
208
+ }
checkpoint-2500/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14eb8a69d6ba5b2bb8d2148b585526b13da2e45effc438997c1d2d513d64b838
3
+ size 5496
checkpoint-2500/vocab.txt ADDED
The diff for this file is too large to render. See raw diff