radoslavralev commited on
Commit
32e6207
·
verified ·
1 Parent(s): b640d31

Add new SentenceTransformer model

Browse files
Files changed (1) hide show
  1. README.md +92 -95
README.md CHANGED
@@ -7,7 +7,7 @@ tags:
7
  - generated_from_trainer
8
  - dataset_size:90000
9
  - loss:MultipleNegativesRankingLoss
10
- base_model: sentence-transformers/all-MiniLM-L6-v2
11
  widget:
12
  - source_sentence: what is the maximum i can contribute to a traditional ira
13
  sentences:
@@ -121,7 +121,7 @@ metrics:
121
  - cosine_mrr@10
122
  - cosine_map@100
123
  model-index:
124
- - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
125
  results:
126
  - task:
127
  type: information-retrieval
@@ -131,49 +131,49 @@ model-index:
131
  type: NanoMSMARCO
132
  metrics:
133
  - type: cosine_accuracy@1
134
- value: 0.3
135
  name: Cosine Accuracy@1
136
  - type: cosine_accuracy@3
137
- value: 0.58
138
  name: Cosine Accuracy@3
139
  - type: cosine_accuracy@5
140
- value: 0.6
141
  name: Cosine Accuracy@5
142
  - type: cosine_accuracy@10
143
- value: 0.7
144
  name: Cosine Accuracy@10
145
  - type: cosine_precision@1
146
- value: 0.3
147
  name: Cosine Precision@1
148
  - type: cosine_precision@3
149
- value: 0.19333333333333333
150
  name: Cosine Precision@3
151
  - type: cosine_precision@5
152
- value: 0.12
153
  name: Cosine Precision@5
154
  - type: cosine_precision@10
155
- value: 0.07
156
  name: Cosine Precision@10
157
  - type: cosine_recall@1
158
- value: 0.3
159
  name: Cosine Recall@1
160
  - type: cosine_recall@3
161
- value: 0.58
162
  name: Cosine Recall@3
163
  - type: cosine_recall@5
164
- value: 0.6
165
  name: Cosine Recall@5
166
  - type: cosine_recall@10
167
- value: 0.7
168
  name: Cosine Recall@10
169
  - type: cosine_ndcg@10
170
- value: 0.5101349275378135
171
  name: Cosine Ndcg@10
172
  - type: cosine_mrr@10
173
- value: 0.44874603174603167
174
  name: Cosine Mrr@10
175
  - type: cosine_map@100
176
- value: 0.4606212065533731
177
  name: Cosine Map@100
178
  - task:
179
  type: information-retrieval
@@ -183,49 +183,49 @@ model-index:
183
  type: NanoNQ
184
  metrics:
185
  - type: cosine_accuracy@1
186
- value: 0.28
187
  name: Cosine Accuracy@1
188
  - type: cosine_accuracy@3
189
- value: 0.48
190
  name: Cosine Accuracy@3
191
  - type: cosine_accuracy@5
192
- value: 0.52
193
  name: Cosine Accuracy@5
194
  - type: cosine_accuracy@10
195
- value: 0.58
196
  name: Cosine Accuracy@10
197
  - type: cosine_precision@1
198
- value: 0.28
199
  name: Cosine Precision@1
200
  - type: cosine_precision@3
201
- value: 0.16
202
  name: Cosine Precision@3
203
  - type: cosine_precision@5
204
- value: 0.11200000000000002
205
  name: Cosine Precision@5
206
  - type: cosine_precision@10
207
- value: 0.06400000000000002
208
  name: Cosine Precision@10
209
  - type: cosine_recall@1
210
- value: 0.26
211
  name: Cosine Recall@1
212
  - type: cosine_recall@3
213
- value: 0.44
214
  name: Cosine Recall@3
215
  - type: cosine_recall@5
216
- value: 0.5
217
  name: Cosine Recall@5
218
  - type: cosine_recall@10
219
- value: 0.57
220
  name: Cosine Recall@10
