radoslavralev commited on
Commit
a6ac9d1
·
verified ·
1 Parent(s): 4fdc641

Add new SentenceTransformer model

Browse files
Files changed (1) hide show
  1. README.md +349 -73
README.md CHANGED
@@ -5,38 +5,114 @@ tags:
5
  - feature-extraction
6
  - dense
7
  - generated_from_trainer
8
- - dataset_size:100000
9
  - loss:MultipleNegativesRankingLoss
10
  base_model: prajjwal1/bert-small
11
  widget:
12
- - source_sentence: How do I polish my English skills?
 
13
  sentences:
14
- - How can we polish English skills?
15
- - Why should I move to Israel as a Jew?
16
- - What are vitamins responsible for?
17
- - source_sentence: Can I use the Kozuka Gothic Pro font as a font-face on my web site?
 
 
18
  sentences:
19
- - Can I use the Kozuka Gothic Pro font as a font-face on my web site?
20
- - Why are Google, Facebook, YouTube and other social networking sites banned in
21
- China?
22
- - What font is used in Bloomberg Terminal?
23
- - source_sentence: Is Quora the best Q&A site?
24
  sentences:
25
- - What was the best Quora question ever?
26
- - Is Quora the best inquiry site?
27
- - Where do I buy Oway hair products online?
28
- - source_sentence: How can I customize my walking speed on Google Maps?
 
 
29
  sentences:
30
- - How do I bring back Google maps icon in my home screen?
31
- - How many pages are there in all the Harry Potter books combined?
32
- - How can I customize my walking speed on Google Maps?
33
- - source_sentence: DId something exist before the Big Bang?
 
 
 
34
  sentences:
35
- - How can I improve my memory problem?
36
- - Where can I buy Fairy Tail Manga?
37
- - Is there a scientific name for what existed before the Big Bang?
 
38
  pipeline_tag: sentence-similarity
39
  library_name: sentence-transformers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  ---
41
 
42
  # SentenceTransformer based on prajjwal1/bert-small
@@ -85,12 +161,12 @@ Then you can load this model and run inference.
85
  from sentence_transformers import SentenceTransformer
86
 
87
  # Download from the 🤗 Hub
88
- model = SentenceTransformer("sentence_transformers_model_id")
89
  # Run inference
90
  sentences = [
91
- 'DId something exist before the Big Bang?',
92
- 'Is there a scientific name for what existed before the Big Bang?',
93
- 'Where can I buy Fairy Tail Manga?',
94
  ]
95
  embeddings = model.encode(sentences)
96
  print(embeddings.shape)
@@ -99,9 +175,9 @@ print(embeddings.shape)
99
  # Get the similarity scores for the embeddings
100
  similarities = model.similarity(embeddings, embeddings)
101
  print(similarities)
102
- # tensor([[ 1.0000, 0.7596, -0.0398],
103
- # [ 0.7596, 1.0000, -0.0308],
104
- # [-0.0398, -0.0308, 1.0000]])
105
  ```
106
 
107
  <!--
@@ -128,6 +204,32 @@ You can finetune this model on your own dataset.
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
 
@@ -146,19 +248,45 @@ You can finetune this model on your own dataset.
146
 
147
  #### Unnamed Dataset
148
 
149
- * Size: 100,000 training samples
150
- * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>sentence_2</code>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  * Approximate statistics based on the first 1000 samples:
152
- | | sentence_0 | sentence_1 | sentence_2 |
153
- |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
154
- | type | string | string | string |
155
- | details | <ul><li>min: 3 tokens</li><li>mean: 15.53 tokens</li><li>max: 59 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 15.5 tokens</li><li>max: 59 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.87 tokens</li><li>max: 128 tokens</li></ul> |
156
  * Samples:
157
- | sentence_0 | sentence_1 | sentence_2 |
158
- |:----------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:-----------------------------------------------------------------------|
159
- | <code>Is there visitor entry facility in Jaipur airport. How much is the ticket?</code> | <code>Is there visitor entry facility in Jaipur airport. How much is the ticket?</code> | <code>How much is the airport tax in bogota?</code> |
160
- | <code>Which concept is more important: good planning or hard work?</code> | <code>Which concept is more important: good planning or hard work?</code> | <code>What is important in life: luck or hard work?</code> |
161
- | <code>What is the most efficient way to make money?</code> | <code>How can I make my money make money?</code> | <code>What can one learn about Quantum Mechanics in 10 minutes?</code> |
162
  * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
163
  ```json
