LamaDiab commited on
Commit
3a0fcd5
·
verified ·
1 Parent(s): fa3063f

Training in progress, epoch 2, checkpoint

Browse files
checkpoint-9270/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-9270/README.md ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:790993
9
+ - loss:MultipleNegativesSymmetricRankingLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: essence multi task concealer 15 natural nude
13
+ sentences:
14
+ - face make-up
15
+ - adidas men shower gel 3 in 1
16
+ - health_beauty
17
+ - beauty
18
+ - ' essence multi task concealer'
19
+ - source_sentence: chillax fluffy beanbag
20
+ sentences:
21
+ - 60410 fire rescue motorcycle v
22
+ - living room furniture
23
+ - home and garden
24
+ - ' fluffy beanbag'
25
+ - home_garden
26
+ - source_sentence: must kindergarten backpack mermazing 2 cases
27
+ sentences:
28
+ - school supplies
29
+ - bag
30
+ - sage navy blue
31
+ - fashion
32
+ - fashion
33
+ - source_sentence: true gold feeding bottle with handle 270 ml 2024144
34
+ sentences:
35
+ - sanita bambi tom&jerry 2(s)(3-6k)64pcs#
36
+ - ' handle bottle '
37
+ - kids_toys
38
+ - baby bottle
39
+ - kids
40
+ - source_sentence: y earrings
41
+ sentences:
42
+ - marbella
43
+ - fashion
44
+ - gold earrings
45
+ - fashion
46
+ - earring
47
+ pipeline_tag: sentence-similarity
48
+ library_name: sentence-transformers
49
+ metrics:
50
+ - cosine_accuracy
51
+ model-index:
52
+ - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
53
+ results:
54
+ - task:
55
+ type: triplet
56
+ name: Triplet
57
+ dataset:
58
+ name: Unknown
59
+ type: unknown
60
+ metrics:
61
+ - type: cosine_accuracy
62
+ value: 0.968766450881958
63
+ name: Cosine Accuracy
64
+ ---
65
+
66
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
67
+
68
+ 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). 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.
69
+
70
+ ## Model Details
71
+
72
+ ### Model Description
73
+ - **Model Type:** Sentence Transformer
74
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
75
+ - **Maximum Sequence Length:** 256 tokens
76
+ - **Output Dimensionality:** 384 dimensions
77
+ - **Similarity Function:** Cosine Similarity
78
+ <!-- - **Training Dataset:** Unknown -->
79
+ <!-- - **Language:** Unknown -->
80
+ <!-- - **License:** Unknown -->
81
+
82
+ ### Model Sources
83
+
84
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
85
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
86
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
87
+
88
+ ### Full Model Architecture
89
+
90
+ ```
91
+ SentenceTransformer(
92
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
93
+ (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})
94
+ (2): Normalize()
95
+ )
96
+ ```
97
+
98
+ ## Usage
99
+
100
+ ### Direct Usage (Sentence Transformers)
101
+
102
+ First install the Sentence Transformers library:
103
+
104
+ ```bash
105
+ pip install -U sentence-transformers
106
+ ```
107
+
108
+ Then you can load this model and run inference.
109
+ ```python
110
+ from sentence_transformers import SentenceTransformer
111
+
112
+ # Download from the 🤗 Hub
113
+ model = SentenceTransformer("LamaDiab/MiniLM-v27-SemanticEngine")
114
+ # Run inference
115
+ sentences = [
116
+ 'y earrings',
117
+ 'gold earrings',
118
+ 'marbella',
119
+ ]
120
+ embeddings = model.encode(sentences)
121
+ print(embeddings.shape)
122
+ # [3, 384]
123
+
124
+ # Get the similarity scores for the embeddings
125
+ similarities = model.similarity(embeddings, embeddings)
126
+ print(similarities)
127
+ # tensor([[1.0000, 0.8604, 0.3573],
128
+ # [0.8604, 1.0000, 0.3703],
129
+ # [0.3573, 0.3703, 1.0000]])
130
+ ```
131
+
132
+ <!--
133
+ ### Direct Usage (Transformers)
134
+
135
+ <details><summary>Click to see the direct usage in Transformers</summary>
136
+
137
+ </details>
138
+ -->
139
+
140
+ <!--
141
+ ### Downstream Usage (Sentence Transformers)
142
+
143
+ You can finetune this model on your own dataset.
144
+
145
+ <details><summary>Click to expand</summary>
146
+
147
+ </details>
148
+ -->
149
+
150
+ <!--
151
+ ### Out-of-Scope Use
152
+
153
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
154
+ -->
155
+
156
+ ## Evaluation
157
+
158
+ ### Metrics
159
+
160
+ #### Triplet
161
+
162
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
163
+
164
+ | Metric | Value |
165
+ |:--------------------|:-----------|
166
+ | **cosine_accuracy** | **0.9688** |
167
+
168
+ <!--
169
+ ## Bias, Risks and Limitations
170
+
171
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
172
+ -->
173
+
174
+ <!--
175
+ ### Recommendations
176
+
177
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
178
+ -->
179
+
180
+ ## Training Details
181
+
182
+ ### Training Dataset
183
+
184
+ #### Unnamed Dataset
185
+
186
+ * Size: 790,993 training samples
187
+ * Columns: <code>anchor</code>, <code>positive</code>, <code>itemCategory</code>, <code>shoppingCategory</code>, and <code>shoppingCategory_normalized</code>
188
+ * Approximate statistics based on the first 1000 samples:
189
+ | | anchor | positive | itemCategory | shoppingCategory | shoppingCategory_normalized |
190
+ |:--------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
191
+ | type | string | string | string | string | string |
192
+ | details | <ul><li>min: 3 tokens</li><li>mean: 10.03 tokens</li><li>max: 105 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 4.65 tokens</li><li>max: 95 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.95 tokens</li><li>max: 11 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.44 tokens</li><li>max: 5 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 4.62 tokens</li><li>max: 5 tokens</li></ul> |
193
+ * Samples:
194
+ | anchor | positive | itemCategory | shoppingCategory | shoppingCategory_normalized |
195
+ |:-----------------------------------------------------------------------------|:-----------------------------|:-------------------------|:-------------------------|:----------------------------|
196
+ | <code>jake jelly mania ys max</code> | <code>jake candy</code> | <code>sweet</code> | <code>groceries</code> | <code>food_dining</code> |
197
+ | <code>own crisp</code> | <code>sweet</code> | <code>sweet</code> | <code>restaurants</code> | <code>food_dining</code> |
198
+ | <code>pencil case zipper surf floral petrol denim polyester pm 19454</code> | <code>office supplies</code> | <code>pencil case</code> | <code>stationary</code> | <code>office_school</code> |
199
+ * Loss: [<code>MultipleNegativesSymmetricRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativessymmetricrankingloss) with these parameters:
200
+ ```json
201
+ {
202
+ "scale": 20.0,
203
+ "similarity_fct": "cos_sim",
204
+ "gather_across_devices": false
205
+ }
206
+ ```
207
+
208
+ ### Evaluation Dataset
209
+
210
+ #### Unnamed Dataset
211
+
212
+ * Size: 9,509 evaluation samples
213
+ * Columns: <code>anchor</code>, <code>positive</code>, <code>negative</code>, <code>itemCategory</code>, <code>shoppingCategory</code>, and <code>shoppingCategory_normalized</code>
214
+ * Approximate statistics based on the first 1000 samples:
215
+ | | anchor | positive | negative | itemCategory | shoppingCategory | shoppingCategory_normalized |
216
+ |:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
217
+ | type | string | string | string | string | string | string |
218
+ | details | <ul><li>min: 3 tokens</li><li>mean: 9.63 tokens</li><li>max: 43 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 6.43 tokens</li><li>max: 150 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 9.48 tokens</li><li>max: 42 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.85 tokens</li><li>max: 9 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.36 tokens</li><li>max: 5 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 4.44 tokens</li><li>max: 5 tokens</li></ul> |
219
+ * Samples:
220
+ | anchor | positive | negative | itemCategory | shoppingCategory | shoppingCategory_normalized |
221
+ |:---------------------------------------------------------------------|:-------------------------------------|:------------------------------------|:------------------------------------|:---------------------------|:----------------------------------|
222
+ | <code>pilot mechanical pencil progrex h-127 - 0.7 mm</code> | <code> progrex pencil </code> | <code>jojo's journal</code> | <code>pencil</code> | <code>stationary</code> | <code>office_school</code> |
223
+ | <code>superior drawing marker -pen - set of 12 colors - 2 nib</code> | <code>superior drawing marker</code> | <code>timed feeding tray</code> | <code>marker</code> | <code>stationary</code> | <code>office_school</code> |
224
+ | <code>first person singular author: haruki murakami</code> | <code> book</code> | <code>sushi chicken shawerma</code> | <code>literature and fiction</code> | <code>entertainment</code> | <code>sports_entertainment</code> |
225
+ * Loss: [<code>MultipleNegativesSymmetricRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativessymmetricrankingloss) with these parameters:
226
+ ```json
227
+ {
228
+ "scale": 20.0,
229
+ "similarity_fct": "cos_sim",
230
+ "gather_across_devices": false
231
+ }
232
+ ```
233
+
234
+ ### Training Hyperparameters
235
+ #### Non-Default Hyperparameters
236
+
237
+ - `eval_strategy`: steps
238
+ - `per_device_train_batch_size`: 256
239
+ - `per_device_eval_batch_size`: 256
240
+ - `learning_rate`: 3e-05
241
+ - `weight_decay`: 0.001
242
+ - `warmup_ratio`: 0.1
243
+ - `fp16`: True
244
+ - `dataloader_num_workers`: 1
245
+ - `dataloader_prefetch_factor`: 2
246
+ - `dataloader_persistent_workers`: True
247
+ - `push_to_hub`: True
248
+ - `hub_model_id`: LamaDiab/MiniLM-v27-SemanticEngine
249
+ - `hub_strategy`: all_checkpoints
250
+
251
+ #### All Hyperparameters
252
+ <details><summary>Click to expand</summary>
253
+
254
+ - `overwrite_output_dir`: False
255
+ - `do_predict`: False
256
+ - `eval_strategy`: steps
257
+ - `prediction_loss_only`: True
258
+ - `per_device_train_batch_size`: 256
259
+ - `per_device_eval_batch_size`: 256
260
+ - `per_gpu_train_batch_size`: None
261
+ - `per_gpu_eval_batch_size`: None
262
+ - `gradient_accumulation_steps`: 1
263
+ - `eval_accumulation_steps`: None
264
+ - `torch_empty_cache_steps`: None
265
+ - `learning_rate`: 3e-05
266
+ - `weight_decay`: 0.001
267
+ - `adam_beta1`: 0.9
268
+ - `adam_beta2`: 0.999
269
+ - `adam_epsilon`: 1e-08
270
+ - `max_grad_norm`: 1.0
271
+ - `num_train_epochs`: 3
272
+ - `max_steps`: -1
273
+ - `lr_scheduler_type`: linear
274
+ - `lr_scheduler_kwargs`: {}
275
+ - `warmup_ratio`: 0.1
276
+ - `warmup_steps`: 0
277
+ - `log_level`: passive
278
+ - `log_level_replica`: warning
279
+ - `log_on_each_node`: True
280
+ - `logging_nan_inf_filter`: True
281
+ - `save_safetensors`: True
282
+ - `save_on_each_node`: False
283
+ - `save_only_model`: False
284
+ - `restore_callback_states_from_checkpoint`: False
285
+ - `no_cuda`: False
286
+ - `use_cpu`: False
287
+ - `use_mps_device`: False
288
+ - `seed`: 42
289
+ - `data_seed`: None
290
+ - `jit_mode_eval`: False
291
+ - `use_ipex`: False
292
+ - `bf16`: False
293
+ - `fp16`: True
294
+ - `fp16_opt_level`: O1
295
+ - `half_precision_backend`: auto
296
+ - `bf16_full_eval`: False
297
+ - `fp16_full_eval`: False
298
+ - `tf32`: None
299
+ - `local_rank`: 0
300
+ - `ddp_backend`: None
301
+ - `tpu_num_cores`: None
302
+ - `tpu_metrics_debug`: False
303
+ - `debug`: []
304
+ - `dataloader_drop_last`: False
305
+ - `dataloader_num_workers`: 1
306
+ - `dataloader_prefetch_factor`: 2
307
+ - `past_index`: -1
308
+ - `disable_tqdm`: False
309
+ - `remove_unused_columns`: True
310
+ - `label_names`: None
311
+ - `load_best_model_at_end`: False
312
+ - `ignore_data_skip`: False
313
+ - `fsdp`: []
314
+ - `fsdp_min_num_params`: 0
315
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
316
+ - `fsdp_transformer_layer_cls_to_wrap`: None
317
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
318
+ - `deepspeed`: None
319
+ - `label_smoothing_factor`: 0.0
320
+ - `optim`: adamw_torch
321
+ - `optim_args`: None
322
+ - `adafactor`: False
323
+ - `group_by_length`: False
324
+ - `length_column_name`: length
325
+ - `ddp_find_unused_parameters`: None
326
+ - `ddp_bucket_cap_mb`: None
327
+ - `ddp_broadcast_buffers`: False
328
+ - `dataloader_pin_memory`: True
329
+ - `dataloader_persistent_workers`: True
330
+ - `skip_memory_metrics`: True
331
+ - `use_legacy_prediction_loop`: False
332
+ - `push_to_hub`: True
333
+ - `resume_from_checkpoint`: None
334
+ - `hub_model_id`: LamaDiab/MiniLM-v27-SemanticEngine
335
+ - `hub_strategy`: all_checkpoints
336
+ - `hub_private_repo`: None
337
+ - `hub_always_push`: False
338
+ - `hub_revision`: None
339
+ - `gradient_checkpointing`: False
340
+ - `gradient_checkpointing_kwargs`: None
341
+ - `include_inputs_for_metrics`: False
342
+ - `include_for_metrics`: []
343
+ - `eval_do_concat_batches`: True
344
+ - `fp16_backend`: auto
345
+ - `push_to_hub_model_id`: None
346
+ - `push_to_hub_organization`: None
347
+ - `mp_parameters`:
348
+ - `auto_find_batch_size`: False
349
+ - `full_determinism`: False
350
+ - `torchdynamo`: None
351
+ - `ray_scope`: last
352
+ - `ddp_timeout`: 1800
353
+ - `torch_compile`: False
354
+ - `torch_compile_backend`: None
355
+ - `torch_compile_mode`: None
356
+ - `include_tokens_per_second`: False
357
+ - `include_num_input_tokens_seen`: False
358
+ - `neftune_noise_alpha`: None
359
+ - `optim_target_modules`: None
360
+ - `batch_eval_metrics`: False
361
+ - `eval_on_start`: False
362
+ - `use_liger_kernel`: False
363
+ - `liger_kernel_config`: None
364
+ - `eval_use_gather_object`: False
365
+ - `average_tokens_across_devices`: False
366
+ - `prompts`: None
367
+ - `batch_sampler`: batch_sampler
368
+ - `multi_dataset_batch_sampler`: proportional
369
+ - `router_mapping`: {}
370
+ - `learning_rate_mapping`: {}
371
+
372
+ </details>
373
+
374
+ ### Training Logs
375
+ | Epoch | Step | Training Loss | Validation Loss | cosine_accuracy |
376
+ |:------:|:----:|:-------------:|:---------------:|:---------------:|
377
+ | 0.0003 | 1 | 3.4534 | - | - |
378
+ | 0.3236 | 1000 | 2.5414 | 0.3535 | 0.9567 |
379
+ | 0.6472 | 2000 | 1.4768 | 0.3096 | 0.9636 |
380
+ | 0.9709 | 3000 | 1.1557 | 0.3100 | 0.9630 |
381
+ | 1.2943 | 4000 | 1.2117 | 0.3075 | 0.9669 |
382
+ | 1.6177 | 5000 | 1.1625 | 0.3027 | 0.9679 |
383
+ | 1.9411 | 6000 | 1.1173 | 0.2983 | 0.9670 |
384
+ | 2.2646 | 7000 | 1.0564 | 0.2932 | 0.9683 |
385
+ | 2.5880 | 8000 | 1.0198 | 0.2942 | 0.9688 |
386
+ | 2.9114 | 9000 | 1.0197 | 0.2932 | 0.9688 |
387
+
388
+
389
+ ### Framework Versions
390
+ - Python: 3.11.13
391
+ - Sentence Transformers: 5.1.2
392
+ - Transformers: 4.53.3
393
+ - PyTorch: 2.6.0+cu124
394
+ - Accelerate: 1.9.0
395
+ - Datasets: 4.4.1
396
+ - Tokenizers: 0.21.2
397
+
398
+ ## Citation
399
+
400
+ ### BibTeX
401
+
402
+ #### Sentence Transformers
403
+ ```bibtex
404
+ @inproceedings{reimers-2019-sentence-bert,
405
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
406
+ author = "Reimers, Nils and Gurevych, Iryna",
407
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
408
+ month = "11",
409
+ year = "2019",
410
+ publisher = "Association for Computational Linguistics",
411
+ url = "https://arxiv.org/abs/1908.10084",
412
+ }
413
+ ```
414
+
415
+ <!--
416
+ ## Glossary
417
+
418
+ *Clearly define terms in order to be accessible across audiences.*
419
+ -->
420
+
421
+ <!--
422
+ ## Model Card Authors
423
+
424
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
425
+ -->
426
+
427
+ <!--
428
+ ## Model Card Contact
429
+
430
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
431
+ -->
checkpoint-9270/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 384,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 1536,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 6,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.53.3",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
checkpoint-9270/config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.2",
4
+ "transformers": "4.53.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
checkpoint-9270/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7463f86b2487ec6b4b023718355d6d3b8f88bbd70f446839d2ad2cbccd386b8
3
+ size 90864192
checkpoint-9270/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-9270/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:957884caa7df40a969fd5b8a2d73e530be3e7682476cad64326e0d67a6e85520
3
+ size 180607738
checkpoint-9270/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03a34128b41db70577d62d1a8f0ff4c0cc63ec378c32ab63024d2196cdcc2473
3
+ size 14244
checkpoint-9270/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b79c7a146f499b72984dc5647528265fd193f72315009cee6b61b199129ba114
3
+ size 988
checkpoint-9270/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59d86b872815522b3bca27b5caf0a5e50c1a15bf0b54f23e4aada367f30cd5fc
3
+ size 1064
checkpoint-9270/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
checkpoint-9270/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-9270/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-9270/tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 128,
51
+ "model_max_length": 256,
52
+ "never_split": null,
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
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
checkpoint-9270/trainer_state.json ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.998706338939198,
6
+ "eval_steps": 1000,
7
+ "global_step": 9270,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.00032362459546925567,
14
+ "grad_norm": 6.685443878173828,
15
+ "learning_rate": 0.0,
16
+ "loss": 3.4534,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.32362459546925565,
21
+ "grad_norm": 5.621844291687012,
22
+ "learning_rate": 2.9741100323624596e-05,
23
+ "loss": 2.5414,
24
+ "step": 1000
25
+ },
26
+ {
27
+ "epoch": 0.32362459546925565,
28
+ "eval_cosine_accuracy": 0.9566726088523865,
29
+ "eval_loss": 0.3535313606262207,
30
+ "eval_runtime": 156.4326,
31
+ "eval_samples_per_second": 60.787,
32
+ "eval_steps_per_second": 0.243,
33
+ "step": 1000
34
+ },
35
+ {
36
+ "epoch": 0.6472491909385113,
37
+ "grad_norm": 5.640726566314697,
38
+ "learning_rate": 2.614527148507731e-05,
39
+ "loss": 1.4768,
40
+ "step": 2000
41
+ },
42
+ {
43
+ "epoch": 0.6472491909385113,
44
+ "eval_cosine_accuracy": 0.9636133909225464,
45
+ "eval_loss": 0.30959078669548035,
46
+ "eval_runtime": 148.7133,
47
+ "eval_samples_per_second": 63.942,
48
+ "eval_steps_per_second": 0.256,
49
+ "step": 2000
50
+ },
51
+ {
52
+ "epoch": 0.970873786407767,
53
+ "grad_norm": 6.189350128173828,
54
+ "learning_rate": 2.2549442646530026e-05,
55
+ "loss": 1.1557,
56
+ "step": 3000
57
+ },
58
+ {
59
+ "epoch": 0.970873786407767,
60
+ "eval_cosine_accuracy": 0.9629824161529541,
61
+ "eval_loss": 0.3100142478942871,
62
+ "eval_runtime": 148.5055,
63
+ "eval_samples_per_second": 64.031,
64
+ "eval_steps_per_second": 0.256,
65
+ "step": 3000
66
+ },
67
+ {
68
+ "epoch": 1.2943078913324708,
69
+ "grad_norm": 4.021961212158203,
70
+ "learning_rate": 1.895361380798274e-05,
71
+ "loss": 1.2117,
72
+ "step": 4000
73
+ },
74
+ {
75
+ "epoch": 1.2943078913324708,
76
+ "eval_cosine_accuracy": 0.9668734669685364,
77
+ "eval_loss": 0.3074517548084259,
78
+ "eval_runtime": 148.3399,
79
+ "eval_samples_per_second": 64.103,
80
+ "eval_steps_per_second": 0.256,
81
+ "step": 4000
82
+ },
83
+ {
84
+ "epoch": 1.6177231565329884,
85
+ "grad_norm": 4.275893211364746,
86
+ "learning_rate": 1.5364976627112552e-05,
87
+ "loss": 1.1625,
88
+ "step": 5000
89
+ },
90
+ {
91
+ "epoch": 1.6177231565329884,
92
+ "eval_cosine_accuracy": 0.9679251313209534,
93
+ "eval_loss": 0.30274713039398193,
94
+ "eval_runtime": 148.7298,
95
+ "eval_samples_per_second": 63.935,
96
+ "eval_steps_per_second": 0.255,
97
+ "step": 5000
98
+ },
99
+ {
100
+ "epoch": 1.941138421733506,
101
+ "grad_norm": 4.824245929718018,
102
+ "learning_rate": 1.1769147788565266e-05,
103
+ "loss": 1.1173,
104
+ "step": 6000
105
+ },
106
+ {
107
+ "epoch": 1.941138421733506,
108
+ "eval_cosine_accuracy": 0.9669786691665649,
109
+ "eval_loss": 0.2982948422431946,
110
+ "eval_runtime": 149.5127,
111
+ "eval_samples_per_second": 63.6,
112
+ "eval_steps_per_second": 0.254,
113
+ "step": 6000
114
+ },
115
+ {
116
+ "epoch": 2.2645536869340233,
117
+ "grad_norm": 4.199714660644531,
118
+ "learning_rate": 8.173318950017979e-06,
119
+ "loss": 1.0564,
120
+ "step": 7000
121
+ },
122
+ {
123
+ "epoch": 2.2645536869340233,
124
+ "eval_cosine_accuracy": 0.9683457612991333,
125
+ "eval_loss": 0.29319483041763306,
126
+ "eval_runtime": 150.5841,
127
+ "eval_samples_per_second": 63.147,
128
+ "eval_steps_per_second": 0.252,
129
+ "step": 7000
130
+ },
131
+ {
132
+ "epoch": 2.5879689521345406,
133
+ "grad_norm": 5.821386814117432,
134
+ "learning_rate": 4.581085940309242e-06,
135
+ "loss": 1.0198,
136
+ "step": 8000
137
+ },
138
+ {
139
+ "epoch": 2.5879689521345406,
140
+ "eval_cosine_accuracy": 0.968766450881958,
141
+ "eval_loss": 0.2941683530807495,
142
+ "eval_runtime": 148.3389,
143
+ "eval_samples_per_second": 64.103,
144
+ "eval_steps_per_second": 0.256,
145
+ "step": 8000
146
+ },
147
+ {
148
+ "epoch": 2.9113842173350584,
149
+ "grad_norm": 5.881197452545166,
150
+ "learning_rate": 9.852571017619562e-07,
151
+ "loss": 1.0197,
152
+ "step": 9000
153
+ },
154
+ {
155
+ "epoch": 2.9113842173350584,
156
+ "eval_cosine_accuracy": 0.968766450881958,
157
+ "eval_loss": 0.2932337522506714,
158
+ "eval_runtime": 149.0292,
159
+ "eval_samples_per_second": 63.806,
160
+ "eval_steps_per_second": 0.255,
161
+ "step": 9000
162
+ }
163
+ ],
164
+ "logging_steps": 1000,
165
+ "max_steps": 9270,
166
+ "num_input_tokens_seen": 0,
167
+ "num_train_epochs": 3,
168
+ "save_steps": 500,
169
+ "stateful_callbacks": {
170
+ "TrainerControl": {
171
+ "args": {
172
+ "should_epoch_stop": false,
173
+ "should_evaluate": false,
174
+ "should_log": false,
175
+ "should_save": true,
176
+ "should_training_stop": true
177
+ },
178
+ "attributes": {}
179
+ }
180
+ },
181
+ "total_flos": 0.0,
182
+ "train_batch_size": 256,
183
+ "trial_name": null,
184
+ "trial_params": null
185
+ }
checkpoint-9270/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa19b6890fc6323f4d5c5fcafe606e739daa13381207bc69ee6720f8602f7e66
3
+ size 5752
checkpoint-9270/vocab.txt ADDED
The diff for this file is too large to render. See raw diff