221
  - type: cosine_ndcg@10
222
- value: 0.42522283720602283
223
  name: Cosine Ndcg@10
224
  - type: cosine_mrr@10
225
- value: 0.3893888888888889
226
  name: Cosine Mrr@10
227
  - type: cosine_map@100
228
- value: 0.38784914899138384
229
  name: Cosine Map@100
230
  - task:
231
  type: nano-beir
@@ -235,61 +235,61 @@ model-index:
235
  type: NanoBEIR_mean
236
  metrics:
237
  - type: cosine_accuracy@1
238
- value: 0.29000000000000004
239
  name: Cosine Accuracy@1
240
  - type: cosine_accuracy@3
241
  value: 0.53
242
  name: Cosine Accuracy@3
243
  - type: cosine_accuracy@5
244
- value: 0.56
245
  name: Cosine Accuracy@5
246
  - type: cosine_accuracy@10
247
- value: 0.6399999999999999
248
  name: Cosine Accuracy@10
249
  - type: cosine_precision@1
250
- value: 0.29000000000000004
251
  name: Cosine Precision@1
252
  - type: cosine_precision@3
253
- value: 0.17666666666666667
254
  name: Cosine Precision@3
255
  - type: cosine_precision@5
256
- value: 0.116
257
  name: Cosine Precision@5
258
  - type: cosine_precision@10
259
- value: 0.067
260
  name: Cosine Precision@10
261
  - type: cosine_recall@1
262
- value: 0.28
263
  name: Cosine Recall@1
264
  - type: cosine_recall@3
265
- value: 0.51
266
  name: Cosine Recall@3
267
  - type: cosine_recall@5
268
- value: 0.55
269
  name: Cosine Recall@5
270
  - type: cosine_recall@10
271
- value: 0.635
272
  name: Cosine Recall@10
273
  - type: cosine_ndcg@10
274
- value: 0.4676788823719182
275
  name: Cosine Ndcg@10
276
  - type: cosine_mrr@10
277
- value: 0.4190674603174603
278
  name: Cosine Mrr@10
279
  - type: cosine_map@100
280
- value: 0.42423517777237846
281
  name: Cosine Map@100
282
  ---
283
 
284
- # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
285
 
286
- 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.
287
 
288
  ## Model Details
289
 
290
  ### Model Description
291
  - **Model Type:** Sentence Transformer
292
- - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
293
  - **Maximum Sequence Length:** 128 tokens
294
  - **Output Dimensionality:** 384 dimensions
295
  - **Similarity Function:** Cosine Similarity
@@ -342,9 +342,9 @@ print(embeddings.shape)
342
  # Get the similarity scores for the embeddings
343
  similarities = model.similarity(embeddings, embeddings)
344
  print(similarities)
