radoslavralev commited on
Commit
111bc25
·
verified ·
1 Parent(s): 05aa77e

Add new SentenceTransformer model

Browse files
1_Pooling/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "word_embedding_dimension": 512,
3
  "pooling_mode_cls_token": true,
4
  "pooling_mode_mean_tokens": false,
5
  "pooling_mode_max_tokens": false,
 
1
  {
2
+ "word_embedding_dimension": 768,
3
  "pooling_mode_cls_token": true,
4
  "pooling_mode_mean_tokens": false,
5
  "pooling_mode_max_tokens": false,
README.md CHANGED
@@ -5,51 +5,124 @@ 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
43
 
44
- This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [prajjwal1/bert-small](https://huggingface.co/prajjwal1/bert-small). It maps sentences & paragraphs to a 512-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
45
 
46
  ## Model Details
47
 
48
  ### Model Description
49
  - **Model Type:** Sentence Transformer
50
- - **Base model:** [prajjwal1/bert-small](https://huggingface.co/prajjwal1/bert-small) <!-- at revision 0ec5f86f27c1a77d704439db5e01c307ea11b9d4 -->
51
  - **Maximum Sequence Length:** 128 tokens
52
- - **Output Dimensionality:** 512 dimensions
53
  - **Similarity Function:** Cosine Similarity
54
  <!-- - **Training Dataset:** Unknown -->
55
  <!-- - **Language:** Unknown -->
@@ -65,8 +138,8 @@ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [p
65
 
66
  ```
67
  SentenceTransformer(
68
- (0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'BertModel'})
69
- (1): Pooling({'word_embedding_dimension': 512, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
70
  )
71
  ```
72
 
@@ -85,23 +158,23 @@ 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)
97
- # [3, 512]
98
 
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 +201,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,23 +245,49 @@ 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
  {
165
- "scale": 20.0,
166
  "similarity_fct": "cos_sim",
167
  "gather_across_devices": false
168
  }
@@ -171,36 +296,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 +366,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 +383,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,31 +426,43 @@ 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
 
5
  - feature-extraction
6
  - dense
7
  - generated_from_trainer
8
+ - dataset_size:359997
9
  - loss:MultipleNegativesRankingLoss
10
+ base_model: Alibaba-NLP/gte-modernbert-base
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
+ - Why don't bikes have a gear indicator?
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
+ - How can I save a Snapchat video that others posted?
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
+ - Can I do shoulder and triceps workout on same day? What other combinations like
29
+ this can I do?
30
+ - Do you love the life you're living?
31
+ - Where can you find an online TI-84 calculator?
32
+ - source_sentence: Ordered food on Swiggy 3 days ago.After accepting my money, said
33
+ no more on Menu! When if ever will I atleast get refund in cr card a/c?
34
  sentences:
35
+ - Is getting to the Tel Aviv airport to catch a 5:30 AM flight very expensive?
36
+ - How do I die and make it look like an accident?
37
+ - Ordered food on Swiggy 3 days ago.After accepting my money, said no more on Menu!
38
+ When if ever will I atleast get refund in cr card a/c?
39
+ - source_sentence: How do you earn money on Quora?
40
  sentences:
41
+ - What is a cheap healthy diet I can keep the same and eat every day?
42
+ - What are some things new employees should know going into their first day at Maximus?
43
+ - What is the best way to make money on Quora?
44
  pipeline_tag: sentence-similarity
45
  library_name: sentence-transformers
46
+ metrics:
47
+ - cosine_accuracy@1
48
+ - cosine_accuracy@3
49
+ - cosine_accuracy@5
50
+ - cosine_precision@1
51
+ - cosine_precision@3
52
+ - cosine_precision@5
53
+ - cosine_recall@1
54
+ - cosine_recall@3
55
+ - cosine_recall@5
56
+ - cosine_ndcg@10
57
+ - cosine_mrr@1
58
+ - cosine_mrr@5
59
+ - cosine_mrr@10
60
+ - cosine_map@100
61
+ model-index:
62
+ - name: SentenceTransformer based on Alibaba-NLP/gte-modernbert-base
63
+ results:
64
+ - task:
65
+ type: information-retrieval
66
+ name: Information Retrieval
67
+ dataset:
68
+ name: val
69
+ type: val
70
+ metrics:
71
+ - type: cosine_accuracy@1
72
+ value: 0.828675
73
+ name: Cosine Accuracy@1
74
+ - type: cosine_accuracy@3
75
+ value: 0.90055
76
+ name: Cosine Accuracy@3
77
+ - type: cosine_accuracy@5
78
+ value: 0.926875
79
+ name: Cosine Accuracy@5
80
+ - type: cosine_precision@1
81
+ value: 0.828675
82
+ name: Cosine Precision@1
83
+ - type: cosine_precision@3
84
+ value: 0.3001833333333333
85
+ name: Cosine Precision@3
86
+ - type: cosine_precision@5
87
+ value: 0.185375
88
+ name: Cosine Precision@5
89
+ - type: cosine_recall@1
90
+ value: 0.828675
91
+ name: Cosine Recall@1
92
+ - type: cosine_recall@3
93
+ value: 0.90055
94
+ name: Cosine Recall@3
95
+ - type: cosine_recall@5
96
+ value: 0.926875
97
+ name: Cosine Recall@5
98
+ - type: cosine_ndcg@10
99
+ value: 0.8917140181282133
100
+ name: Cosine Ndcg@10
101
+ - type: cosine_mrr@1
102
+ value: 0.828675
103
+ name: Cosine Mrr@1
104
+ - type: cosine_mrr@5
105
+ value: 0.8668858333333296
106
+ name: Cosine Mrr@5
107
+ - type: cosine_mrr@10
108
+ value: 0.870941557539677
109
+ name: Cosine Mrr@10
110
+ - type: cosine_map@100
111
+ value: 0.873184159266725
112
+ name: Cosine Map@100
113
  ---
114
 
115
+ # SentenceTransformer based on Alibaba-NLP/gte-modernbert-base
116
 
117
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
118
 
119
  ## Model Details
120
 
121
  ### Model Description
122
  - **Model Type:** Sentence Transformer
123
+ - **Base model:** [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base) <!-- at revision e7f32e3c00f91d699e8c43b53106206bcc72bb22 -->
124
  - **Maximum Sequence Length:** 128 tokens
125
+ - **Output Dimensionality:** 768 dimensions
126
  - **Similarity Function:** Cosine Similarity
127
  <!-- - **Training Dataset:** Unknown -->
128
  <!-- - **Language:** Unknown -->
 
138
 
139
  ```
140
  SentenceTransformer(
141
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'PeftModelForFeatureExtraction'})
142
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
143
  )
144
  ```
145
 
 
158
  from sentence_transformers import SentenceTransformer
159
 
160
  # Download from the 🤗 Hub
161
+ model = SentenceTransformer("redis/model-a-baseline")
162
  # Run inference
163
  sentences = [
164
+ 'How do you earn money on Quora?',
165
+ 'What is the best way to make money on Quora?',
166
+ 'What are some things new employees should know going into their first day at Maximus?',
167
  ]
168
  embeddings = model.encode(sentences)
169
  print(embeddings.shape)
170
+ # [3, 768]
171
 
172
  # Get the similarity scores for the embeddings
173
  similarities = model.similarity(embeddings, embeddings)
174
  print(similarities)
175
+ # tensor([[1.0000, 0.9865, 0.0499],
176
+ # [0.9865, 1.0000, 0.0422],
177
+ # [0.0499, 0.0422, 1.0000]])
178
  ```
179
 
180
  <!--
 
201
  *List how the model may foreseeably be misused and address what users ought not to do with the model.*
202
  -->
203
 
204
+ ## Evaluation
205
+
206
+ ### Metrics
207
+
208
+ #### Information Retrieval
209
+
210
+ * Dataset: `val`
211
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
212
+
213
+ | Metric | Value |
214
+ |:-------------------|:-----------|
215
+ | cosine_accuracy@1 | 0.8287 |
216
+ | cosine_accuracy@3 | 0.9005 |
217
+ | cosine_accuracy@5 | 0.9269 |
218
+ | cosine_precision@1 | 0.8287 |
219
+ | cosine_precision@3 | 0.3002 |
220
+ | cosine_precision@5 | 0.1854 |
221
+ | cosine_recall@1 | 0.8287 |
222
+ | cosine_recall@3 | 0.9005 |
223
+ | cosine_recall@5 | 0.9269 |
224
+ | **cosine_ndcg@10** | **0.8917** |
225
+ | cosine_mrr@1 | 0.8287 |
226
+ | cosine_mrr@5 | 0.8669 |
227
+ | cosine_mrr@10 | 0.8709 |
228
+ | cosine_map@100 | 0.8732 |
229
+
230
  <!--
231
  ## Bias, Risks and Limitations
232
 
 
245
 
246
  #### Unnamed Dataset
247
 
248
+ * Size: 359,997 training samples
249
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
250
+ * Approximate statistics based on the first 1000 samples:
251
+ | | anchor | positive | negative |
252
+ |:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
253
+ | type | string | string | string |
254
+ | details | <ul><li>min: 4 tokens</li><li>mean: 15.4 tokens</li><li>max: 47 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 15.47 tokens</li><li>max: 47 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 16.9 tokens</li><li>max: 125 tokens</li></ul> |
255
+ * Samples:
256
+ | anchor | positive | negative |
257
+ |:--------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------|
258
+ | <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>Whether extension of CA-articleship is to be served at same firm/company?</code> |
259
+ | <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>Since solid carbon dioxide is dry ice and incredibly cold, why doesn't it have an effect on global warming?</code> |
260
+ | <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 do you open a briefcase combination lock without the combination?</code> |
261
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
262
+ ```json
263
+ {
264
+ "scale": 7.0,
265
+ "similarity_fct": "cos_sim",
266
+ "gather_across_devices": false
267
+ }
268
+ ```
269
+
270
+ ### Evaluation Dataset
271
+
272
+ #### Unnamed Dataset
273
+
274
+ * Size: 40,000 evaluation samples
275
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
276
  * Approximate statistics based on the first 1000 samples:
277
+ | | anchor | positive | negative |
278
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
279
+ | type | string | string | string |
280
+ | details | <ul><li>min: 6 tokens</li><li>mean: 15.68 tokens</li><li>max: 72 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.75 tokens</li><li>max: 72 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.95 tokens</li><li>max: 78 tokens</li></ul> |
281
  * Samples:
282
+ | anchor | positive | negative |
283
+ |:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------|
284
+ | <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> |
285
+ | <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> |
286
+ | <code>How can guys last longer during sex?</code> | <code>How do I last longer in sex?</code> | <code>What is a permanent solution for rough and puffy hair?</code> |
287
  * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
288
  ```json
289
  {
290
+ "scale": 7.0,
291
  "similarity_fct": "cos_sim",
292
  "gather_across_devices": false
293
  }
 
296
  ### Training Hyperparameters
297
  #### Non-Default Hyperparameters
298
 
299
+ - `eval_strategy`: steps
300
+ - `per_device_train_batch_size`: 128
301
+ - `per_device_eval_batch_size`: 128
302
+ - `learning_rate`: 0.0002
303
+ - `weight_decay`: 0.0001
304
+ - `max_steps`: 5000
305
+ - `warmup_ratio`: 0.1
306
  - `fp16`: True
307
+ - `dataloader_drop_last`: True
308
+ - `dataloader_num_workers`: 1
309
+ - `dataloader_prefetch_factor`: 1
310
+ - `load_best_model_at_end`: True
311
+ - `optim`: adamw_torch
312
+ - `ddp_find_unused_parameters`: False
313
+ - `push_to_hub`: True
314
+ - `hub_model_id`: redis/model-a-baseline
315
+ - `eval_on_start`: True
316
 
317
  #### All Hyperparameters
318
  <details><summary>Click to expand</summary>
319
 
320
  - `overwrite_output_dir`: False
321
  - `do_predict`: False
322
+ - `eval_strategy`: steps
323
  - `prediction_loss_only`: True
324
+ - `per_device_train_batch_size`: 128
325
+ - `per_device_eval_batch_size`: 128
326
  - `per_gpu_train_batch_size`: None
327
  - `per_gpu_eval_batch_size`: None
328
  - `gradient_accumulation_steps`: 1
329
  - `eval_accumulation_steps`: None
330
  - `torch_empty_cache_steps`: None
331
+ - `learning_rate`: 0.0002
332
+ - `weight_decay`: 0.0001
333
  - `adam_beta1`: 0.9
334
  - `adam_beta2`: 0.999
335
  - `adam_epsilon`: 1e-08
336
+ - `max_grad_norm`: 1.0
337
+ - `num_train_epochs`: 3.0
338
+ - `max_steps`: 5000
339
  - `lr_scheduler_type`: linear
340
  - `lr_scheduler_kwargs`: {}
341
+ - `warmup_ratio`: 0.1
342
  - `warmup_steps`: 0
343
  - `log_level`: passive
344
  - `log_level_replica`: warning
 
366
  - `tpu_num_cores`: None
367
  - `tpu_metrics_debug`: False
368
  - `debug`: []
369
+ - `dataloader_drop_last`: True
370
+ - `dataloader_num_workers`: 1
371
+ - `dataloader_prefetch_factor`: 1
372
  - `past_index`: -1
373
  - `disable_tqdm`: False
374
  - `remove_unused_columns`: True
375
  - `label_names`: None
376
+ - `load_best_model_at_end`: True
377
  - `ignore_data_skip`: False
378
  - `fsdp`: []
379
  - `fsdp_min_num_params`: 0
 
383
  - `parallelism_config`: None
384
  - `deepspeed`: None
385
  - `label_smoothing_factor`: 0.0
386
+ - `optim`: adamw_torch
387
  - `optim_args`: None
388
  - `adafactor`: False
389
  - `group_by_length`: False
390
  - `length_column_name`: length
391
  - `project`: huggingface
392
  - `trackio_space_id`: trackio
393
+ - `ddp_find_unused_parameters`: False
394
  - `ddp_bucket_cap_mb`: None
395
  - `ddp_broadcast_buffers`: False
396
  - `dataloader_pin_memory`: True
397
  - `dataloader_persistent_workers`: False
398
  - `skip_memory_metrics`: True
399
  - `use_legacy_prediction_loop`: False
400
+ - `push_to_hub`: True
401
  - `resume_from_checkpoint`: None
402
+ - `hub_model_id`: redis/model-a-baseline
403
  - `hub_strategy`: every_save
404
  - `hub_private_repo`: None
405
  - `hub_always_push`: False
 
426
  - `neftune_noise_alpha`: None
427
  - `optim_target_modules`: None
428
  - `batch_eval_metrics`: False
429
+ - `eval_on_start`: True
430
  - `use_liger_kernel`: False
431
  - `liger_kernel_config`: None
432
  - `eval_use_gather_object`: False
433
  - `average_tokens_across_devices`: True
434
  - `prompts`: None
435
  - `batch_sampler`: batch_sampler
436
+ - `multi_dataset_batch_sampler`: proportional
437
  - `router_mapping`: {}
438
  - `learning_rate_mapping`: {}
439
 
440
  </details>
441
 
442
  ### Training Logs
443
+ | Epoch | Step | Training Loss | Validation Loss | val_cosine_ndcg@10 |
444
+ |:------:|:----:|:-------------:|:---------------:|:------------------:|
445
+ | 0 | 0 | - | 2.1886 | 0.8939 |
446
+ | 0.0889 | 250 | 1.1449 | 0.4401 | 0.8927 |
447
+ | 0.1778 | 500 | 0.4237 | 0.4117 | 0.8926 |
448
+ | 0.2667 | 750 | 0.4067 | 0.3998 | 0.8924 |
449
+ | 0.3556 | 1000 | 0.3971 | 0.3923 | 0.8918 |
450
+ | 0.4445 | 1250 | 0.3875 | 0.3860 | 0.8915 |
451
+ | 0.5334 | 1500 | 0.387 | 0.3827 | 0.8926 |
452
+ | 0.6223 | 1750 | 0.3828 | 0.3792 | 0.8916 |
453
+ | 0.7112 | 2000 | 0.3782 | 0.3766 | 0.8924 |
454
+ | 0.8001 | 2250 | 0.3766 | 0.3736 | 0.8919 |
455
+ | 0.8890 | 2500 | 0.3761 | 0.3715 | 0.8925 |
456
+ | 0.9780 | 2750 | 0.3736 | 0.3700 | 0.8925 |
457
+ | 1.0669 | 3000 | 0.3669 | 0.3690 | 0.8915 |
458
+ | 1.1558 | 3250 | 0.3668 | 0.3670 | 0.8918 |
459
+ | 1.2447 | 3500 | 0.3657 | 0.3661 | 0.8919 |
460
+ | 1.3336 | 3750 | 0.3654 | 0.3656 | 0.8923 |
461
+ | 1.4225 | 4000 | 0.3623 | 0.3646 | 0.8918 |
462
+ | 1.5114 | 4250 | 0.3621 | 0.3641 | 0.8920 |
463
+ | 1.6003 | 4500 | 0.3629 | 0.3636 | 0.8920 |
464
+ | 1.6892 | 4750 | 0.3615 | 0.3633 | 0.8918 |
465
+ | 1.7781 | 5000 | 0.3633 | 0.3632 | 0.8917 |
466
 
467
 
468
  ### Framework Versions
config_sentence_transformers.json CHANGED
@@ -1,5 +1,4 @@
1
  {
2
- "model_type": "SentenceTransformer",
3
  "__version__": {
4
  "sentence_transformers": "5.2.0",
5
  "transformers": "4.57.3",
@@ -10,5 +9,6 @@
10
  "document": ""
11
  },
12
  "default_prompt_name": null,
13
- "similarity_fn_name": "cosine"
 
14
  }
 
1
  {
 
2
  "__version__": {
3
  "sentence_transformers": "5.2.0",
4
  "transformers": "4.57.3",
 
9
  "document": ""
10
  },
11
  "default_prompt_name": null,
12
+ "similarity_fn_name": "cosine",
13
+ "model_type": "SentenceTransformer"
14
  }