164
  {
@@ -171,36 +299,49 @@ You can finetune this model on your own dataset.
171
  ### Training Hyperparameters
172
  #### Non-Default Hyperparameters
173
 
174
- - `per_device_train_batch_size`: 64
175
- - `per_device_eval_batch_size`: 64
 
 
 
 
 
176
  - `fp16`: True
177
- - `multi_dataset_batch_sampler`: round_robin
 
 
 
 
 
 
 
 
178
 
179
  #### All Hyperparameters
180
  <details><summary>Click to expand</summary>
181
 
182
  - `overwrite_output_dir`: False
183
  - `do_predict`: False
184
- - `eval_strategy`: no
185
  - `prediction_loss_only`: True
186
- - `per_device_train_batch_size`: 64
187
- - `per_device_eval_batch_size`: 64
188
  - `per_gpu_train_batch_size`: None
189
  - `per_gpu_eval_batch_size`: None
190
  - `gradient_accumulation_steps`: 1
191
  - `eval_accumulation_steps`: None
192
  - `torch_empty_cache_steps`: None
193
- - `learning_rate`: 5e-05
194
- - `weight_decay`: 0.0
195
  - `adam_beta1`: 0.9
196
  - `adam_beta2`: 0.999
197
  - `adam_epsilon`: 1e-08
198
- - `max_grad_norm`: 1
199
- - `num_train_epochs`: 3
200
- - `max_steps`: -1
201
  - `lr_scheduler_type`: linear
202
  - `lr_scheduler_kwargs`: {}
203
- - `warmup_ratio`: 0.0
204
  - `warmup_steps`: 0
205
  - `log_level`: passive
206
  - `log_level_replica`: warning
@@ -228,14 +369,14 @@ You can finetune this model on your own dataset.
228
  - `tpu_num_cores`: None
229
  - `tpu_metrics_debug`: False
230
  - `debug`: []
231
- - `dataloader_drop_last`: False
232
- - `dataloader_num_workers`: 0
233
- - `dataloader_prefetch_factor`: None
234
  - `past_index`: -1
235
  - `disable_tqdm`: False
236
  - `remove_unused_columns`: True
237
  - `label_names`: None
238
- - `load_best_model_at_end`: False
239
  - `ignore_data_skip`: False
240
  - `fsdp`: []
241
  - `fsdp_min_num_params`: 0
@@ -245,23 +386,23 @@ You can finetune this model on your own dataset.
245
  - `parallelism_config`: None
246
  - `deepspeed`: None
247
  - `label_smoothing_factor`: 0.0
248
- - `optim`: adamw_torch_fused
249
  - `optim_args`: None
250
  - `adafactor`: False
251
  - `group_by_length`: False
252
  - `length_column_name`: length
253
  - `project`: huggingface
254
  - `trackio_space_id`: trackio
255
- - `ddp_find_unused_parameters`: None
256
  - `ddp_bucket_cap_mb`: None
257
  - `ddp_broadcast_buffers`: False
258
  - `dataloader_pin_memory`: True
259
  - `dataloader_persistent_workers`: False
260
  - `skip_memory_metrics`: True
261
  - `use_legacy_prediction_loop`: False
262
- - `push_to_hub`: False
263
  - `resume_from_checkpoint`: None
264
- - `hub_model_id`: None
265
  - `hub_strategy`: every_save
266
  - `hub_private_repo`: None
267
  - `hub_always_push`: False
@@ -288,32 +429,167 @@ You can finetune this model on your own dataset.
288
  - `neftune_noise_alpha`: None
289
  - `optim_target_modules`: None
290
  - `batch_eval_metrics`: False
291
- - `eval_on_start`: False
292
  - `use_liger_kernel`: False
293
  - `liger_kernel_config`: None
294
  - `eval_use_gather_object`: False
295
  - `average_tokens_across_devices`: True
296
  - `prompts`: None
297
  - `batch_sampler`: batch_sampler
298
- - `multi_dataset_batch_sampler`: round_robin
299
  - `router_mapping`: {}
300
  - `learning_rate_mapping`: {}
301
 
302
  </details>
303
 
304
  ### Training Logs
305
- | Epoch | Step | Training Loss |
306
- |:------:|:----:|:-------------:|
307
- | 0.3199 | 500 | 0.2284 |
308
- | 0.6398 | 1000 | 0.0571 |
309
- | 0.9597 | 1500 | 0.0486 |
310
- | 1.2796 | 2000 | 0.0378 |
311
- | 1.5995 | 2500 | 0.0367 |
312
- | 1.9194 | 3000 | 0.0338 |
313
- | 2.2393 | 3500 | 0.0327 |
314
- | 2.5592 | 4000 | 0.0285 |
315
- | 2.8791 | 4500 | 0.0285 |
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
 
318
  ### Framework Versions
319
  - Python: 3.10.18
 
5
  - feature-extraction
6
  - dense
7
  - generated_from_trainer
8
+ - dataset_size:359997
9
  - loss:MultipleNegativesRankingLoss
10
  base_model: prajjwal1/bert-small
11
  widget:
12
+ - source_sentence: When do you use Ms. or Mrs.? Is one for a married woman and one
13
+ for one that's not married? Which one is for what?
14
  sentences:
15
+ - When do you use Ms. or Mrs.? Is one for a married woman and one for one that's
16
+ not married? Which one is for what?
17
+ - Nations that do/does otherwise? Which one do I use?
18
+ - What is the best way to make money on Quora?
19
+ - source_sentence: Which ointment is applied to the face of UFC fighters at the commencement
20
+ of a bout? What does it do?
21
  sentences:
22
+ - Why don't bikes have a gear indicator?
23
+ - Which ointment is applied to the face of UFC fighters at the commencement of a
24
+ bout? What does it do?
25
+ - How do I get the body of a UFC Fighter?
26
+ - source_sentence: Do you love the life you live?
27
  sentences:
28
+ - How can I save a Snapchat video that others posted?
29
+ - Do you love the life you're living?
30
+ - What is the best way to find a person just using their phone by trying to track
31
+ the other persons phone and get a location from it?
32
+ - source_sentence: Can I do shoulder and triceps workout on same day? What other combinations
33
+ like this can I do?
34
  sentences:
35
+ - Can gym just 3 days/week. Is it better to do full body workouts on those 3 days
36
+ or should I split it into Chest-triceps, Back-biceps, Legs-shoulders?
37
+ - How do I die and make it look like an accident?
38
+ - Can I do shoulder and triceps workout on same day? What other combinations like
39
+ this can I do?
40
+ - source_sentence: Ordered food on Swiggy 3 days ago.After accepting my money, said
41
+ no more on Menu! When if ever will I atleast get refund in cr card a/c?
42
  sentences:
43
+ - What is a cheap healthy diet I can keep the same and eat every day?
44
+ - Is getting to the Tel Aviv airport to catch a 5:30 AM flight very expensive?
45
+ - Ordered food on Swiggy 3 days ago.After accepting my money, said no more on Menu!
46
+ When if ever will I atleast get refund in cr card a/c?
47
  pipeline_tag: sentence-similarity
48
  library_name: sentence-transformers
49
+ metrics:
50
+ - cosine_accuracy@1
51
+ - cosine_accuracy@3
52
+ - cosine_accuracy@5
53
+ - cosine_precision@1
54
+ - cosine_precision@3
55
+ - cosine_precision@5
56
+ - cosine_recall@1
57
+ - cosine_recall@3
58
+ - cosine_recall@5
59
+ - cosine_ndcg@10
60
+ - cosine_mrr@1
61
+ - cosine_mrr@5
62
+ - cosine_mrr@10
63
+ - cosine_map@100
64
+ model-index:
65
+ - name: SentenceTransformer based on prajjwal1/bert-small
66
+ results:
67
+ - task:
68
+ type: information-retrieval
69
+ name: Information Retrieval
70
+ dataset:
71
+ name: val
72
+ type: val
73
+ metrics:
74
+ - type: cosine_accuracy@1
75
+ value: 0.829675
76
+ name: Cosine Accuracy@1
77
+ - type: cosine_accuracy@3
78
+ value: 0.9048
79
+ name: Cosine Accuracy@3
80
+ - type: cosine_accuracy@5
81
+ value: 0.93245
82
+ name: Cosine Accuracy@5
83
+ - type: cosine_precision@1
84
+ value: 0.829675
85
+ name: Cosine Precision@1
86
+ - type: cosine_precision@3
87
+ value: 0.3016
88
+ name: Cosine Precision@3
89
+ - type: cosine_precision@5
90
+ value: 0.18649000000000004
91
+ name: Cosine Precision@5
92
+ - type: cosine_recall@1
93
+ value: 0.829675
94
+ name: Cosine Recall@1
95
+ - type: cosine_recall@3
96
+ value: 0.9048
97
+ name: Cosine Recall@3
98
+ - type: cosine_recall@5
99
+ value: 0.93245
100
+ name: Cosine Recall@5
101
+ - type: cosine_ndcg@10
102
+ value: 0.8957919450437679
103
+ name: Cosine Ndcg@10
104
+ - type: cosine_mrr@1
105
+ value: 0.829675
106
+ name: Cosine Mrr@1
107
+ - type: cosine_mrr@5
108
+ value: 0.8693824999999958
109
+ name: Cosine Mrr@5
110
+ - type: cosine_mrr@10
111
+ value: 0.8737714285714238
112
+ name: Cosine Mrr@10
113
+ - type: cosine_map@100
114
+ value: 0.8758361833602419
115
+ name: Cosine Map@100
116
  ---
117
 
118
  # SentenceTransformer based on prajjwal1/bert-small
 
161
  from sentence_transformers import SentenceTransformer
162
 
163
  # Download from the 🤗 Hub
164
+ model = SentenceTransformer("redis/model-a-baseline")
165
  # Run inference
166
  sentences = [
167
+ 'Ordered food on Swiggy 3 days ago.After accepting my money, said no more on Menu! When if ever will I atleast get refund in cr card a/c?',
168
+ 'Ordered food on Swiggy 3 days ago.After accepting my money, said no more on Menu! When if ever will I atleast get refund in cr card a/c?',
169
+ 'Is getting to the Tel Aviv airport to catch a 5:30 AM flight very expensive?',
170
  ]
171
  embeddings = model.encode(sentences)
172
  print(embeddings.shape)
 
175
  # Get the similarity scores for the embeddings
176
  similarities = model.similarity(embeddings, embeddings)
177
  print(similarities)
178
+ # tensor([[1.0000, 1.0000, 0.1381],
179
+ # [1.0000, 1.0000, 0.1381],
180
+ # [0.1381, 0.1381, 1.0000]])
181
  ```
182
 
183
  <!--
 
204
  *List how the model may foreseeably be misused and address what users ought not to do with the model.*
205
  -->
206
 
207
+ ## Evaluation
208
+
209
+ ### Metrics
210
+
211
+ #### Information Retrieval
212
+
213
+ * Dataset: `val`
214
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
215
+
216
+ | Metric | Value |
217
+ |:-------------------|:-----------|
218
+ | cosine_accuracy@1 | 0.8297 |
219
+ | cosine_accuracy@3 | 0.9048 |
220
+ | cosine_accuracy@5 | 0.9325 |
221
+ | cosine_precision@1 | 0.8297 |
222
+ | cosine_precision@3 | 0.3016 |
223
+ | cosine_precision@5 | 0.1865 |
224
+ | cosine_recall@1 | 0.8297 |
225
+ | cosine_recall@3 | 0.9048 |
226
+ | cosine_recall@5 | 0.9325 |
227
+ | **cosine_ndcg@10** | **0.8958** |
228
+ | cosine_mrr@1 | 0.8297 |
229
+ | cosine_mrr@5 | 0.8694 |
230
+ | cosine_mrr@10 | 0.8738 |
231
+ | cosine_map@100 | 0.8758 |
232
+
233
  <!--
234
  ## Bias, Risks and Limitations
235
 
 
248
 
249
  #### Unnamed Dataset
250
 
251
+ * Size: 359,997 training samples
252
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
253
+ * Approximate statistics based on the first 1000 samples:
254
+ | | anchor | positive | negative |
255
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
256
+ | type | string | string | string |
257
+ | details | <ul><li>min: 4 tokens</li><li>mean: 15.46 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 15.52 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 17.07 tokens</li><li>max: 128 tokens</li></ul> |
258
+ * Samples:
259
+ | anchor | positive | negative |
260
+ |:--------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
261
+ | <code>Shall I upgrade my iPhone 5s to iOS 10 final version?</code> | <code>Should I upgrade an iPhone 5s to iOS 10?</code> | <code>How, if at all, is the accent, pitch and voice of gay men different than that of straight men and how accurate is voice in determining sexual orientation?</code> |
262
+ | <code>Is Donald Trump really going to be the president of United States?</code> | <code>Do you think Donald Trump could conceivably be the next President of the United States?</code> | <code>Can a 15-year-old boy and an 18-year-old girl have sex?</code> |
263
+ | <code>What are real tips to improve work life balance?</code> | <code>What are the best ways to create a work life balance?</code> | <code>How far is Miami from Fort Lauderdale?</code> |
264
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
265
+ ```json
266
+ {
267
+ "scale": 20.0,
268
+ "similarity_fct": "cos_sim",
269
+ "gather_across_devices": false
270
+ }
271
+ ```
272
+
273
+ ### Evaluation Dataset
274
+
275
+ #### Unnamed Dataset
276
+
277
+ * Size: 40,000 evaluation samples
278
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
279
  * Approximate statistics based on the first 1000 samples:
280
+ | | anchor | positive | negative |
281
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
282
+ | type | string | string | string |
283
+ | details | <ul><li>min: 6 tokens</li><li>mean: 15.71 tokens</li><li>max: 65 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.79 tokens</li><li>max: 65 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 16.82 tokens</li><li>max: 78 tokens</li></ul> |
284
  * Samples:
285
+ | anchor | positive | negative |
286
+ |:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------|
287
+ | <code>Why were feathered dinosaur fossils only found in the last 20 years?</code> | <code>Why were feathered dinosaur fossils only found in the last 20 years?</code> | <code>Why are only few people aware that many dinosaurs had feathers?</code> |
288
+ | <code>If FOX News is the conservative news station, which cable news network is for liberals/progressives?</code> | <code>If FOX News is the conservative news station, which cable news network is for liberals/progressives?</code> | <code>How much did Fox News and conservative leaning media networks stoke the anger that contributed to Donald Trump's popularity?</code> |
289
+ | <code>How can guys last longer during sex?</code> | <code>How do I last longer in sex?</code> | <code>Why does economics require calculus?</code> |
290
  * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
291
  ```json
292
  {
 
299
  ### Training Hyperparameters
300
  #### Non-Default Hyperparameters
301
 
302
+ - `eval_strategy`: steps
303
+ - `per_device_train_batch_size`: 256
304
+ - `per_device_eval_batch_size`: 256
305
+ - `learning_rate`: 2e-05
306
+ - `weight_decay`: 0.001
307
+ - `max_steps`: 14060
308
+ - `warmup_ratio`: 0.1
309
  - `fp16`: True
310
+ - `dataloader_drop_last`: True
311
+ - `dataloader_num_workers`: 1
312
+ - `dataloader_prefetch_factor`: 1
313
+ - `load_best_model_at_end`: True
314
+ - `optim`: adamw_torch
315
+ - `ddp_find_unused_parameters`: False
316
+ - `push_to_hub`: True
317
+ - `hub_model_id`: redis/model-a-baseline
318
+ - `eval_on_start`: True
319
 
320
  #### All Hyperparameters
321
  <details><summary>Click to expand</summary>
322
 
323
  - `overwrite_output_dir`: False
324
  - `do_predict`: False
325
+ - `eval_strategy`: steps
326
  - `prediction_loss_only`: True
327
+ - `per_device_train_batch_size`: 256
328
+ - `per_device_eval_batch_size`: 256
329
  - `per_gpu_train_batch_size`: None
330
  - `per_gpu_eval_batch_size`: None
331
  - `gradient_accumulation_steps`: 1
332
  - `eval_accumulation_steps`: None
333
  - `torch_empty_cache_steps`: None
334
+ - `learning_rate`: 2e-05
335
+ - `weight_decay`: 0.001
336
  - `adam_beta1`: 0.9
337
  - `adam_beta2`: 0.999
338
  - `adam_epsilon`: 1e-08
339
+ - `max_grad_norm`: 1.0
340
+ - `num_train_epochs`: 3.0
341
+ - `max_steps`: 14060
342
  - `lr_scheduler_type`: linear
343
  - `lr_scheduler_kwargs`: {}
344
+ - `warmup_ratio`: 0.1
345
  - `warmup_steps`: 0
346
  - `log_level`: passive
347
  - `log_level_replica`: warning
 
369
  - `tpu_num_cores`: None
370
  - `tpu_metrics_debug`: False
371
  - `debug`: []
372
+ - `dataloader_drop_last`: True
373
+ - `dataloader_num_workers`: 1
374
+ - `dataloader_prefetch_factor`: 1
375
  - `past_index`: -1
376
  - `disable_tqdm`: False
377
  - `remove_unused_columns`: True
378
  - `label_names`: None
379
+ - `load_best_model_at_end`: True
380
  - `ignore_data_skip`: False
381
  - `fsdp`: []
382
  - `fsdp_min_num_params`: 0
 
386
  - `parallelism_config`: None
387
  - `deepspeed`: None
388
  - `label_smoothing_factor`: 0.0
389
+ - `optim`: adamw_torch
390
  - `optim_args`: None
391
  - `adafactor`: False
392
  - `group_by_length`: False
393
  - `length_column_name`: length
394
  - `project`: huggingface
395
  - `trackio_space_id`: trackio
396
+ - `ddp_find_unused_parameters`: False
397
  - `ddp_bucket_cap_mb`: None
398
  - `ddp_broadcast_buffers`: False
399
  - `dataloader_pin_memory`: True
400
  - `dataloader_persistent_workers`: False
401
  - `skip_memory_metrics`: True
402
  - `use_legacy_prediction_loop`: False
403
+ - `push_to_hub`: True
404
  - `resume_from_checkpoint`: None
405
+ - `hub_model_id`: redis/model-a-baseline
406
  - `hub_strategy`: every_save
407
  - `hub_private_repo`: None
408
  - `hub_always_push`: False
 
429
  - `neftune_noise_alpha`: None
430
  - `optim_target_modules`: None
431
  - `batch_eval_metrics`: False
432
+ - `eval_on_start`: True
433
  - `use_liger_kernel`: False
434
  - `liger_kernel_config`: None
435
  - `eval_use_gather_object`: False
436
  - `average_tokens_across_devices`: True
437
  - `prompts`: None
438
  - `batch_sampler`: batch_sampler
439
+ - `multi_dataset_batch_sampler`: proportional
440
  - `router_mapping`: {}
441
  - `learning_rate_mapping`: {}
442
 
443
  </details>
444
 
445
  ### Training Logs
446
+ <details><summary>Click to expand</summary>
 
 
 
 
 
 
 
 
 
 
447
 
448
+ | Epoch | Step | Training Loss | Validation Loss | val_cosine_ndcg@10 |
449
+ |:------:|:-----:|:-------------:|:---------------:|:------------------:|
450
+ | 0 | 0 | - | 1.6256 | 0.8046 |
451
+ | 0.0711 | 100 | 1.9658 | 0.3149 | 0.8458 |
452
+ | 0.1422 | 200 | 0.4018 | 0.1192 | 0.8670 |
453
+ | 0.2134 | 300 | 0.1963 | 0.0916 | 0.8733 |
454
+ | 0.2845 | 400 | 0.163 | 0.0803 | 0.8766 |
455
+ | 0.3556 | 500 | 0.1397 | 0.0729 | 0.8783 |
456
+ | 0.4267 | 600 | 0.1261 | 0.0681 | 0.8798 |
457
+ | 0.4979 | 700 | 0.1181 | 0.0640 | 0.8810 |
458
+ | 0.5690 | 800 | 0.1166 | 0.0614 | 0.8818 |
459
+ | 0.6401 | 900 | 0.1068 | 0.0586 | 0.8829 |
460
+ | 0.7112 | 1000 | 0.1001 | 0.0564 | 0.8835 |
461
+ | 0.7824 | 1100 | 0.097 | 0.0549 | 0.8842 |
462
+ | 0.8535 | 1200 | 0.0941 | 0.0530 | 0.8844 |
463
+ | 0.9246 | 1300 | 0.0934 | 0.0515 | 0.8854 |
464
+ | 0.9957 | 1400 | 0.086 | 0.0499 | 0.8859 |
465
+ | 1.0669 | 1500 | 0.081 | 0.0482 | 0.8864 |
466
+ | 1.1380 | 1600 | 0.0778 | 0.0476 | 0.8868 |
467
+ | 1.2091 | 1700 | 0.0734 | 0.0459 | 0.8870 |
468
+ | 1.2802 | 1800 | 0.0744 | 0.0459 | 0.8872 |
469
+ | 1.3514 | 1900 | 0.0734 | 0.0447 | 0.8880 |
470
+ | 1.4225 | 2000 | 0.0695 | 0.0440 | 0.8883 |
471
+ | 1.4936 | 2100 | 0.0671 | 0.0438 | 0.8880 |
472
+ | 1.5647 | 2200 | 0.0703 | 0.0435 | 0.8884 |
473
+ | 1.6358 | 2300 | 0.0658 | 0.0425 | 0.8886 |
474
+ | 1.7070 | 2400 | 0.0695 | 0.0416 | 0.8894 |
475
+ | 1.7781 | 2500 | 0.0665 | 0.0413 | 0.8893 |
476
+ | 1.8492 | 2600 | 0.0648 | 0.0407 | 0.8896 |
477
+ | 1.9203 | 2700 | 0.0668 | 0.0405 | 0.8894 |
478
+ | 1.9915 | 2800 | 0.0636 | 0.0398 | 0.8902 |
479
+ | 2.0626 | 2900 | 0.0583 | 0.0394 | 0.8903 |
480
+ | 2.1337 | 3000 | 0.0583 | 0.0390 | 0.8903 |
481
+ | 2.2048 | 3100 | 0.0563 | 0.0385 | 0.8908 |
482
+ | 2.2760 | 3200 | 0.0588 | 0.0384 | 0.8910 |
483
+ | 2.3471 | 3300 | 0.0586 | 0.0383 | 0.8910 |
484
+ | 2.4182 | 3400 | 0.0557 | 0.0380 | 0.8907 |
485
+ | 2.4893 | 3500 | 0.0561 | 0.0378 | 0.8910 |
486
+ | 2.5605 | 3600 | 0.0557 | 0.0375 | 0.8912 |
487
+ | 2.6316 | 3700 | 0.0553 | 0.0371 | 0.8915 |
488
+ | 2.7027 | 3800 | 0.053 | 0.0371 | 0.8913 |
489
+ | 2.7738 | 3900 | 0.0562 | 0.0369 | 0.8916 |
490
+ | 2.8450 | 4000 | 0.0531 | 0.0368 | 0.8914 |
491
+ | 2.9161 | 4100 | 0.0522 | 0.0363 | 0.8918 |
492
+ | 2.9872 | 4200 | 0.0555 | 0.0363 | 0.8919 |
493
+ | 3.0583 | 4300 | 0.0524 | 0.0363 | 0.8921 |
494
+ | 3.1294 | 4400 | 0.0512 | 0.0356 | 0.8924 |
495
+ | 3.2006 | 4500 | 0.0503 | 0.0356 | 0.8922 |
496
+ | 3.2717 | 4600 | 0.0523 | 0.0355 | 0.8925 |
497
+ | 3.3428 | 4700 | 0.0524 | 0.0351 | 0.8925 |
498
+ | 3.4139 | 4800 | 0.0478 | 0.0351 | 0.8925 |
499
+ | 3.4851 | 4900 | 0.0506 | 0.0347 | 0.8929 |
500
+ | 3.5562 | 5000 | 0.0486 | 0.0344 | 0.8929 |
501
+ | 3.6273 | 5100 | 0.0496 | 0.0344 | 0.8929 |
502
+ | 3.6984 | 5200 | 0.0486 | 0.0345 | 0.8928 |
503
+ | 3.7696 | 5300 | 0.0441 | 0.0343 | 0.8928 |
504
+ | 3.8407 | 5400 | 0.0502 | 0.0342 | 0.8929 |
505
+ | 3.9118 | 5500 | 0.0498 | 0.0341 | 0.8931 |
506
+ | 3.9829 | 5600 | 0.0499 | 0.0342 | 0.8932 |
507
+ | 4.0541 | 5700 | 0.0483 | 0.0339 | 0.8933 |
508
+ | 4.1252 | 5800 | 0.046 | 0.0338 | 0.8933 |
509
+ | 4.1963 | 5900 | 0.0481 | 0.0337 | 0.8933 |
510
+ | 4.2674 | 6000 | 0.0435 | 0.0335 | 0.8936 |
511
+ | 4.3385 | 6100 | 0.0459 | 0.0335 | 0.8935 |
512
+ | 4.4097 | 6200 | 0.0467 | 0.0335 | 0.8933 |
513
+ | 4.4808 | 6300 | 0.0452 | 0.0334 | 0.8937 |
514
+ | 4.5519 | 6400 | 0.0436 | 0.0330 | 0.8940 |
515
+ | 4.6230 | 6500 | 0.0447 | 0.0329 | 0.8940 |
516
+ | 4.6942 | 6600 | 0.0474 | 0.0328 | 0.8940 |
517
+ | 4.7653 | 6700 | 0.0419 | 0.0328 | 0.8940 |
518
+ | 4.8364 | 6800 | 0.0456 | 0.0327 | 0.8939 |
519
+ | 4.9075 | 6900 | 0.0464 | 0.0328 | 0.8940 |
520
+ | 4.9787 | 7000 | 0.0432 | 0.0326 | 0.8940 |
521
+ | 5.0498 | 7100 | 0.0409 | 0.0326 | 0.8939 |
522
+ | 5.1209 | 7200 | 0.0411 | 0.0324 | 0.8941 |
523
+ | 5.1920 | 7300 | 0.0415 | 0.0326 | 0.8940 |
524
+ | 5.2632 | 7400 | 0.0424 | 0.0324 | 0.8943 |
525
+ | 5.3343 | 7500 | 0.0436 | 0.0324 | 0.8942 |
526
+ | 5.4054 | 7600 | 0.0431 | 0.0325 | 0.8942 |
527
+ | 5.4765 | 7700 | 0.0433 | 0.0324 | 0.8941 |
528
+ | 5.5477 | 7800 | 0.0421 | 0.0323 | 0.8943 |
529
+ | 5.6188 | 7900 | 0.0423 | 0.0321 | 0.8944 |
530
+ | 5.6899 | 8000 | 0.0427 | 0.0322 | 0.8947 |
531
+ | 5.7610 | 8100 | 0.0426 | 0.0321 | 0.8946 |
532
+ | 5.8321 | 8200 | 0.0415 | 0.0323 | 0.8944 |
533
+ | 5.9033 | 8300 | 0.0415 | 0.0320 | 0.8946 |
534
+ | 5.9744 | 8400 | 0.0403 | 0.0321 | 0.8947 |
535
+ | 6.0455 | 8500 | 0.0416 | 0.0318 | 0.8949 |
536
+ | 6.1166 | 8600 | 0.0391 | 0.0317 | 0.8949 |
537
+ | 6.1878 | 8700 | 0.0408 | 0.0316 | 0.8949 |
538
+ | 6.2589 | 8800 | 0.0405 | 0.0316 | 0.8950 |
539
+ | 6.3300 | 8900 | 0.041 | 0.0316 | 0.8950 |
540
+ | 6.4011 | 9000 | 0.041 | 0.0316 | 0.8947 |
541
+ | 6.4723 | 9100 | 0.0396 | 0.0315 | 0.8949 |
542
+ | 6.5434 | 9200 | 0.0416 | 0.0315 | 0.8949 |
543
+ | 6.6145 | 9300 | 0.0411 | 0.0315 | 0.8947 |
544
+ | 6.6856 | 9400 | 0.0387 | 0.0315 | 0.8948 |
545
+ | 6.7568 | 9500 | 0.0393 | 0.0315 | 0.8951 |
546
+ | 6.8279 | 9600 | 0.0379 | 0.0314 | 0.8951 |
547
+ | 6.8990 | 9700 | 0.0409 | 0.0313 | 0.8952 |
548
+ | 6.9701 | 9800 | 0.0417 | 0.0312 | 0.8952 |
549
+ | 7.0413 | 9900 | 0.0412 | 0.0312 | 0.8950 |
550
+ | 7.1124 | 10000 | 0.0386 | 0.0312 | 0.8951 |
551
+ | 7.1835 | 10100 | 0.0397 | 0.0312 | 0.8952 |
552
+ | 7.2546 | 10200 | 0.0396 | 0.0311 | 0.8953 |
553
+ | 7.3257 | 10300 | 0.0385 | 0.0312 | 0.8952 |
554
+ | 7.3969 | 10400 | 0.0364 | 0.0310 | 0.8952 |
555
+ | 7.4680 | 10500 | 0.0387 | 0.0310 | 0.8952 |
556
+ | 7.5391 | 10600 | 0.0356 | 0.0309 | 0.8953 |
557
+ | 7.6102 | 10700 | 0.0384 | 0.0310 | 0.8951 |
558
+ | 7.6814 | 10800 | 0.0381 | 0.0308 | 0.8953 |
559
+ | 7.7525 | 10900 | 0.0407 | 0.0309 | 0.8954 |
560
+ | 7.8236 | 11000 | 0.0398 | 0.0308 | 0.8955 |
561
+ | 7.8947 | 11100 | 0.0396 | 0.0307 | 0.8955 |
562
+ | 7.9659 | 11200 | 0.0381 | 0.0307 | 0.8957 |
563
+ | 8.0370 | 11300 | 0.0411 | 0.0308 | 0.8955 |
564
+ | 8.1081 | 11400 | 0.0377 | 0.0307 | 0.8955 |
565
+ | 8.1792 | 11500 | 0.0369 | 0.0307 | 0.8954 |
566
+ | 8.2504 | 11600 | 0.0355 | 0.0307 | 0.8956 |
567
+ | 8.3215 | 11700 | 0.0395 | 0.0307 | 0.8954 |
568
+ | 8.3926 | 11800 | 0.0376 | 0.0306 | 0.8956 |
569
+ | 8.4637 | 11900 | 0.0384 | 0.0307 | 0.8957 |
570
+ | 8.5349 | 12000 | 0.0369 | 0.0306 | 0.8957 |
571
+ | 8.6060 | 12100 | 0.0371 | 0.0306 | 0.8957 |
572
+ | 8.6771 | 12200 | 0.0343 | 0.0306 | 0.8957 |
573
+ | 8.7482 | 12300 | 0.0374 | 0.0305 | 0.8957 |
574
+ | 8.8193 | 12400 | 0.0376 | 0.0305 | 0.8957 |
575
+ | 8.8905 | 12500 | 0.0365 | 0.0305 | 0.8957 |
576
+ | 8.9616 | 12600 | 0.0373 | 0.0304 | 0.8957 |
577
+ | 9.0327 | 12700 | 0.0381 | 0.0305 | 0.8957 |
578
+ | 9.1038 | 12800 | 0.0356 | 0.0305 | 0.8956 |
579
+ | 9.1750 | 12900 | 0.0384 | 0.0305 | 0.8955 |
580
+ | 9.2461 | 13000 | 0.0369 | 0.0304 | 0.8956 |
581
+ | 9.3172 | 13100 | 0.0399 | 0.0304 | 0.8956 |
582
+ | 9.3883 | 13200 | 0.0382 | 0.0304 | 0.8957 |
583
+ | 9.4595 | 13300 | 0.0357 | 0.0304 | 0.8956 |
584
+ | 9.5306 | 13400 | 0.0375 | 0.0304 | 0.8957 |
585
+ | 9.6017 | 13500 | 0.0362 | 0.0304 | 0.8956 |
586
+ | 9.6728 | 13600 | 0.0374 | 0.0304 | 0.8957 |
587
+ | 9.7440 | 13700 | 0.0397 | 0.0304 | 0.8957 |
588
+ | 9.8151 | 13800 | 0.0385 | 0.0304 | 0.8957 |
589
+ | 9.8862 | 13900 | 0.0383 | 0.0304 | 0.8957 |
590
+ | 9.9573 | 14000 | 0.0384 | 0.0304 | 0.8958 |
591
+
592
+ </details>
593
 
594
  ### Framework Versions
595
  - Python: 3.10.18