345
- # tensor([[0.9999, 0.4254, 0.6155],
346
- # [0.4254, 0.9999, 0.2541],
347
- # [0.6155, 0.2541, 1.0000]])
348
  ```
349
 
350
  <!--
@@ -382,21 +382,21 @@ You can finetune this model on your own dataset.
382
 
383
  | Metric | NanoMSMARCO | NanoNQ |
384
  |:--------------------|:------------|:-----------|
385
- | cosine_accuracy@1 | 0.3 | 0.28 |
386
- | cosine_accuracy@3 | 0.58 | 0.48 |
387
- | cosine_accuracy@5 | 0.6 | 0.52 |
388
- | cosine_accuracy@10 | 0.7 | 0.58 |
389
- | cosine_precision@1 | 0.3 | 0.28 |
390
- | cosine_precision@3 | 0.1933 | 0.16 |
391
- | cosine_precision@5 | 0.12 | 0.112 |
392
- | cosine_precision@10 | 0.07 | 0.064 |
393
- | cosine_recall@1 | 0.3 | 0.26 |
394
- | cosine_recall@3 | 0.58 | 0.44 |
395
- | cosine_recall@5 | 0.6 | 0.5 |
396
- | cosine_recall@10 | 0.7 | 0.57 |
397
- | **cosine_ndcg@10** | **0.5101** | **0.4252** |
398
- | cosine_mrr@10 | 0.4487 | 0.3894 |
399
- | cosine_map@100 | 0.4606 | 0.3878 |
400
 
401
  #### Nano BEIR
402
 
@@ -414,21 +414,21 @@ You can finetune this model on your own dataset.
414
 
415
  | Metric | Value |
416
  |:--------------------|:-----------|
417
- | cosine_accuracy@1 | 0.29 |
418
  | cosine_accuracy@3 | 0.53 |
419
- | cosine_accuracy@5 | 0.56 |
420
- | cosine_accuracy@10 | 0.64 |
421
- | cosine_precision@1 | 0.29 |
422
- | cosine_precision@3 | 0.1767 |
423
- | cosine_precision@5 | 0.116 |
424
- | cosine_precision@10 | 0.067 |
425
- | cosine_recall@1 | 0.28 |
426
- | cosine_recall@3 | 0.51 |
427
- | cosine_recall@5 | 0.55 |
428
- | cosine_recall@10 | 0.635 |
429
- | **cosine_ndcg@10** | **0.4677** |
430
- | cosine_mrr@10 | 0.4191 |
431
- | cosine_map@100 | 0.4242 |
432
 
433
  <!--
434
  ## Bias, Risks and Limitations
@@ -502,9 +502,9 @@ You can finetune this model on your own dataset.
502
  - `eval_strategy`: steps
503
  - `per_device_train_batch_size`: 128
504
  - `per_device_eval_batch_size`: 128
505
- - `learning_rate`: 0.0001
506
  - `weight_decay`: 0.005
507
- - `max_steps`: 2250
508
  - `warmup_ratio`: 0.1
509
  - `fp16`: True
510
  - `dataloader_drop_last`: True
@@ -531,14 +531,14 @@ You can finetune this model on your own dataset.
531
  - `gradient_accumulation_steps`: 1
532
  - `eval_accumulation_steps`: None
533
  - `torch_empty_cache_steps`: None
534
- - `learning_rate`: 0.0001
535
  - `weight_decay`: 0.005
536
  - `adam_beta1`: 0.9
537
  - `adam_beta2`: 0.999
538
  - `adam_epsilon`: 1e-08
539
  - `max_grad_norm`: 1.0
540
  - `num_train_epochs`: 3.0
541
- - `max_steps`: 2250
542
  - `lr_scheduler_type`: linear
543
  - `lr_scheduler_kwargs`: {}
544
  - `warmup_ratio`: 0.1
@@ -645,16 +645,13 @@ You can finetune this model on your own dataset.
645
  ### Training Logs
646
  | Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_cosine_ndcg@10 | NanoNQ_cosine_ndcg@10 | NanoBEIR_mean_cosine_ndcg@10 |
647
  |:------:|:----:|:-------------:|:---------------:|:--------------------------:|:---------------------:|:----------------------------:|
648
- | 0 | 0 | - | 1.2542 | 0.5540 | 0.5931 | 0.5735 |
649
- | 0.3556 | 250 | 1.164 | 0.9510 | 0.4905 | 0.4669 | 0.4787 |
650
- | 0.7112 | 500 | 1.0862 | 0.9271 | 0.5075 | 0.4222 | 0.4648 |
651
- | 1.0669 | 750 | 1.0451 | 0.9133 | 0.5116 | 0.4339 | 0.4727 |
652
- | 1.4225 | 1000 | 0.9486 | 0.9157 | 0.4948 | 0.4660 | 0.4804 |
653
- | 1.7781 | 1250 | 0.9464 | 0.9022 | 0.5148 | 0.4456 | 0.4802 |
654
- | 2.1337 | 1500 | 0.9034 | 0.9062 | 0.5134 | 0.4155 | 0.4645 |
655
- | 2.4893 | 1750 | 0.851 | 0.9029 | 0.5317 | 0.4236 | 0.4776 |
656
- | 2.8450 | 2000 | 0.8506 | 0.8996 | 0.5259 | 0.4389 | 0.4824 |
657
- | 3.2006 | 2250 | 0.8204 | 0.9039 | 0.5101 | 0.4252 | 0.4677 |
658
 
659
 
660
  ### Framework Versions
 
7
  - generated_from_trainer
8
  - dataset_size:90000
9
  - loss:MultipleNegativesRankingLoss
10
+ base_model: sentence-transformers/all-MiniLM-L12-v2
11
  widget:
12
  - source_sentence: what is the maximum i can contribute to a traditional ira
13
  sentences:
 
121
  - cosine_mrr@10
122
  - cosine_map@100
123
  model-index:
124
+ - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L12-v2
125
  results:
126
  - task:
127
  type: information-retrieval
 
131
  type: NanoMSMARCO
132
  metrics:
133
  - type: cosine_accuracy@1
134
+ value: 0.34
135
  name: Cosine Accuracy@1
136
  - type: cosine_accuracy@3
137
+ value: 0.56
138
  name: Cosine Accuracy@3
139
  - type: cosine_accuracy@5
140
+ value: 0.64
141
  name: Cosine Accuracy@5
142
  - type: cosine_accuracy@10
143
+ value: 0.74
144
  name: Cosine Accuracy@10
145
  - type: cosine_precision@1
146
+ value: 0.34
147
  name: Cosine Precision@1
148
  - type: cosine_precision@3
149
+ value: 0.18666666666666668
150
  name: Cosine Precision@3
151
  - type: cosine_precision@5
152
+ value: 0.128
153
  name: Cosine Precision@5
154
  - type: cosine_precision@10
155
+ value: 0.07400000000000001
156
  name: Cosine Precision@10
157
  - type: cosine_recall@1
158
+ value: 0.34
159
  name: Cosine Recall@1
160
  - type: cosine_recall@3
161
+ value: 0.56
162
  name: Cosine Recall@3
163
  - type: cosine_recall@5
164
+ value: 0.64
165
  name: Cosine Recall@5
166
  - type: cosine_recall@10
167
+ value: 0.74
168
  name: Cosine Recall@10
169
  - type: cosine_ndcg@10
170
+ value: 0.5374407455925777
171
  name: Cosine Ndcg@10
172
  - type: cosine_mrr@10
173
+ value: 0.47276190476190466
174
  name: Cosine Mrr@10
175
  - type: cosine_map@100
176
+ value: 0.48561801675925215
177
  name: Cosine Map@100
178
  - task:
179
  type: information-retrieval
 
183
  type: NanoNQ
184
  metrics:
185
  - type: cosine_accuracy@1
186
+ value: 0.4
187
  name: Cosine Accuracy@1
188
  - type: cosine_accuracy@3
189
+ value: 0.5
190
  name: Cosine Accuracy@3
191
  - type: cosine_accuracy@5
192
+ value: 0.56
193
  name: Cosine Accuracy@5
194
  - type: cosine_accuracy@10
195
+ value: 0.7
196
  name: Cosine Accuracy@10
197
  - type: cosine_precision@1
198
+ value: 0.4
199
  name: Cosine Precision@1
200
  - type: cosine_precision@3
201
+ value: 0.1733333333333333
202
  name: Cosine Precision@3
203
  - type: cosine_precision@5
204
+ value: 0.12
205
  name: Cosine Precision@5
206
  - type: cosine_precision@10
207
+ value: 0.07400000000000001
208
  name: Cosine Precision@10
209
  - type: cosine_recall@1
210
+ value: 0.37
211
  name: Cosine Recall@1
212
  - type: cosine_recall@3
213
+ value: 0.47
214
  name: Cosine Recall@3
215
  - type: cosine_recall@5
216
+ value: 0.54
217
  name: Cosine Recall@5
218
  - type: cosine_recall@10
219
+ value: 0.66
220
  name: Cosine Recall@10
221
  - type: cosine_ndcg@10
222
+ value: 0.5075548380780193
223
  name: Cosine Ndcg@10
224
  - type: cosine_mrr@10
225
+ value: 0.47743650793650794
226
  name: Cosine Mrr@10
227
  - type: cosine_map@100
228
+ value: 0.46217171679843827
229
  name: Cosine Map@100
230
  - task:
231
  type: nano-beir
 
235
  type: NanoBEIR_mean
236
  metrics:
237
  - type: cosine_accuracy@1
238
+ value: 0.37
239
  name: Cosine Accuracy@1
240
  - type: cosine_accuracy@3
241
  value: 0.53
242
  name: Cosine Accuracy@3
243
  - type: cosine_accuracy@5
244
+ value: 0.6000000000000001
245
  name: Cosine Accuracy@5
246
  - type: cosine_accuracy@10
247
+ value: 0.72
248
  name: Cosine Accuracy@10
249
  - type: cosine_precision@1
250
+ value: 0.37
251
  name: Cosine Precision@1
252
  - type: cosine_precision@3
253
+ value: 0.18
254
  name: Cosine Precision@3
255
  - type: cosine_precision@5
256
+ value: 0.124
257
  name: Cosine Precision@5
258
  - type: cosine_precision@10
259
+ value: 0.07400000000000001
260
  name: Cosine Precision@10
261
  - type: cosine_recall@1
262
+ value: 0.355
263
  name: Cosine Recall@1
264
  - type: cosine_recall@3
265
+ value: 0.515
266
  name: Cosine Recall@3
267
  - type: cosine_recall@5
268
+ value: 0.5900000000000001
269
  name: Cosine Recall@5
270
  - type: cosine_recall@10
271
+ value: 0.7
272
  name: Cosine Recall@10
273
  - type: cosine_ndcg@10
274
+ value: 0.5224977918352984
275
  name: Cosine Ndcg@10
276
  - type: cosine_mrr@10
277
+ value: 0.4750992063492063
278
  name: Cosine Mrr@10
279
  - type: cosine_map@100
280
+ value: 0.4738948667788452
281
  name: Cosine Map@100
282
  ---
283
 
284
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L12-v2
285
 
286
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L12-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.
287
 
288
  ## Model Details
289
 
290
  ### Model Description
291
  - **Model Type:** Sentence Transformer
292
+ - **Base model:** [sentence-transformers/all-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2) <!-- at revision 936af83a2ecce5fe87a09109ff5cbcefe073173a -->
293
  - **Maximum Sequence Length:** 128 tokens
294
  - **Output Dimensionality:** 384 dimensions
295
  - **Similarity Function:** Cosine Similarity
 
342
  # Get the similarity scores for the embeddings
343
  similarities = model.similarity(embeddings, embeddings)
344
  print(similarities)
345
+ # tensor([[1.0000, 0.5519, 0.4707],
346
+ # [0.5519, 1.0001, 0.0831],
347
+ # [0.4707, 0.0831, 1.0000]])
348
  ```
