LamaDiab commited on
Commit
00ea46f
·
verified ·
1 Parent(s): f8818ef

Training in progress, epoch 2, checkpoint

Browse files
checkpoint-6246/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-6246/README.md ADDED
@@ -0,0 +1,423 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:799002
9
+ - loss:MultipleNegativesSymmetricRankingLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: pappardelle beef ragu
13
+ sentences:
14
+ - chocolate molten
15
+ - slow-cooked pasta
16
+ - pasta
17
+ - pasta
18
+ - source_sentence: cashmere pink braided knit top
19
+ sentences:
20
+ - backpack must 584612 monochrome black camo 32 x 19 x 42 cm greek
21
+ - casual wear
22
+ - top
23
+ - pink top
24
+ - source_sentence: non vegan shish tawook
25
+ sentences:
26
+ - meat and poultry
27
+ - grilled vegetables shish tawook
28
+ - solid pink
29
+ - Restaurants & Cuisines
30
+ - source_sentence: glysolid shower & care milk & honey 300 ml
31
+ sentences:
32
+ - growth hair oil
33
+ - ' shower gel'
34
+ - Skincare
35
+ - shower gel
36
+ - source_sentence: triangle premium modern rug design
37
+ sentences:
38
+ - premium modern rug
39
+ - behind the lights
40
+ - Furniture
41
+ - furniture accessory
42
+ pipeline_tag: sentence-similarity
43
+ library_name: sentence-transformers
44
+ metrics:
45
+ - cosine_accuracy
46
+ model-index:
47
+ - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
48
+ results:
49
+ - task:
50
+ type: triplet
51
+ name: Triplet
52
+ dataset:
53
+ name: Unknown
54
+ type: unknown
55
+ metrics:
56
+ - type: cosine_accuracy
57
+ value: 0.9772945046424866
58
+ name: Cosine Accuracy
59
+ ---
60
+
61
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
62
+
63
+ 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.
64
+
65
+ ## Model Details
66
+
67
+ ### Model Description
68
+ - **Model Type:** Sentence Transformer
69
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
70
+ - **Maximum Sequence Length:** 256 tokens
71
+ - **Output Dimensionality:** 384 dimensions
72
+ - **Similarity Function:** Cosine Similarity
73
+ <!-- - **Training Dataset:** Unknown -->
74
+ <!-- - **Language:** Unknown -->
75
+ <!-- - **License:** Unknown -->
76
+
77
+ ### Model Sources
78
+
79
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
80
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
81
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
82
+
83
+ ### Full Model Architecture
84
+
85
+ ```
86
+ SentenceTransformer(
87
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
88
+ (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})
89
+ (2): Normalize()
90
+ )
91
+ ```
92
+
93
+ ## Usage
94
+
95
+ ### Direct Usage (Sentence Transformers)
96
+
97
+ First install the Sentence Transformers library:
98
+
99
+ ```bash
100
+ pip install -U sentence-transformers
101
+ ```
102
+
103
+ Then you can load this model and run inference.
104
+ ```python
105
+ from sentence_transformers import SentenceTransformer
106
+
107
+ # Download from the 🤗 Hub
108
+ model = SentenceTransformer("LamaDiab/MiniLM-v2-v29-SemanticEngine")
109
+ # Run inference
110
+ sentences = [
111
+ 'triangle premium modern rug design',
112
+ 'premium modern rug',
113
+ 'behind the lights',
114
+ ]
115
+ embeddings = model.encode(sentences)
116
+ print(embeddings.shape)
117
+ # [3, 384]
118
+
119
+ # Get the similarity scores for the embeddings
120
+ similarities = model.similarity(embeddings, embeddings)
121
+ print(similarities)
122
+ # tensor([[1.0000, 0.8321, 0.1951],
123
+ # [0.8321, 1.0000, 0.2235],
124
+ # [0.1951, 0.2235, 1.0000]])
125
+ ```
126
+
127
+ <!--
128
+ ### Direct Usage (Transformers)
129
+
130
+ <details><summary>Click to see the direct usage in Transformers</summary>
131
+
132
+ </details>
133
+ -->
134
+
135
+ <!--
136
+ ### Downstream Usage (Sentence Transformers)
137
+
138
+ You can finetune this model on your own dataset.
139
+
140
+ <details><summary>Click to expand</summary>
141
+
142
+ </details>
143
+ -->
144
+
145
+ <!--
146
+ ### Out-of-Scope Use
147
+
148
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
149
+ -->
150
+
151
+ ## Evaluation
152
+
153
+ ### Metrics
154
+
155
+ #### Triplet
156
+
157
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
158
+
159
+ | Metric | Value |
160
+ |:--------------------|:-----------|
161
+ | **cosine_accuracy** | **0.9773** |
162
+
163
+ <!--
164
+ ## Bias, Risks and Limitations
165
+
166
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
167
+ -->
168
+
169
+ <!--
170
+ ### Recommendations
171
+
172
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
173
+ -->
174
+
175
+ ## Training Details
176
+
177
+ ### Training Dataset
178
+
179
+ #### Unnamed Dataset
180
+
181
+ * Size: 799,002 training samples
182
+ * Columns: <code>anchor</code>, <code>positive</code>, <code>itemCategory</code>, and <code>shoppingSubCategory_normalized</code>
183
+ * Approximate statistics based on the first 1000 samples:
184
+ | | anchor | positive | itemCategory | shoppingSubCategory_normalized |
185
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:-------------------------------------------------------------------------------|
186
+ | type | string | string | string | string |
187
+ | details | <ul><li>min: 3 tokens</li><li>mean: 11.08 tokens</li><li>max: 97 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 5.91 tokens</li><li>max: 102 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.88 tokens</li><li>max: 9 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.9 tokens</li><li>max: 7 tokens</li></ul> |
188
+ * Samples:
189
+ | anchor | positive | itemCategory | shoppingSubCategory_normalized |
190
+ |:------------------------------------------------|:------------------------------------------------|:------------------------------|:------------------------------------|
191
+ | <code>nivea cream 150 ml</code> | <code>body cream</code> | <code>body moisturizer</code> | <code>Skincare</code> |
192
+ | <code>randel waxed canvas backpack – tan</code> | <code>padded laptop compartment backpack</code> | <code>bag</code> | <code>Accessories</code> |
193
+ | <code>stuffed chicken toast</code> | <code>chicken</code> | <code>meat and poultry</code> | <code>Restaurants & Cuisines</code> |
194
+ * Loss: [<code>MultipleNegativesSymmetricRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativessymmetricrankingloss) with these parameters:
195
+ ```json
196
+ {
197
+ "scale": 20.0,
198
+ "similarity_fct": "cos_sim",
199
+ "gather_across_devices": false
200
+ }
201
+ ```
202
+
203
+ ### Evaluation Dataset
204
+
205
+ #### Unnamed Dataset
206
+
207
+ * Size: 9,381 evaluation samples
208
+ * Columns: <code>anchor</code>, <code>positive</code>, <code>negative</code>, <code>itemCategory</code>, and <code>shoppingSubCategory_normalized</code>
209
+ * Approximate statistics based on the first 1000 samples:
210
+ | | anchor | positive | negative | itemCategory | shoppingSubCategory_normalized |
211
+ |:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
212
+ | type | string | string | string | string | string |
213
+ | details | <ul><li>min: 3 tokens</li><li>mean: 9.55 tokens</li><li>max: 43 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 6.31 tokens</li><li>max: 150 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 9.02 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.78 tokens</li><li>max: 8 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.82 tokens</li><li>max: 6 tokens</li></ul> |
214
+ * Samples:
215
+ | anchor | positive | negative | itemCategory | shoppingSubCategory_normalized |
216
+ |:---------------------------------------------------------------------|:-------------------------------------------|:------------------------------------------|:------------------------------------|:-------------------------------|
217
+ | <code>pilot mechanical pencil progrex h-127 - 0.7 mm</code> | <code>office supplies</code> | <code>lilac clouds kids prayer mat</code> | <code>pencil</code> | <code>Office Supplies</code> |
218
+ | <code>superior drawing marker -pen - set of 12 colors - 2 nib</code> | <code>superior drawing marker</code> | <code>luminous horror mask</code> | <code>marker</code> | <code>Office Supplies</code> |
219
+ | <code>first person singular author: haruki murakami</code> | <code>penguin random house usa book</code> | <code>west el balad tablecloth</code> | <code>literature and fiction</code> | <code>Books</code> |
220
+ * Loss: [<code>MultipleNegativesSymmetricRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativessymmetricrankingloss) with these parameters:
221
+ ```json
222
+ {
223
+ "scale": 20.0,
224
+ "similarity_fct": "cos_sim",
225
+ "gather_across_devices": false
226
+ }
227
+ ```
228
+
229
+ ### Training Hyperparameters
230
+ #### Non-Default Hyperparameters
231
+
232
+ - `eval_strategy`: steps
233
+ - `per_device_train_batch_size`: 256
234
+ - `per_device_eval_batch_size`: 256
235
+ - `learning_rate`: 3e-05
236
+ - `weight_decay`: 0.01
237
+ - `warmup_ratio`: 0.1
238
+ - `fp16`: True
239
+ - `dataloader_num_workers`: 1
240
+ - `dataloader_prefetch_factor`: 2
241
+ - `dataloader_persistent_workers`: True
242
+ - `push_to_hub`: True
243
+ - `hub_model_id`: LamaDiab/MiniLM-v2-v29-SemanticEngine
244
+ - `hub_strategy`: all_checkpoints
245
+
246
+ #### All Hyperparameters
247
+ <details><summary>Click to expand</summary>
248
+
249
+ - `overwrite_output_dir`: False
250
+ - `do_predict`: False
251
+ - `eval_strategy`: steps
252
+ - `prediction_loss_only`: True
253
+ - `per_device_train_batch_size`: 256
254
+ - `per_device_eval_batch_size`: 256
255
+ - `per_gpu_train_batch_size`: None
256
+ - `per_gpu_eval_batch_size`: None
257
+ - `gradient_accumulation_steps`: 1
258
+ - `eval_accumulation_steps`: None
259
+ - `torch_empty_cache_steps`: None
260
+ - `learning_rate`: 3e-05
261
+ - `weight_decay`: 0.01
262
+ - `adam_beta1`: 0.9
263
+ - `adam_beta2`: 0.999
264
+ - `adam_epsilon`: 1e-08
265
+ - `max_grad_norm`: 1.0
266
+ - `num_train_epochs`: 3
267
+ - `max_steps`: -1
268
+ - `lr_scheduler_type`: linear
269
+ - `lr_scheduler_kwargs`: {}
270
+ - `warmup_ratio`: 0.1
271
+ - `warmup_steps`: 0
272
+ - `log_level`: passive
273
+ - `log_level_replica`: warning
274
+ - `log_on_each_node`: True
275
+ - `logging_nan_inf_filter`: True
276
+ - `save_safetensors`: True
277
+ - `save_on_each_node`: False
278
+ - `save_only_model`: False
279
+ - `restore_callback_states_from_checkpoint`: False
280
+ - `no_cuda`: False
281
+ - `use_cpu`: False
282
+ - `use_mps_device`: False
283
+ - `seed`: 42
284
+ - `data_seed`: None
285
+ - `jit_mode_eval`: False
286
+ - `use_ipex`: False
287
+ - `bf16`: False
288
+ - `fp16`: True
289
+ - `fp16_opt_level`: O1
290
+ - `half_precision_backend`: auto
291
+ - `bf16_full_eval`: False
292
+ - `fp16_full_eval`: False
293
+ - `tf32`: None
294
+ - `local_rank`: 0
295
+ - `ddp_backend`: None
296
+ - `tpu_num_cores`: None
297
+ - `tpu_metrics_debug`: False
298
+ - `debug`: []
299
+ - `dataloader_drop_last`: False
300
+ - `dataloader_num_workers`: 1
301
+ - `dataloader_prefetch_factor`: 2
302
+ - `past_index`: -1
303
+ - `disable_tqdm`: False
304
+ - `remove_unused_columns`: True
305
+ - `label_names`: None
306
+ - `load_best_model_at_end`: False
307
+ - `ignore_data_skip`: False
308
+ - `fsdp`: []
309
+ - `fsdp_min_num_params`: 0
310
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
311
+ - `fsdp_transformer_layer_cls_to_wrap`: None
312
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
313
+ - `deepspeed`: None
314
+ - `label_smoothing_factor`: 0.0
315
+ - `optim`: adamw_torch
316
+ - `optim_args`: None
317
+ - `adafactor`: False
318
+ - `group_by_length`: False
319
+ - `length_column_name`: length
320
+ - `ddp_find_unused_parameters`: None
321
+ - `ddp_bucket_cap_mb`: None
322
+ - `ddp_broadcast_buffers`: False
323
+ - `dataloader_pin_memory`: True
324
+ - `dataloader_persistent_workers`: True
325
+ - `skip_memory_metrics`: True
326
+ - `use_legacy_prediction_loop`: False
327
+ - `push_to_hub`: True
328
+ - `resume_from_checkpoint`: None
329
+ - `hub_model_id`: LamaDiab/MiniLM-v2-v29-SemanticEngine
330
+ - `hub_strategy`: all_checkpoints
331
+ - `hub_private_repo`: None
332
+ - `hub_always_push`: False
333
+ - `hub_revision`: None
334
+ - `gradient_checkpointing`: False
335
+ - `gradient_checkpointing_kwargs`: None
336
+ - `include_inputs_for_metrics`: False
337
+ - `include_for_metrics`: []
338
+ - `eval_do_concat_batches`: True
339
+ - `fp16_backend`: auto
340
+ - `push_to_hub_model_id`: None
341
+ - `push_to_hub_organization`: None
342
+ - `mp_parameters`:
343
+ - `auto_find_batch_size`: False
344
+ - `full_determinism`: False
345
+ - `torchdynamo`: None
346
+ - `ray_scope`: last
347
+ - `ddp_timeout`: 1800
348
+ - `torch_compile`: False
349
+ - `torch_compile_backend`: None
350
+ - `torch_compile_mode`: None
351
+ - `include_tokens_per_second`: False
352
+ - `include_num_input_tokens_seen`: False
353
+ - `neftune_noise_alpha`: None
354
+ - `optim_target_modules`: None
355
+ - `batch_eval_metrics`: False
356
+ - `eval_on_start`: False
357
+ - `use_liger_kernel`: False
358
+ - `liger_kernel_config`: None
359
+ - `eval_use_gather_object`: False
360
+ - `average_tokens_across_devices`: False
361
+ - `prompts`: None
362
+ - `batch_sampler`: batch_sampler
363
+ - `multi_dataset_batch_sampler`: proportional
364
+ - `router_mapping`: {}
365
+ - `learning_rate_mapping`: {}
366
+
367
+ </details>
368
+
369
+ ### Training Logs
370
+ | Epoch | Step | Training Loss | Validation Loss | cosine_accuracy |
371
+ |:------:|:----:|:-------------:|:---------------:|:---------------:|
372
+ | 0.0003 | 1 | 2.2696 | - | - |
373
+ | 0.3203 | 1000 | 1.6542 | 0.5916 | 0.9642 |
374
+ | 0.6406 | 2000 | 1.0828 | 0.5482 | 0.9689 |
375
+ | 0.9609 | 3000 | 0.8294 | 0.5289 | 0.9719 |
376
+ | 1.2810 | 4000 | 0.762 | 0.5255 | 0.9752 |
377
+ | 1.6012 | 5000 | 0.7273 | 0.5073 | 0.9756 |
378
+ | 1.9213 | 6000 | 0.6962 | 0.4961 | 0.9773 |
379
+
380
+
381
+ ### Framework Versions
382
+ - Python: 3.11.13
383
+ - Sentence Transformers: 5.1.2
384
+ - Transformers: 4.53.3
385
+ - PyTorch: 2.6.0+cu124
386
+ - Accelerate: 1.9.0
387
+ - Datasets: 4.4.1
388
+ - Tokenizers: 0.21.2
389
+
390
+ ## Citation
391
+
392
+ ### BibTeX
393
+
394
+ #### Sentence Transformers
395
+ ```bibtex
396
+ @inproceedings{reimers-2019-sentence-bert,
397
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
398
+ author = "Reimers, Nils and Gurevych, Iryna",
399
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
400
+ month = "11",
401
+ year = "2019",
402
+ publisher = "Association for Computational Linguistics",
403
+ url = "https://arxiv.org/abs/1908.10084",
404
+ }
405
+ ```
406
+
407
+ <!--
408
+ ## Glossary
409
+
410
+ *Clearly define terms in order to be accessible across audiences.*
411
+ -->
412
+
413
+ <!--
414
+ ## Model Card Authors
415
+
416
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
417
+ -->
418
+
419
+ <!--
420
+ ## Model Card Contact
421
+
422
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
423
+ -->
checkpoint-6246/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-6246/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-6246/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e064f37d846634148902e795e10b44a380bd2ebd42dfe98bbbf7e60f4399a51b
3
+ size 90864192
checkpoint-6246/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-6246/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2cdb8f05e74d951f82d9e0307605ce1dfa6630fba36d0ee6e0f0bc3c5171a25
3
+ size 180607738
checkpoint-6246/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0829fd0d242a094152bcfcff11ab6d4a50e0310288a55616d6b182e66f1e878
3
+ size 14244
checkpoint-6246/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5e13be4012b91fc16148a767bc7113e36943dfee37dcc5a5665d2f2dbde9da7
3
+ size 988
checkpoint-6246/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3210ba1a1e4abbdf773d5cba8e0efb02acbbe5e73517122e46881a407484e9b
3
+ size 1064
checkpoint-6246/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
checkpoint-6246/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-6246/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-6246/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-6246/trainer_state.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.0,
6
+ "eval_steps": 1000,
7
+ "global_step": 6246,
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.00032030749519538755,
14
+ "grad_norm": 6.107327938079834,
15
+ "learning_rate": 0.0,
16
+ "loss": 2.2696,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.3203074951953876,
21
+ "grad_norm": 3.857839345932007,
22
+ "learning_rate": 2.977933325424131e-05,
23
+ "loss": 1.6542,
24
+ "step": 1000
25
+ },
26
+ {
27
+ "epoch": 0.3203074951953876,
28
+ "eval_cosine_accuracy": 0.9641829133033752,
29
+ "eval_loss": 0.5915806889533997,
30
+ "eval_runtime": 28.6636,
31
+ "eval_samples_per_second": 327.279,
32
+ "eval_steps_per_second": 1.291,
33
+ "step": 1000
34
+ },
35
+ {
36
+ "epoch": 0.6406149903907752,
37
+ "grad_norm": 3.1807026863098145,
38
+ "learning_rate": 2.6220192193617276e-05,
39
+ "loss": 1.0828,
40
+ "step": 2000
41
+ },
42
+ {
43
+ "epoch": 0.6406149903907752,
44
+ "eval_cosine_accuracy": 0.9688732624053955,
45
+ "eval_loss": 0.5482337474822998,
46
+ "eval_runtime": 27.6361,
47
+ "eval_samples_per_second": 339.447,
48
+ "eval_steps_per_second": 1.339,
49
+ "step": 2000
50
+ },
51
+ {
52
+ "epoch": 0.9609224855861627,
53
+ "grad_norm": 4.243162155151367,
54
+ "learning_rate": 2.2661051132993238e-05,
55
+ "loss": 0.8294,
56
+ "step": 3000
57
+ },
58
+ {
59
+ "epoch": 0.9609224855861627,
60
+ "eval_cosine_accuracy": 0.971858024597168,
61
+ "eval_loss": 0.5288547277450562,
62
+ "eval_runtime": 27.5987,
63
+ "eval_samples_per_second": 339.908,
64
+ "eval_steps_per_second": 1.341,
65
+ "step": 3000
66
+ },
67
+ {
68
+ "epoch": 1.2810499359795133,
69
+ "grad_norm": 5.0122575759887695,
70
+ "learning_rate": 1.910902835449045e-05,
71
+ "loss": 0.762,
72
+ "step": 4000
73
+ },
74
+ {
75
+ "epoch": 1.2810499359795133,
76
+ "eval_cosine_accuracy": 0.9751625657081604,
77
+ "eval_loss": 0.5255293250083923,
78
+ "eval_runtime": 27.7311,
79
+ "eval_samples_per_second": 338.284,
80
+ "eval_steps_per_second": 1.334,
81
+ "step": 4000
82
+ },
83
+ {
84
+ "epoch": 1.6011523687580027,
85
+ "grad_norm": 3.2703332901000977,
86
+ "learning_rate": 1.5549887293866415e-05,
87
+ "loss": 0.7273,
88
+ "step": 5000
89
+ },
90
+ {
91
+ "epoch": 1.6011523687580027,
92
+ "eval_cosine_accuracy": 0.9755889773368835,
93
+ "eval_loss": 0.5073443055152893,
94
+ "eval_runtime": 27.5769,
95
+ "eval_samples_per_second": 340.176,
96
+ "eval_steps_per_second": 1.342,
97
+ "step": 5000
98
+ },
99
+ {
100
+ "epoch": 1.9212548015364916,
101
+ "grad_norm": 3.8906168937683105,
102
+ "learning_rate": 1.1990746233242378e-05,
103
+ "loss": 0.6962,
104
+ "step": 6000
105
+ },
106
+ {
107
+ "epoch": 1.9212548015364916,
108
+ "eval_cosine_accuracy": 0.9772945046424866,
109
+ "eval_loss": 0.49614542722702026,
110
+ "eval_runtime": 27.8537,
111
+ "eval_samples_per_second": 336.795,
112
+ "eval_steps_per_second": 1.328,
113
+ "step": 6000
114
+ }
115
+ ],
116
+ "logging_steps": 1000,
117
+ "max_steps": 9366,
118
+ "num_input_tokens_seen": 0,
119
+ "num_train_epochs": 3,
120
+ "save_steps": 500,
121
+ "stateful_callbacks": {
122
+ "TrainerControl": {
123
+ "args": {
124
+ "should_epoch_stop": false,
125
+ "should_evaluate": false,
126
+ "should_log": false,
127
+ "should_save": true,
128
+ "should_training_stop": false
129
+ },
130
+ "attributes": {}
131
+ }
132
+ },
133
+ "total_flos": 0.0,
134
+ "train_batch_size": 256,
135
+ "trial_name": null,
136
+ "trial_params": null
137
+ }
checkpoint-6246/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e89c404d129a77514a3689d20a25f924b20b941c39145a97df5b56435a09be9
3
+ size 5752
checkpoint-6246/vocab.txt ADDED
The diff for this file is too large to render. See raw diff