radoslavralev commited on
Commit
5461f22
·
verified ·
1 Parent(s): ebd99d5

Training in progress, step 5000

Browse files
1_Pooling/config.json CHANGED
@@ -1,7 +1,7 @@
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,
 
1
  {
2
+ "word_embedding_dimension": 512,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
5
  "pooling_mode_max_tokens": false,
6
  "pooling_mode_mean_sqrt_len_tokens": false,
7
  "pooling_mode_weightedmean_tokens": false,
Information-Retrieval_evaluation_val_results.csv CHANGED
@@ -12,3 +12,4 @@ epoch,steps,cosine-Accuracy@1,cosine-Accuracy@3,cosine-Accuracy@5,cosine-Precisi
12
  -1,-1,0.82585,0.902175,0.930075,0.82585,0.82585,0.30072499999999996,0.902175,0.186015,0.930075,0.82585,0.8661279166666617,0.8703281448412645,0.8922105025555344,0.8724788643099791
13
  -1,-1,0.00065,0.7986,0.880825,0.00065,0.00065,0.26619999999999994,0.7986,0.17616500000000002,0.880825,0.00065,0.288667083333407,0.2951483234127803,0.45147470340355694,0.2980051496600344
14
  -1,-1,0.827675,0.9006,0.9272,0.827675,0.827675,0.3001999999999999,0.9006,0.18544000000000002,0.9272,0.827675,0.8661058333333287,0.8703261011904707,0.8916124422761306,0.8726181110807445
 
 
12
  -1,-1,0.82585,0.902175,0.930075,0.82585,0.82585,0.30072499999999996,0.902175,0.186015,0.930075,0.82585,0.8661279166666617,0.8703281448412645,0.8922105025555344,0.8724788643099791
13
  -1,-1,0.00065,0.7986,0.880825,0.00065,0.00065,0.26619999999999994,0.7986,0.17616500000000002,0.880825,0.00065,0.288667083333407,0.2951483234127803,0.45147470340355694,0.2980051496600344
14
  -1,-1,0.827675,0.9006,0.9272,0.827675,0.827675,0.3001999999999999,0.9006,0.18544000000000002,0.9272,0.827675,0.8661058333333287,0.8703261011904707,0.8916124422761306,0.8726181110807445
15
+ -1,-1,0.82885,0.902725,0.93035,0.82885,0.82885,0.3009083333333333,0.902725,0.18607000000000004,0.93035,0.82885,0.8681187499999955,0.8721355654761855,0.8933682535781845,0.8743952711926549
README.md CHANGED
@@ -5,124 +5,51 @@ tags:
5
  - feature-extraction
6
  - dense
7
  - generated_from_trainer
8
- - dataset_size:359997
9
  - loss:MultipleNegativesRankingLoss
10
- base_model: sentence-transformers/all-MiniLM-L12-v2
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 sentence-transformers/all-MiniLM-L12-v2
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.82885
73
- name: Cosine Accuracy@1
74
- - type: cosine_accuracy@3
75
- value: 0.902725
76
- name: Cosine Accuracy@3
77
- - type: cosine_accuracy@5
78
- value: 0.93035
79
- name: Cosine Accuracy@5
80
- - type: cosine_precision@1
81
- value: 0.82885
82
- name: Cosine Precision@1
83
- - type: cosine_precision@3
84
- value: 0.3009083333333333
85
- name: Cosine Precision@3
86
- - type: cosine_precision@5
87
- value: 0.18607000000000004
88
- name: Cosine Precision@5
89
- - type: cosine_recall@1
90
- value: 0.82885
91
- name: Cosine Recall@1
92
- - type: cosine_recall@3
93
- value: 0.902725
94
- name: Cosine Recall@3
95
- - type: cosine_recall@5
96
- value: 0.93035
97
- name: Cosine Recall@5
98
- - type: cosine_ndcg@10
99
- value: 0.8933682535781845
100
- name: Cosine Ndcg@10
101
- - type: cosine_mrr@1
102
- value: 0.82885
103
- name: Cosine Mrr@1
104
- - type: cosine_mrr@5
105
- value: 0.8681187499999955
106
- name: Cosine Mrr@5
107
- - type: cosine_mrr@10
108
- value: 0.8721355654761855
109
- name: Cosine Mrr@10
110
- - type: cosine_map@100
111
- value: 0.8743952711926549
112
- name: Cosine Map@100
113
  ---
114
 
115
- # SentenceTransformer based on sentence-transformers/all-MiniLM-L12-v2
116
 
117
- 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.
118
 
119
  ## Model Details
120
 
121
  ### Model Description
122
  - **Model Type:** Sentence Transformer
123
- - **Base model:** [sentence-transformers/all-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2) <!-- at revision 936af83a2ecce5fe87a09109ff5cbcefe073173a -->
124
  - **Maximum Sequence Length:** 128 tokens
125
- - **Output Dimensionality:** 384 dimensions
126
  - **Similarity Function:** Cosine Similarity
127
  <!-- - **Training Dataset:** Unknown -->
128
  <!-- - **Language:** Unknown -->
@@ -139,8 +66,7 @@ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [s
139
  ```
140
  SentenceTransformer(
141
  (0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'BertModel'})
142
- (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})
143
- (2): Normalize()
144
  )
145
  ```
146
 
@@ -159,23 +85,23 @@ Then you can load this model and run inference.
159
  from sentence_transformers import SentenceTransformer
160
 
161
  # Download from the 🤗 Hub
162
- model = SentenceTransformer("redis/model-a-baseline")
163
  # Run inference
164
  sentences = [
165
- 'How do you earn money on Quora?',
166
- 'What is the best way to make money on Quora?',
167
- 'What are some things new employees should know going into their first day at Maximus?',
168
  ]
169
  embeddings = model.encode(sentences)
170
  print(embeddings.shape)
171
- # [3, 384]
172
 
173
  # Get the similarity scores for the embeddings
174
  similarities = model.similarity(embeddings, embeddings)
175
  print(similarities)
176
- # tensor([[ 0.9999, 0.9973, -0.0139],
177
- # [ 0.9973, 1.0000, -0.0092],
178
- # [-0.0139, -0.0092, 1.0000]])
179
  ```
180
 
181
  <!--
@@ -202,32 +128,6 @@ You can finetune this model on your own dataset.
202
  *List how the model may foreseeably be misused and address what users ought not to do with the model.*
203
  -->
204
 
205
- ## Evaluation
206
-
207
- ### Metrics
208
-
209
- #### Information Retrieval
210
-
211
- * Dataset: `val`
212
- * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
213
-
214
- | Metric | Value |
215
- |:-------------------|:-----------|
216
- | cosine_accuracy@1 | 0.8288 |
217
- | cosine_accuracy@3 | 0.9027 |
218
- | cosine_accuracy@5 | 0.9304 |
219
- | cosine_precision@1 | 0.8288 |
220
- | cosine_precision@3 | 0.3009 |
221
- | cosine_precision@5 | 0.1861 |
222
- | cosine_recall@1 | 0.8288 |
223
- | cosine_recall@3 | 0.9027 |
224
- | cosine_recall@5 | 0.9304 |
225
- | **cosine_ndcg@10** | **0.8934** |
226
- | cosine_mrr@1 | 0.8288 |
227
- | cosine_mrr@5 | 0.8681 |
228
- | cosine_mrr@10 | 0.8721 |
229
- | cosine_map@100 | 0.8744 |
230
-
231
  <!--
232
  ## Bias, Risks and Limitations
233
 
@@ -246,49 +146,23 @@ You can finetune this model on your own dataset.
246
 
247
  #### Unnamed Dataset
248
 
249
- * Size: 359,997 training samples
250
- * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
251
- * Approximate statistics based on the first 1000 samples:
252
- | | anchor | positive | negative |
253
- |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
254
- | type | string | string | string |
255
- | 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: 5 tokens</li><li>mean: 16.99 tokens</li><li>max: 128 tokens</li></ul> |
256
- * Samples:
257
- | anchor | positive | negative |
258
- |:--------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------|
259
- | <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> |
260
- | <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> |
261
- | <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> |
262
- * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
263
- ```json
264
- {
265
- "scale": 7.0,
266
- "similarity_fct": "cos_sim",
267
- "gather_across_devices": false
268
- }
269
- ```
270
-
271
- ### Evaluation Dataset
272
-
273
- #### Unnamed Dataset
274
-
275
- * Size: 40,000 evaluation samples
276
- * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
277
  * Approximate statistics based on the first 1000 samples:
278
- | | anchor | positive | negative |
279
- |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
280
- | type | string | string | string |
281
- | 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: 6 tokens</li><li>mean: 16.97 tokens</li><li>max: 78 tokens</li></ul> |
282
  * Samples:
283
- | anchor | positive | negative |
284
- |:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------|
285
- | <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> |
286
- | <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> |
287
- | <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> |
288
  * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
289
  ```json
290
  {
291
- "scale": 7.0,
292
  "similarity_fct": "cos_sim",
293
  "gather_across_devices": false
294
  }
@@ -297,49 +171,36 @@ You can finetune this model on your own dataset.
297
  ### Training Hyperparameters
298
  #### Non-Default Hyperparameters
299
 
300
- - `eval_strategy`: steps
301
- - `per_device_train_batch_size`: 256
302
- - `per_device_eval_batch_size`: 256
303
- - `learning_rate`: 2e-05
304
- - `weight_decay`: 0.0001
305
- - `max_steps`: 12000
306
- - `warmup_ratio`: 0.1
307
  - `fp16`: True
308
- - `dataloader_drop_last`: True
309
- - `dataloader_num_workers`: 1
310
- - `dataloader_prefetch_factor`: 1
311
- - `load_best_model_at_end`: True
312
- - `optim`: adamw_torch
313
- - `ddp_find_unused_parameters`: False
314
- - `push_to_hub`: True
315
- - `hub_model_id`: redis/model-a-baseline
316
- - `eval_on_start`: True
317
 
318
  #### All Hyperparameters
319
  <details><summary>Click to expand</summary>
320
 
321
  - `overwrite_output_dir`: False
322
  - `do_predict`: False
323
- - `eval_strategy`: steps
324
  - `prediction_loss_only`: True
325
- - `per_device_train_batch_size`: 256
326
- - `per_device_eval_batch_size`: 256
327
  - `per_gpu_train_batch_size`: None
328
  - `per_gpu_eval_batch_size`: None
329
  - `gradient_accumulation_steps`: 1
330
  - `eval_accumulation_steps`: None
331
  - `torch_empty_cache_steps`: None
332
- - `learning_rate`: 2e-05
333
- - `weight_decay`: 0.0001
334
  - `adam_beta1`: 0.9
335
  - `adam_beta2`: 0.999
336
  - `adam_epsilon`: 1e-08
337
- - `max_grad_norm`: 1.0
338
- - `num_train_epochs`: 3.0
339
- - `max_steps`: 12000
340
  - `lr_scheduler_type`: linear
341
  - `lr_scheduler_kwargs`: {}
342
- - `warmup_ratio`: 0.1
343
  - `warmup_steps`: 0
344
  - `log_level`: passive
345
  - `log_level_replica`: warning
@@ -367,14 +228,14 @@ You can finetune this model on your own dataset.
367
  - `tpu_num_cores`: None
368
  - `tpu_metrics_debug`: False
369
  - `debug`: []
370
- - `dataloader_drop_last`: True
371
- - `dataloader_num_workers`: 1
372
- - `dataloader_prefetch_factor`: 1
373
  - `past_index`: -1
374
  - `disable_tqdm`: False
375
  - `remove_unused_columns`: True
376
  - `label_names`: None
377
- - `load_best_model_at_end`: True
378
  - `ignore_data_skip`: False
379
  - `fsdp`: []
380
  - `fsdp_min_num_params`: 0
@@ -384,23 +245,23 @@ You can finetune this model on your own dataset.
384
  - `parallelism_config`: None
385
  - `deepspeed`: None
386
  - `label_smoothing_factor`: 0.0
387
- - `optim`: adamw_torch
388
  - `optim_args`: None
389
  - `adafactor`: False
390
  - `group_by_length`: False
391
  - `length_column_name`: length
392
  - `project`: huggingface
393
  - `trackio_space_id`: trackio
394
- - `ddp_find_unused_parameters`: False
395
  - `ddp_bucket_cap_mb`: None
396
  - `ddp_broadcast_buffers`: False
397
  - `dataloader_pin_memory`: True
398
  - `dataloader_persistent_workers`: False
399
  - `skip_memory_metrics`: True
400
  - `use_legacy_prediction_loop`: False
401
- - `push_to_hub`: True
402
  - `resume_from_checkpoint`: None
403
- - `hub_model_id`: redis/model-a-baseline
404
  - `hub_strategy`: every_save
405
  - `hub_private_repo`: None
406
  - `hub_always_push`: False
@@ -427,71 +288,31 @@ You can finetune this model on your own dataset.
427
  - `neftune_noise_alpha`: None
428
  - `optim_target_modules`: None
429
  - `batch_eval_metrics`: False
430
- - `eval_on_start`: True
431
  - `use_liger_kernel`: False
432
  - `liger_kernel_config`: None
433
  - `eval_use_gather_object`: False
434
  - `average_tokens_across_devices`: True
435
  - `prompts`: None
436
  - `batch_sampler`: batch_sampler
437
- - `multi_dataset_batch_sampler`: proportional
438
  - `router_mapping`: {}
439
  - `learning_rate_mapping`: {}
440
 
441
  </details>
442
 
443
  ### Training Logs
444
- | Epoch | Step | Training Loss | Validation Loss | val_cosine_ndcg@10 |
445
- |:------:|:-----:|:-------------:|:---------------:|:------------------:|
446
- | 0 | 0 | - | 0.9225 | 0.8948 |
447
- | 0.1778 | 250 | 0.9562 | 0.6672 | 0.8930 |
448
- | 0.3556 | 500 | 0.8212 | 0.6496 | 0.8921 |
449
- | 0.5334 | 750 | 0.7906 | 0.6376 | 0.8921 |
450
- | 0.7112 | 1000 | 0.7719 | 0.6282 | 0.8919 |
451
- | 0.8890 | 1250 | 0.7542 | 0.6206 | 0.8919 |
452
- | 1.0669 | 1500 | 0.7378 | 0.6131 | 0.8913 |
453
- | 1.2447 | 1750 | 0.7249 | 0.6089 | 0.8921 |
454
- | 1.4225 | 2000 | 0.7152 | 0.6057 | 0.8918 |
455
- | 1.6003 | 2250 | 0.7095 | 0.6031 | 0.8924 |
456
- | 1.7781 | 2500 | 0.7041 | 0.5983 | 0.8925 |
457
- | 1.9559 | 2750 | 0.6991 | 0.5965 | 0.8925 |
458
- | 2.1337 | 3000 | 0.6895 | 0.5947 | 0.8920 |
459
- | 2.3115 | 3250 | 0.686 | 0.5920 | 0.8926 |
460
- | 2.4893 | 3500 | 0.6838 | 0.5907 | 0.8923 |
461
- | 2.6671 | 3750 | 0.6778 | 0.5888 | 0.8926 |
462
- | 2.8450 | 4000 | 0.6768 | 0.5872 | 0.8926 |
463
- | 3.0228 | 4250 | 0.675 | 0.5855 | 0.8927 |
464
- | 3.2006 | 4500 | 0.6672 | 0.5842 | 0.8928 |
465
- | 3.3784 | 4750 | 0.6667 | 0.5830 | 0.8930 |
466
- | 3.5562 | 5000 | 0.6651 | 0.5827 | 0.8931 |
467
- | 3.7340 | 5250 | 0.6626 | 0.5808 | 0.8930 |
468
- | 3.9118 | 5500 | 0.6605 | 0.5801 | 0.8929 |
469
- | 4.0896 | 5750 | 0.6585 | 0.5788 | 0.8932 |
470
- | 4.2674 | 6000 | 0.6539 | 0.5779 | 0.8928 |
471
- | 4.4452 | 6250 | 0.6534 | 0.5774 | 0.8931 |
472
- | 4.6230 | 6500 | 0.6517 | 0.5764 | 0.8931 |
473
- | 4.8009 | 6750 | 0.6507 | 0.5757 | 0.8933 |
474
- | 4.9787 | 7000 | 0.6504 | 0.5753 | 0.8930 |
475
- | 5.1565 | 7250 | 0.6449 | 0.5747 | 0.8930 |
476
- | 5.3343 | 7500 | 0.6461 | 0.5743 | 0.8934 |
477
- | 5.5121 | 7750 | 0.645 | 0.5735 | 0.8934 |
478
- | 5.6899 | 8000 | 0.6435 | 0.5732 | 0.8931 |
479
- | 5.8677 | 8250 | 0.6442 | 0.5727 | 0.8933 |
480
- | 6.0455 | 8500 | 0.6406 | 0.5722 | 0.8931 |
481
- | 6.2233 | 8750 | 0.6382 | 0.5719 | 0.8932 |
482
- | 6.4011 | 9000 | 0.6389 | 0.5713 | 0.8934 |
483
- | 6.5789 | 9250 | 0.64 | 0.5710 | 0.8933 |
484
- | 6.7568 | 9500 | 0.6382 | 0.5708 | 0.8932 |
485
- | 6.9346 | 9750 | 0.6381 | 0.5705 | 0.8934 |
486
- | 7.1124 | 10000 | 0.6358 | 0.5704 | 0.8934 |
487
- | 7.2902 | 10250 | 0.635 | 0.5700 | 0.8936 |
488
- | 7.4680 | 10500 | 0.6348 | 0.5699 | 0.8932 |
489
- | 7.6458 | 10750 | 0.6326 | 0.5697 | 0.8933 |
490
- | 7.8236 | 11000 | 0.6353 | 0.5695 | 0.8935 |
491
- | 8.0014 | 11250 | 0.6364 | 0.5694 | 0.8936 |
492
- | 8.1792 | 11500 | 0.6325 | 0.5692 | 0.8935 |
493
- | 8.3570 | 11750 | 0.6335 | 0.5692 | 0.8935 |
494
- | 8.5349 | 12000 | 0.633 | 0.5691 | 0.8934 |
495
 
496
 
497
  ### Framework Versions
 
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 -->
 
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
  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
  *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
 
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
  ### 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
  - `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
  - `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
  - `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
config.json CHANGED
@@ -1,25 +1,23 @@
1
  {
2
  "architectures": [
3
- "BertModel"
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
6
- "classifier_dropout": null,
7
  "dtype": "float32",
8
- "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
- "hidden_size": 384,
12
  "initializer_range": 0.02,
13
- "intermediate_size": 1536,
14
- "layer_norm_eps": 1e-12,
15
- "max_position_embeddings": 512,
16
- "model_type": "bert",
17
  "num_attention_heads": 12,
18
  "num_hidden_layers": 12,
19
- "pad_token_id": 0,
20
- "position_embedding_type": "absolute",
21
  "transformers_version": "4.57.3",
22
- "type_vocab_size": 2,
23
- "use_cache": true,
24
- "vocab_size": 30522
25
  }
 
1
  {
2
  "architectures": [
3
+ "MPNetModel"
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
  "dtype": "float32",
8
+ "eos_token_id": 2,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
  "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
  "num_attention_heads": 12,
18
  "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
  "transformers_version": "4.57.3",
22
+ "vocab_size": 30527
 
 
23
  }
config_sentence_transformers.json CHANGED
@@ -1,10 +1,10 @@
1
  {
 
2
  "__version__": {
3
  "sentence_transformers": "5.2.0",
4
  "transformers": "4.57.3",
5
  "pytorch": "2.9.1+cu128"
6
  },
7
- "model_type": "SentenceTransformer",
8
  "prompts": {
9
  "query": "",
10
  "document": ""
 
1
  {
2
+ "model_type": "SentenceTransformer",
3
  "__version__": {
4
  "sentence_transformers": "5.2.0",
5
  "transformers": "4.57.3",
6
  "pytorch": "2.9.1+cu128"
7
  },
 
8
  "prompts": {
9
  "query": "",
10
  "document": ""
eval/Information-Retrieval_evaluation_val_results.csv CHANGED
@@ -916,3 +916,29 @@ epoch,steps,cosine-Accuracy@1,cosine-Accuracy@3,cosine-Accuracy@5,cosine-Precisi
916
  8.17923186344239,11500,0.8291,0.902725,0.930425,0.8291,0.8291,0.3009083333333333,0.902725,0.18608500000000003,0.930425,0.8291,0.868302916666662,0.8723129365079314,0.8934984837860438,0.8745770163799339
917
  8.357041251778094,11750,0.829025,0.90275,0.93025,0.829025,0.829025,0.3009166666666666,0.90275,0.18605000000000002,0.93025,0.829025,0.8682012499999952,0.8722469146825345,0.8934640564205625,0.87450322519466
918
  8.534850640113799,12000,0.82885,0.902725,0.93035,0.82885,0.82885,0.3009083333333333,0.902725,0.18607000000000004,0.93035,0.82885,0.8681187499999955,0.8721355654761855,0.8933682535781845,0.8743952711926549
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
916
  8.17923186344239,11500,0.8291,0.902725,0.930425,0.8291,0.8291,0.3009083333333333,0.902725,0.18608500000000003,0.930425,0.8291,0.868302916666662,0.8723129365079314,0.8934984837860438,0.8745770163799339
917
  8.357041251778094,11750,0.829025,0.90275,0.93025,0.829025,0.829025,0.3009166666666666,0.90275,0.18605000000000002,0.93025,0.829025,0.8682012499999952,0.8722469146825345,0.8934640564205625,0.87450322519466
918
  8.534850640113799,12000,0.82885,0.902725,0.93035,0.82885,0.82885,0.3009083333333333,0.902725,0.18607000000000004,0.93035,0.82885,0.8681187499999955,0.8721355654761855,0.8933682535781845,0.8743952711926549
919
+ 0,0,0.83325,0.905425,0.931,0.83325,0.83325,0.3018083333333333,0.905425,0.1862,0.931,0.83325,0.8712562499999954,0.8753886309523757,0.8962091395123962,0.8775492913588381
920
+ 0.17780938833570412,250,0.832375,0.90375,0.929875,0.832375,0.832375,0.30124999999999996,0.90375,0.18597500000000003,0.929875,0.832375,0.8701812499999957,0.8742124404761842,0.8948797132152311,0.8764104238925767
921
+ 0.35561877667140823,500,0.83225,0.9037,0.92935,0.83225,0.83225,0.3012333333333333,0.9037,0.18587000000000004,0.92935,0.83225,0.8698916666666621,0.873931021825391,0.8945232371748519,0.8761366578230303
922
+ 0.5334281650071123,750,0.831475,0.903525,0.929875,0.831475,0.831475,0.301175,0.903525,0.185975,0.929875,0.831475,0.8696999999999955,0.8736485714285654,0.8943132754963641,0.8758803021872879
923
+ 0.7112375533428165,1000,0.8312,0.90375,0.929625,0.8312,0.8312,0.30125,0.90375,0.185925,0.929625,0.8312,0.8694345833333297,0.8735466865079321,0.8944274218598192,0.8757309084630673
924
+ 0,0,0.83325,0.9054,0.931025,0.83325,0.83325,0.30179999999999996,0.9054,0.186205,0.931025,0.83325,0.8712620833333289,0.8753898115079312,0.8962099299176288,0.8775504617043945
925
+ 0.08890469416785206,250,0.832675,0.904675,0.93015,0.832675,0.832675,0.3015583333333333,0.904675,0.18603000000000003,0.93015,0.832675,0.8705983333333279,0.8746623015872936,0.8953542914520892,0.8768410276130258
926
+ 0.17780938833570412,500,0.8317,0.9038,0.92965,0.8317,0.8317,0.3012666666666666,0.9038,0.18593,0.92965,0.8317,0.8697616666666627,0.873868303571423,0.8946802521926287,0.8760491474379832
927
+ 0.26671408250355616,750,0.83145,0.903325,0.929625,0.83145,0.83145,0.3011083333333333,0.903325,0.18592500000000003,0.929625,0.83145,0.8694987499999955,0.8734923611111044,0.8941825619521252,0.8757099318021792
928
+ 0.35561877667140823,1000,0.83145,0.90435,0.930325,0.83145,0.83145,0.30144999999999994,0.90435,0.18606500000000004,0.930325,0.83145,0.8698029166666614,0.8738157638888823,0.8946742009603459,0.8759753021929175
929
+ 0.4445234708392603,1250,0.830725,0.903175,0.930425,0.830725,0.830725,0.30105833333333337,0.903175,0.186085,0.930425,0.830725,0.8692774999999965,0.873290496031741,0.8943062820490432,0.8754489530139679
930
+ 0.5334281650071123,1500,0.831025,0.90325,0.93005,0.831025,0.831025,0.3010833333333333,0.90325,0.18601000000000004,0.93005,0.831025,0.8693866666666634,0.8734269543650749,0.8943395716954996,0.8756240564541158
931
+ 0.6223328591749644,1750,0.83085,0.903625,0.93085,0.83085,0.83085,0.3012083333333333,0.903625,0.18617,0.93085,0.83085,0.869452499999996,0.8734516071428523,0.8944864600455292,0.8756336527083175
932
+ 0.7112375533428165,2000,0.831225,0.903225,0.931325,0.831225,0.831225,0.301075,0.903225,0.18626500000000004,0.931325,0.831225,0.8697695833333295,0.8737897519841222,0.8949105445330948,0.8759275133936261
933
+ 0.8001422475106685,2250,0.83075,0.9036,0.93125,0.83075,0.83075,0.3012,0.9036,0.18625,0.93125,0.83075,0.8696012499999961,0.8736466468253915,0.8948335206619568,0.8757729145090132
934
+ 0.8890469416785206,2500,0.831775,0.903725,0.93095,0.831775,0.831775,0.30124166666666663,0.903725,0.18619000000000002,0.93095,0.831775,0.870115416666663,0.874198214285711,0.8952109407450953,0.876351198859034
935
+ 0.9779516358463727,2750,0.831475,0.90365,0.931125,0.831475,0.831475,0.30121666666666663,0.90365,0.18622500000000003,0.931125,0.831475,0.8699791666666632,0.8740791666666621,0.8952096516523103,0.8762060286560743
936
+ 1.0668563300142249,3000,0.830625,0.9034,0.931025,0.830625,0.830625,0.3011333333333333,0.9034,0.186205,0.931025,0.830625,0.8694312499999962,0.8735366369047579,0.894772420113057,0.8756702778689754
937
+ 1.1557610241820768,3250,0.83085,0.903325,0.930625,0.83085,0.83085,0.30110833333333326,0.903325,0.18612500000000004,0.930625,0.83085,0.8694258333333299,0.8735892658730121,0.894807300652629,0.8757268250673087
938
+ 1.2446657183499288,3500,0.83045,0.903275,0.930425,0.83045,0.83045,0.3010916666666666,0.903275,0.18608500000000003,0.930425,0.83045,0.869105833333329,0.8733233234126934,0.8946213045339133,0.8754562971349984
939
+ 1.333570412517781,3750,0.8307,0.903775,0.930775,0.8307,0.8307,0.30125833333333324,0.903775,0.18615500000000001,0.930775,0.8307,0.8694320833333299,0.8735935119047575,0.8948420250169551,0.8757323145770602
940
+ 1.422475106685633,4000,0.83075,0.903175,0.930425,0.83075,0.83075,0.3010583333333333,0.903175,0.186085,0.930425,0.83075,0.8693033333333294,0.8735262797619,0.8948013471628159,0.8756675683920364
941
+ 1.5113798008534851,4250,0.830825,0.903675,0.931025,0.830825,0.830825,0.3012249999999999,0.903675,0.186205,0.931025,0.830825,0.8696312499999967,0.8737555456349175,0.8949400275891605,0.8759271983666178
942
+ 1.600284495021337,4500,0.8308,0.90395,0.931075,0.8308,0.8308,0.3013166666666666,0.90395,0.18621500000000002,0.931075,0.8308,0.869544999999996,0.8736585218253924,0.8948904344639832,0.8758201197543449
943
+ 1.689189189189189,4750,0.83075,0.903675,0.930725,0.83075,0.83075,0.30122499999999997,0.903675,0.18614500000000003,0.930725,0.83075,0.8694362499999956,0.8736176289682489,0.8948575707495342,0.8757800204606908
944
+ 1.7780938833570412,5000,0.831025,0.903825,0.9306,0.831025,0.831025,0.301275,0.903825,0.18612000000000004,0.9306,0.831025,0.8695604166666618,0.873754801587296,0.8949476210025439,0.8759213487912666
final_metrics.json CHANGED
@@ -1,16 +1,16 @@
1
  {
2
- "val_cosine_accuracy@1": 0.827675,
3
- "val_cosine_accuracy@3": 0.9006,
4
- "val_cosine_accuracy@5": 0.9272,
5
- "val_cosine_precision@1": 0.827675,
6
- "val_cosine_precision@3": 0.3001999999999999,
7
- "val_cosine_precision@5": 0.18544000000000002,
8
- "val_cosine_recall@1": 0.827675,
9
- "val_cosine_recall@3": 0.9006,
10
- "val_cosine_recall@5": 0.9272,
11
- "val_cosine_ndcg@10": 0.8916124422761306,
12
- "val_cosine_mrr@1": 0.827675,
13
- "val_cosine_mrr@5": 0.8661058333333287,
14
- "val_cosine_mrr@10": 0.8703261011904707,
15
- "val_cosine_map@100": 0.8726181110807445
16
  }
 
1
  {
2
+ "val_cosine_accuracy@1": 0.82885,
3
+ "val_cosine_accuracy@3": 0.902725,
4
+ "val_cosine_accuracy@5": 0.93035,
5
+ "val_cosine_precision@1": 0.82885,
6
+ "val_cosine_precision@3": 0.3009083333333333,
7
+ "val_cosine_precision@5": 0.18607000000000004,
8
+ "val_cosine_recall@1": 0.82885,
9
+ "val_cosine_recall@3": 0.902725,
10
+ "val_cosine_recall@5": 0.93035,
11
+ "val_cosine_ndcg@10": 0.8933682535781845,
12
+ "val_cosine_mrr@1": 0.82885,
13
+ "val_cosine_mrr@5": 0.8681187499999955,
14
+ "val_cosine_mrr@10": 0.8721355654761855,
15
+ "val_cosine_map@100": 0.8743952711926549
16
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a7c7afc06dad67124b52482ffca5970ca799969e342466f6e3c5f74a85a05d03
3
- size 133462128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39ff98dbc91d0bddccd1ed85f5a47442723db4eb361d5877900472c83ac56263
3
+ size 437967672
modules.json CHANGED
@@ -10,11 +10,5 @@
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
  ]
 
10
  "name": "1",
11
  "path": "1_Pooling",
12
  "type": "sentence_transformers.models.Pooling"
 
 
 
 
 
 
13
  }
14
  ]
special_tokens_map.json CHANGED
@@ -1,27 +1,41 @@
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,
 
1
  {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
  "cls_token": {
10
+ "content": "<s>",
11
  "lstrip": false,
12
  "normalized": false,
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
+ "eos_token": {
17
+ "content": "</s>",
18
  "lstrip": false,
19
  "normalized": false,
20
  "rstrip": false,
21
  "single_word": false
22
  },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
  "pad_token": {
31
+ "content": "<pad>",
32
  "lstrip": false,
33
  "normalized": false,
34
  "rstrip": false,
35
  "single_word": false
36
  },
37
  "sep_token": {
38
+ "content": "</s>",
39
  "lstrip": false,
40
  "normalized": false,
41
  "rstrip": false,
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2fc687b11de0bc1b3d8348f92e3b49ef1089a621506c7661fbf3248fcd54947e
3
- size 711649
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:faaa392e91b132ea18a5c356477832565e05553acb30458841dd9710753a3dba
3
+ size 710932
tokenizer_config.json CHANGED
@@ -1,64 +1,72 @@
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": 128,
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]"
 
1
  {
2
  "added_tokens_decoder": {
3
  "0": {
4
+ "content": "<s>",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
8
  "single_word": false,
9
  "special": true
10
  },
11
+ "1": {
12
+ "content": "<pad>",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
+ "2": {
20
+ "content": "</s>",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
+ "3": {
28
+ "content": "<unk>",
29
  "lstrip": false,
30
+ "normalized": true,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
+ "104": {
36
+ "content": "[UNK]",
37
  "lstrip": false,
38
  "normalized": false,
39
  "rstrip": false,
40
  "single_word": false,
41
  "special": true
42
+ },
43
+ "30526": {
44
+ "content": "<mask>",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
  }
51
  },
52
+ "bos_token": "<s>",
53
  "clean_up_tokenization_spaces": false,
54
+ "cls_token": "<s>",
 
55
  "do_lower_case": true,
56
+ "eos_token": "</s>",
57
  "extra_special_tokens": {},
58
+ "mask_token": "<mask>",
59
  "max_length": 128,
60
+ "model_max_length": 384,
 
61
  "pad_to_multiple_of": null,
62
+ "pad_token": "<pad>",
63
  "pad_token_type_id": 0,
64
  "padding_side": "right",
65
+ "sep_token": "</s>",
66
  "stride": 0,
67
  "strip_accents": null,
68
  "tokenize_chinese_chars": true,
69
+ "tokenizer_class": "MPNetTokenizer",
70
  "truncation_side": "right",
71
  "truncation_strategy": "longest_first",
72
  "unk_token": "[UNK]"
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c95d57155864ceb9f17b5db3a6c9a6215d12f49d260b60a68d720a3bc86ddd0
3
  size 6161
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3726ece5e3c076eec5b76be95311c502c97d1d84d6588af421499557cb47e84d
3
  size 6161
vocab.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  [PAD]
2
  [unused0]
3
  [unused1]
@@ -30520,3 +30524,4 @@ necessitated
30520
  ##:
30521
  ##?
30522
  ##~
 
 
1
+ <s>
2
+ <pad>
3
+ </s>
4
+ <unk>
5
  [PAD]
6
  [unused0]
7
  [unused1]
 
30524
  ##:
30525
  ##?
30526
  ##~
30527
+ <mask>