349
 
350
  <!--
 
382
 
383
  | Metric | NanoMSMARCO | NanoNQ |
384
  |:--------------------|:------------|:-----------|
385
+ | cosine_accuracy@1 | 0.34 | 0.4 |
386
+ | cosine_accuracy@3 | 0.56 | 0.5 |
387
+ | cosine_accuracy@5 | 0.64 | 0.56 |
388
+ | cosine_accuracy@10 | 0.74 | 0.7 |
389
+ | cosine_precision@1 | 0.34 | 0.4 |
390
+ | cosine_precision@3 | 0.1867 | 0.1733 |
391
+ | cosine_precision@5 | 0.128 | 0.12 |
392
+ | cosine_precision@10 | 0.074 | 0.074 |
393
+ | cosine_recall@1 | 0.34 | 0.37 |
394
+ | cosine_recall@3 | 0.56 | 0.47 |
395
+ | cosine_recall@5 | 0.64 | 0.54 |
396
+ | cosine_recall@10 | 0.74 | 0.66 |
397
+ | **cosine_ndcg@10** | **0.5374** | **0.5076** |
398
+ | cosine_mrr@10 | 0.4728 | 0.4774 |
399
+ | cosine_map@100 | 0.4856 | 0.4622 |
400
 
401
  #### Nano BEIR
