mohsayed commited on
Commit
f3dda05
·
verified ·
1 Parent(s): aed387d

Upload fine-tuned model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ unigram.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,553 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:17702
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
10
+ widget:
11
+ - source_sentence: zonivan 100 mg 20 caps.
12
+ sentences:
13
+ - fuci-top 2% cream 15 gm
14
+ - فاستاتينال 10/40مجم 7 قرص
15
+ - زونيفان 100 مجم 20 كبسولة
16
+ - source_sentence: celeborg 100 mg 10 cap
17
+ sentences:
18
+ - celeborg 100mg 10 caps.
19
+ - هيدرو زد كريم 25 جم
20
+ - كومبليت زيت للشعر 60 مل
21
+ - source_sentence: jedcoflacin 200 mg 20 f.c.tab.
22
+ sentences:
23
+ - فوتوديرم ماكس حليب للجسم 100 اس بي اف 100 مل
24
+ - zocozet 10/20mg 14 f.c. tab.
25
+ - جيدكوفلاسين 200 مجم 20 قرص
26
+ - source_sentence: isolift cream 30ml
27
+ sentences:
28
+ - ايزوليفت كريم 30 مل
29
+ - linezolid 600mg 7 f.c. tab.
30
+ - تينسريليف 400 مجم 28 قرص
31
+ - source_sentence: stress formula 20 capsules
32
+ sentences:
33
+ - كورتيكوفيوسيديك كريم موضعي 30 جم
34
+ - ستريس فورميولا 20 كبسول
35
+ - silden 25 mg 10 f.c.tab.
36
+ pipeline_tag: sentence-similarity
37
+ library_name: sentence-transformers
38
+ ---
39
+
40
+ # SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
41
+
42
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-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.
43
+
44
+ ## Model Details
45
+
46
+ ### Model Description
47
+ - **Model Type:** Sentence Transformer
48
+ - **Base model:** [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) <!-- at revision 86741b4e3f5cb7765a600d3a3d55a0f6a6cb443d -->
49
+ - **Maximum Sequence Length:** 128 tokens
50
+ - **Output Dimensionality:** 384 dimensions
51
+ - **Similarity Function:** Cosine Similarity
52
+ <!-- - **Training Dataset:** Unknown -->
53
+ <!-- - **Language:** Unknown -->
54
+ <!-- - **License:** Unknown -->
55
+
56
+ ### Model Sources
57
+
58
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
59
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
60
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
61
+
62
+ ### Full Model Architecture
63
+
64
+ ```
65
+ SentenceTransformer(
66
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
67
+ (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})
68
+ )
69
+ ```
70
+
71
+ ## Usage
72
+
73
+ ### Direct Usage (Sentence Transformers)
74
+
75
+ First install the Sentence Transformers library:
76
+
77
+ ```bash
78
+ pip install -U sentence-transformers
79
+ ```
80
+
81
+ Then you can load this model and run inference.
82
+ ```python
83
+ from sentence_transformers import SentenceTransformer
84
+
85
+ # Download from the 🤗 Hub
86
+ model = SentenceTransformer("mohsayed/para_tr_enar_1")
87
+ # Run inference
88
+ sentences = [
89
+ 'stress formula 20 capsules',
90
+ 'ستريس فورميولا 20 كبسول',
91
+ 'كورتيكوفيوسيديك كريم موضعي 30 جم',
92
+ ]
93
+ embeddings = model.encode(sentences)
94
+ print(embeddings.shape)
95
+ # [3, 384]
96
+
97
+ # Get the similarity scores for the embeddings
98
+ similarities = model.similarity(embeddings, embeddings)
99
+ print(similarities.shape)
100
+ # [3, 3]
101
+ ```
102
+
103
+ <!--
104
+ ### Direct Usage (Transformers)
105
+
106
+ <details><summary>Click to see the direct usage in Transformers</summary>
107
+
108
+ </details>
109
+ -->
110
+
111
+ <!--
112
+ ### Downstream Usage (Sentence Transformers)
113
+
114
+ You can finetune this model on your own dataset.
115
+
116
+ <details><summary>Click to expand</summary>
117
+
118
+ </details>
119
+ -->
120
+
121
+ <!--
122
+ ### Out-of-Scope Use
123
+
124
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
125
+ -->
126
+
127
+ <!--
128
+ ## Bias, Risks and Limitations
129
+
130
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
131
+ -->
132
+
133
+ <!--
134
+ ### Recommendations
135
+
136
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
137
+ -->
138
+
139
+ ## Training Details
140
+
141
+ ### Training Dataset
142
+
143
+ #### Unnamed Dataset
144
+
145
+ * Size: 17,702 training samples
146
+ * Columns: <code>sentence1</code> and <code>sentence2</code>
147
+ * Approximate statistics based on the first 1000 samples:
148
+ | | sentence1 | sentence2 |
149
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
150
+ | type | string | string |
151
+ | details | <ul><li>min: 6 tokens</li><li>mean: 10.29 tokens</li><li>max: 20 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 12.42 tokens</li><li>max: 25 tokens</li></ul> |
152
+ * Samples:
153
+ | sentence1 | sentence2 |
154
+ |:----------------------------------------------------------|:--------------------------------------------------------|
155
+ | <code>azelast plus 125 / 50 mcg nasal spray 25 ml</code> | <code>azelast plus 125/50 mcg nasal spray 25 ml</code> |
156
+ | <code>ticanase plus 125 / 50 mcg nasal spray 15 ml</code> | <code>ticanase plus 125/50 mcg nasal spray 15 ml</code> |
157
+ | <code>nasostop 0.1% adult nasal drops 15 ml</code> | <code>nasostop 0.1% adult nasal drops 15 ml</code> |
158
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
159
+ ```json
160
+ {
161
+ "scale": 20.0,
162
+ "similarity_fct": "cos_sim"
163
+ }
164
+ ```
165
+
166
+ ### Evaluation Dataset
167
+
168
+ #### Unnamed Dataset
169
+
170
+ * Size: 1,771 evaluation samples
171
+ * Columns: <code>sentence1</code> and <code>sentence2</code>
172
+ * Approximate statistics based on the first 1000 samples:
173
+ | | sentence1 | sentence2 |
174
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
175
+ | type | string | string |
176
+ | details | <ul><li>min: 6 tokens</li><li>mean: 12.13 tokens</li><li>max: 47 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 12.44 tokens</li><li>max: 26 tokens</li></ul> |
177
+ * Samples:
178
+ | sentence1 | sentence2 |
179
+ |:----------------------------------------------------------|:---------------------------------------------|
180
+ | <code>calcibella fortified liquid chocolate 200 gm</code> | <code>كالسيبيلا شيكولاته سائلة 200 جم</code> |
181
+ | <code>glaryl 4 mg 30 tab</code> | <code>glaryl 4mg 30 tab.</code> |
182
+ | <code>pixefresh mouth spray 60 ml</code> | <code>بيكسيفريش بخاخ للفم 60 مل</code> |
183
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
184
+ ```json
185
+ {
186
+ "scale": 20.0,
187
+ "similarity_fct": "cos_sim"
188
+ }
189
+ ```
190
+
191
+ ### Training Hyperparameters
192
+ #### Non-Default Hyperparameters
193
+
194
+ - `eval_strategy`: steps
195
+ - `per_device_train_batch_size`: 16
196
+ - `per_device_eval_batch_size`: 16
197
+ - `num_train_epochs`: 15
198
+ - `warmup_ratio`: 0.1
199
+ - `fp16`: True
200
+ - `load_best_model_at_end`: True
201
+
202
+ #### All Hyperparameters
203
+ <details><summary>Click to expand</summary>
204
+
205
+ - `overwrite_output_dir`: False
206
+ - `do_predict`: False
207
+ - `eval_strategy`: steps
208
+ - `prediction_loss_only`: True
209
+ - `per_device_train_batch_size`: 16
210
+ - `per_device_eval_batch_size`: 16
211
+ - `per_gpu_train_batch_size`: None
212
+ - `per_gpu_eval_batch_size`: None
213
+ - `gradient_accumulation_steps`: 1
214
+ - `eval_accumulation_steps`: None
215
+ - `torch_empty_cache_steps`: None
216
+ - `learning_rate`: 5e-05
217
+ - `weight_decay`: 0.0
218
+ - `adam_beta1`: 0.9
219
+ - `adam_beta2`: 0.999
220
+ - `adam_epsilon`: 1e-08
221
+ - `max_grad_norm`: 1.0
222
+ - `num_train_epochs`: 15
223
+ - `max_steps`: -1
224
+ - `lr_scheduler_type`: linear
225
+ - `lr_scheduler_kwargs`: {}
226
+ - `warmup_ratio`: 0.1
227
+ - `warmup_steps`: 0
228
+ - `log_level`: passive
229
+ - `log_level_replica`: warning
230
+ - `log_on_each_node`: True
231
+ - `logging_nan_inf_filter`: True
232
+ - `save_safetensors`: True
233
+ - `save_on_each_node`: False
234
+ - `save_only_model`: False
235
+ - `restore_callback_states_from_checkpoint`: False
236
+ - `no_cuda`: False
237
+ - `use_cpu`: False
238
+ - `use_mps_device`: False
239
+ - `seed`: 42
240
+ - `data_seed`: None
241
+ - `jit_mode_eval`: False
242
+ - `use_ipex`: False
243
+ - `bf16`: False
244
+ - `fp16`: True
245
+ - `fp16_opt_level`: O1
246
+ - `half_precision_backend`: auto
247
+ - `bf16_full_eval`: False
248
+ - `fp16_full_eval`: False
249
+ - `tf32`: None
250
+ - `local_rank`: 0
251
+ - `ddp_backend`: None
252
+ - `tpu_num_cores`: None
253
+ - `tpu_metrics_debug`: False
254
+ - `debug`: []
255
+ - `dataloader_drop_last`: False
256
+ - `dataloader_num_workers`: 0
257
+ - `dataloader_prefetch_factor`: None
258
+ - `past_index`: -1
259
+ - `disable_tqdm`: False
260
+ - `remove_unused_columns`: True
261
+ - `label_names`: None
262
+ - `load_best_model_at_end`: True
263
+ - `ignore_data_skip`: False
264
+ - `fsdp`: []
265
+ - `fsdp_min_num_params`: 0
266
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
267
+ - `tp_size`: 0
268
+ - `fsdp_transformer_layer_cls_to_wrap`: None
269
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
270
+ - `deepspeed`: None
271
+ - `label_smoothing_factor`: 0.0
272
+ - `optim`: adamw_torch
273
+ - `optim_args`: None
274
+ - `adafactor`: False
275
+ - `group_by_length`: False
276
+ - `length_column_name`: length
277
+ - `ddp_find_unused_parameters`: None
278
+ - `ddp_bucket_cap_mb`: None
279
+ - `ddp_broadcast_buffers`: False
280
+ - `dataloader_pin_memory`: True
281
+ - `dataloader_persistent_workers`: False
282
+ - `skip_memory_metrics`: True
283
+ - `use_legacy_prediction_loop`: False
284
+ - `push_to_hub`: False
285
+ - `resume_from_checkpoint`: None
286
+ - `hub_model_id`: None
287
+ - `hub_strategy`: every_save
288
+ - `hub_private_repo`: None
289
+ - `hub_always_push`: False
290
+ - `gradient_checkpointing`: False
291
+ - `gradient_checkpointing_kwargs`: None
292
+ - `include_inputs_for_metrics`: False
293
+ - `include_for_metrics`: []
294
+ - `eval_do_concat_batches`: True
295
+ - `fp16_backend`: auto
296
+ - `push_to_hub_model_id`: None
297
+ - `push_to_hub_organization`: None
298
+ - `mp_parameters`:
299
+ - `auto_find_batch_size`: False
300
+ - `full_determinism`: False
301
+ - `torchdynamo`: None
302
+ - `ray_scope`: last
303
+ - `ddp_timeout`: 1800
304
+ - `torch_compile`: False
305
+ - `torch_compile_backend`: None
306
+ - `torch_compile_mode`: None
307
+ - `dispatch_batches`: None
308
+ - `split_batches`: None
309
+ - `include_tokens_per_second`: False
310
+ - `include_num_input_tokens_seen`: False
311
+ - `neftune_noise_alpha`: None
312
+ - `optim_target_modules`: None
313
+ - `batch_eval_metrics`: False
314
+ - `eval_on_start`: False
315
+ - `use_liger_kernel`: False
316
+ - `eval_use_gather_object`: False
317
+ - `average_tokens_across_devices`: False
318
+ - `prompts`: None
319
+ - `batch_sampler`: batch_sampler
320
+ - `multi_dataset_batch_sampler`: proportional
321
+
322
+ </details>
323
+
324
+ ### Training Logs
325
+ <details><summary>Click to expand</summary>
326
+
327
+ | Epoch | Step | Training Loss | Validation Loss |
328
+ |:-----------:|:---------:|:-------------:|:---------------:|
329
+ | 0.0903 | 100 | 1.123 | - |
330
+ | 0.1807 | 200 | 0.2605 | - |
331
+ | 0.2710 | 300 | 0.1432 | - |
332
+ | 0.3613 | 400 | 0.1151 | - |
333
+ | 0.4517 | 500 | 0.09 | - |
334
+ | 0.5420 | 600 | 0.0666 | - |
335
+ | 0.6323 | 700 | 0.0534 | - |
336
+ | 0.7227 | 800 | 0.0593 | - |
337
+ | 0.8130 | 900 | 0.0484 | - |
338
+ | 0.9033 | 1000 | 0.0652 | 0.0302 |
339
+ | 0.9937 | 1100 | 0.0441 | - |
340
+ | 1.0840 | 1200 | 0.0333 | - |
341
+ | 1.1743 | 1300 | 0.0395 | - |
342
+ | 1.2647 | 1400 | 0.0357 | - |
343
+ | 1.3550 | 1500 | 0.0351 | - |
344
+ | 1.4453 | 1600 | 0.0338 | - |
345
+ | 1.5357 | 1700 | 0.0365 | - |
346
+ | 1.6260 | 1800 | 0.0518 | - |
347
+ | 1.7164 | 1900 | 0.0426 | - |
348
+ | 1.8067 | 2000 | 0.0312 | 0.0234 |
349
+ | 1.8970 | 2100 | 0.041 | - |
350
+ | 1.9874 | 2200 | 0.0401 | - |
351
+ | 2.0777 | 2300 | 0.0177 | - |
352
+ | 2.1680 | 2400 | 0.0216 | - |
353
+ | 2.2584 | 2500 | 0.0203 | - |
354
+ | 2.3487 | 2600 | 0.0184 | - |
355
+ | 2.4390 | 2700 | 0.0203 | - |
356
+ | 2.5294 | 2800 | 0.024 | - |
357
+ | 2.6197 | 2900 | 0.0154 | - |
358
+ | 2.7100 | 3000 | 0.0292 | 0.0147 |
359
+ | 2.8004 | 3100 | 0.025 | - |
360
+ | 2.8907 | 3200 | 0.02 | - |
361
+ | 2.9810 | 3300 | 0.0187 | - |
362
+ | 3.0714 | 3400 | 0.0264 | - |
363
+ | 3.1617 | 3500 | 0.0153 | - |
364
+ | 3.2520 | 3600 | 0.01 | - |
365
+ | 3.3424 | 3700 | 0.0156 | - |
366
+ | 3.4327 | 3800 | 0.014 | - |
367
+ | 3.5230 | 3900 | 0.027 | - |
368
+ | 3.6134 | 4000 | 0.014 | 0.0093 |
369
+ | 3.7037 | 4100 | 0.0134 | - |
370
+ | 3.7940 | 4200 | 0.0127 | - |
371
+ | 3.8844 | 4300 | 0.0223 | - |
372
+ | 3.9747 | 4400 | 0.0137 | - |
373
+ | 4.0650 | 4500 | 0.01 | - |
374
+ | 4.1554 | 4600 | 0.0135 | - |
375
+ | 4.2457 | 4700 | 0.0082 | - |
376
+ | 4.3360 | 4800 | 0.013 | - |
377
+ | 4.4264 | 4900 | 0.0075 | - |
378
+ | 4.5167 | 5000 | 0.0064 | 0.0060 |
379
+ | 4.6070 | 5100 | 0.0113 | - |
380
+ | 4.6974 | 5200 | 0.0109 | - |
381
+ | 4.7877 | 5300 | 0.0116 | - |
382
+ | 4.8780 | 5400 | 0.0105 | - |
383
+ | 4.9684 | 5500 | 0.0074 | - |
384
+ | 5.0587 | 5600 | 0.0084 | - |
385
+ | 5.1491 | 5700 | 0.0111 | - |
386
+ | 5.2394 | 5800 | 0.0027 | - |
387
+ | 5.3297 | 5900 | 0.0066 | - |
388
+ | 5.4201 | 6000 | 0.0064 | 0.0045 |
389
+ | 5.5104 | 6100 | 0.0044 | - |
390
+ | 5.6007 | 6200 | 0.0096 | - |
391
+ | 5.6911 | 6300 | 0.0065 | - |
392
+ | 5.7814 | 6400 | 0.0093 | - |
393
+ | 5.8717 | 6500 | 0.0136 | - |
394
+ | 5.9621 | 6600 | 0.0214 | - |
395
+ | 6.0524 | 6700 | 0.0054 | - |
396
+ | 6.1427 | 6800 | 0.0028 | - |
397
+ | 6.2331 | 6900 | 0.008 | - |
398
+ | 6.3234 | 7000 | 0.0115 | 0.0021 |
399
+ | 6.4137 | 7100 | 0.0045 | - |
400
+ | 6.5041 | 7200 | 0.0053 | - |
401
+ | 6.5944 | 7300 | 0.0083 | - |
402
+ | 6.6847 | 7400 | 0.0081 | - |
403
+ | 6.7751 | 7500 | 0.0035 | - |
404
+ | 6.8654 | 7600 | 0.0081 | - |
405
+ | 6.9557 | 7700 | 0.0063 | - |
406
+ | 7.0461 | 7800 | 0.0056 | - |
407
+ | 7.1364 | 7900 | 0.0034 | - |
408
+ | 7.2267 | 8000 | 0.0069 | 0.0025 |
409
+ | 7.3171 | 8100 | 0.0026 | - |
410
+ | 7.4074 | 8200 | 0.0047 | - |
411
+ | 7.4977 | 8300 | 0.0034 | - |
412
+ | 7.5881 | 8400 | 0.0052 | - |
413
+ | 7.6784 | 8500 | 0.0081 | - |
414
+ | 7.7687 | 8600 | 0.0023 | - |
415
+ | 7.8591 | 8700 | 0.004 | - |
416
+ | 7.9494 | 8800 | 0.004 | - |
417
+ | 8.0397 | 8900 | 0.003 | - |
418
+ | 8.1301 | 9000 | 0.0032 | 0.0031 |
419
+ | 8.2204 | 9100 | 0.0054 | - |
420
+ | 8.3107 | 9200 | 0.0058 | - |
421
+ | 8.4011 | 9300 | 0.0044 | - |
422
+ | 8.4914 | 9400 | 0.0029 | - |
423
+ | 8.5818 | 9500 | 0.0039 | - |
424
+ | 8.6721 | 9600 | 0.0033 | - |
425
+ | 8.7624 | 9700 | 0.0061 | - |
426
+ | 8.8528 | 9800 | 0.0029 | - |
427
+ | 8.9431 | 9900 | 0.0037 | - |
428
+ | 9.0334 | 10000 | 0.0024 | 0.0020 |
429
+ | 9.1238 | 10100 | 0.0046 | - |
430
+ | 9.2141 | 10200 | 0.0037 | - |
431
+ | 9.3044 | 10300 | 0.0041 | - |
432
+ | 9.3948 | 10400 | 0.0064 | - |
433
+ | 9.4851 | 10500 | 0.0058 | - |
434
+ | 9.5754 | 10600 | 0.0058 | - |
435
+ | 9.6658 | 10700 | 0.0031 | - |
436
+ | 9.7561 | 10800 | 0.0015 | - |
437
+ | 9.8464 | 10900 | 0.0037 | - |
438
+ | 9.9368 | 11000 | 0.0045 | 0.0013 |
439
+ | 10.0271 | 11100 | 0.0038 | - |
440
+ | 10.1174 | 11200 | 0.0027 | - |
441
+ | 10.2078 | 11300 | 0.0061 | - |
442
+ | 10.2981 | 11400 | 0.0046 | - |
443
+ | 10.3884 | 11500 | 0.0028 | - |
444
+ | 10.4788 | 11600 | 0.0021 | - |
445
+ | 10.5691 | 11700 | 0.0029 | - |
446
+ | 10.6594 | 11800 | 0.005 | - |
447
+ | 10.7498 | 11900 | 0.002 | - |
448
+ | 10.8401 | 12000 | 0.0058 | 0.0012 |
449
+ | 10.9304 | 12100 | 0.003 | - |
450
+ | 11.0208 | 12200 | 0.0005 | - |
451
+ | 11.1111 | 12300 | 0.0022 | - |
452
+ | 11.2014 | 12400 | 0.0046 | - |
453
+ | 11.2918 | 12500 | 0.0028 | - |
454
+ | 11.3821 | 12600 | 0.0016 | - |
455
+ | 11.4724 | 12700 | 0.0026 | - |
456
+ | 11.5628 | 12800 | 0.0025 | - |
457
+ | 11.6531 | 12900 | 0.0009 | - |
458
+ | 11.7435 | 13000 | 0.0022 | 0.0014 |
459
+ | 11.8338 | 13100 | 0.0021 | - |
460
+ | 11.9241 | 13200 | 0.0018 | - |
461
+ | 12.0145 | 13300 | 0.0032 | - |
462
+ | 12.1048 | 13400 | 0.0024 | - |
463
+ | 12.1951 | 13500 | 0.0029 | - |
464
+ | 12.2855 | 13600 | 0.0009 | - |
465
+ | 12.3758 | 13700 | 0.0009 | - |
466
+ | 12.4661 | 13800 | 0.002 | - |
467
+ | 12.5565 | 13900 | 0.0026 | - |
468
+ | 12.6468 | 14000 | 0.0008 | 0.0011 |
469
+ | 12.7371 | 14100 | 0.0016 | - |
470
+ | 12.8275 | 14200 | 0.0012 | - |
471
+ | 12.9178 | 14300 | 0.0009 | - |
472
+ | 13.0081 | 14400 | 0.0013 | - |
473
+ | 13.0985 | 14500 | 0.0013 | - |
474
+ | 13.1888 | 14600 | 0.004 | - |
475
+ | 13.2791 | 14700 | 0.0006 | - |
476
+ | 13.3695 | 14800 | 0.0025 | - |
477
+ | 13.4598 | 14900 | 0.0004 | - |
478
+ | 13.5501 | 15000 | 0.0021 | 0.0010 |
479
+ | 13.6405 | 15100 | 0.0023 | - |
480
+ | 13.7308 | 15200 | 0.0054 | - |
481
+ | 13.8211 | 15300 | 0.0014 | - |
482
+ | 13.9115 | 15400 | 0.0028 | - |
483
+ | 14.0018 | 15500 | 0.0008 | - |
484
+ | 14.0921 | 15600 | 0.0006 | - |
485
+ | 14.1825 | 15700 | 0.0015 | - |
486
+ | 14.2728 | 15800 | 0.0004 | - |
487
+ | 14.3631 | 15900 | 0.005 | - |
488
+ | **14.4535** | **16000** | **0.0009** | **0.0011** |
489
+ | 14.5438 | 16100 | 0.0022 | - |
490
+ | 14.6341 | 16200 | 0.0015 | - |
491
+ | 14.7245 | 16300 | 0.0021 | - |
492
+ | 14.8148 | 16400 | 0.0012 | - |
493
+ | 14.9051 | 16500 | 0.0005 | - |
494
+ | 14.9955 | 16600 | 0.0019 | - |
495
+
496
+ * The bold row denotes the saved checkpoint.
497
+ </details>
498
+
499
+ ### Framework Versions
500
+ - Python: 3.11.11
501
+ - Sentence Transformers: 4.0.2
502
+ - Transformers: 4.50.3
503
+ - PyTorch: 2.6.0+cu124
504
+ - Accelerate: 1.5.2
505
+ - Datasets: 3.5.0
506
+ - Tokenizers: 0.21.1
507
+
508
+ ## Citation
509
+
510
+ ### BibTeX
511
+
512
+ #### Sentence Transformers
513
+ ```bibtex
514
+ @inproceedings{reimers-2019-sentence-bert,
515
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
516
+ author = "Reimers, Nils and Gurevych, Iryna",
517
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
518
+ month = "11",
519
+ year = "2019",
520
+ publisher = "Association for Computational Linguistics",
521
+ url = "https://arxiv.org/abs/1908.10084",
522
+ }
523
+ ```
524
+
525
+ #### MultipleNegativesRankingLoss
526
+ ```bibtex
527
+ @misc{henderson2017efficient,
528
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
529
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
530
+ year={2017},
531
+ eprint={1705.00652},
532
+ archivePrefix={arXiv},
533
+ primaryClass={cs.CL}
534
+ }
535
+ ```
536
+
537
+ <!--
538
+ ## Glossary
539
+
540
+ *Clearly define terms in order to be accessible across audiences.*
541
+ -->
542
+
543
+ <!--
544
+ ## Model Card Authors
545
+
546
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
547
+ -->
548
+
549
+ <!--
550
+ ## Model Card Contact
551
+
552
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
553
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 384,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 1536,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.50.3",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 250037
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "4.0.2",
4
+ "transformers": "4.50.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f07b1f8e15f2453da4c62341488623502f27b8cec9c33e3b315bb0f51e53b24e
3
+ size 470637416
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 128,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719
3
+ size 17082987
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "<s>",
47
+ "do_lower_case": true,
48
+ "eos_token": "</s>",
49
+ "extra_special_tokens": {},
50
+ "mask_token": "<mask>",
51
+ "max_length": 128,
52
+ "model_max_length": 128,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "<pad>",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "</s>",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "<unk>"
65
+ }
unigram.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
3
+ size 14763260