402
 
 
414
 
415
  | Metric | Value |
416
  |:--------------------|:-----------|
417
+ | cosine_accuracy@1 | 0.37 |
418
  | cosine_accuracy@3 | 0.53 |
419
+ | cosine_accuracy@5 | 0.6 |
420
+ | cosine_accuracy@10 | 0.72 |
421
+ | cosine_precision@1 | 0.37 |
422
+ | cosine_precision@3 | 0.18 |
423
+ | cosine_precision@5 | 0.124 |
424
+ | cosine_precision@10 | 0.074 |
425
+ | cosine_recall@1 | 0.355 |
426
+ | cosine_recall@3 | 0.515 |
427
+ | cosine_recall@5 | 0.59 |
428
+ | cosine_recall@10 | 0.7 |
429
+ | **cosine_ndcg@10** | **0.5225** |
430
+ | cosine_mrr@10 | 0.4751 |
431
+ | cosine_map@100 | 0.4739 |
432
 
433
  <!--
434
  ## Bias, Risks and Limitations
 
502
  - `eval_strategy`: steps
503
  - `per_device_train_batch_size`: 128
504
  - `per_device_eval_batch_size`: 128
505
+ - `learning_rate`: 8e-05
506
  - `weight_decay`: 0.005
507
+ - `max_steps`: 1687
508
  - `warmup_ratio`: 0.1
509
  - `fp16`: True
510
  - `dataloader_drop_last`: True
 
531
  - `gradient_accumulation_steps`: 1
532
  - `eval_accumulation_steps`: None
533
  - `torch_empty_cache_steps`: None
534
+ - `learning_rate`: 8e-05
535
  - `weight_decay`: 0.005
536
  - `adam_beta1`: 0.9
537
  - `adam_beta2`: 0.999
538
  - `adam_epsilon`: 1e-08
539
  - `max_grad_norm`: 1.0
540
  - `num_train_epochs`: 3.0
541
+ - `max_steps`: 1687
542
  - `lr_scheduler_type`: linear
543
  - `lr_scheduler_kwargs`: {}
544
  - `warmup_ratio`: 0.1
 
645
  ### Training Logs
646
  | Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_cosine_ndcg@10 | NanoNQ_cosine_ndcg@10 | NanoBEIR_mean_cosine_ndcg@10 |
647
  |:------:|:----:|:-------------:|:---------------:|:--------------------------:|:---------------------:|:----------------------------:|
648
+ | 0 | 0 | - | 1.2073 | 0.5887 | 0.5786 | 0.5836 |
649
+ | 0.3556 | 250 | 1.0978 | 0.9124 | 0.4990 | 0.5159 | 0.5075 |
650
+ | 0.7112 | 500 | 1.0307 | 0.8904 | 0.5523 | 0.4790 | 0.5157 |
651
+ | 1.0669 | 750 | 0.993 | 0.8816 | 0.5518 | 0.4577 | 0.5047 |
652
+ | 1.4225 | 1000 | 0.8908 | 0.8770 | 0.5529 | 0.5130 | 0.5329 |
653
+ | 1.7781 | 1250 | 0.8857 | 0.8703 | 0.5288 | 0.5212 | 0.5250 |
654
+ | 2.1337 | 1500 | 0.8526 | 0.8677 | 0.5374 | 0.5076 | 0.5225 |
 
 
 
655
 
656
 
657
  ### Framework Versions