juanpablomesa commited on
Commit
b0a391e
1 Parent(s): fc54445

Add new SentenceTransformer model.

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
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,476 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/all-mpnet-base-v2
3
+ datasets: []
4
+ language:
5
+ - en
6
+ library_name: sentence-transformers
7
+ license: apache-2.0
8
+ metrics:
9
+ - cosine_accuracy@1
10
+ - cosine_accuracy@3
11
+ - cosine_accuracy@5
12
+ - cosine_accuracy@10
13
+ - cosine_precision@1
14
+ - cosine_precision@3
15
+ - cosine_precision@5
16
+ - cosine_precision@10
17
+ - cosine_recall@1
18
+ - cosine_recall@3
19
+ - cosine_recall@5
20
+ - cosine_recall@10
21
+ - cosine_ndcg@10
22
+ - cosine_mrr@10
23
+ - cosine_map@100
24
+ pipeline_tag: sentence-similarity
25
+ tags:
26
+ - sentence-transformers
27
+ - sentence-similarity
28
+ - feature-extraction
29
+ - generated_from_trainer
30
+ - dataset_size:4012
31
+ - loss:MultipleNegativesRankingLoss
32
+ widget:
33
+ - source_sentence: 'Extensive messenger RNA editing generates transcript and protein
34
+ diversity in genes involved in neural excitability, as previously described, as
35
+ well as in genes participating in a broad range of other cellular functions. '
36
+ sentences:
37
+ - Do cephalopods use RNA editing less frequently than other species?
38
+ - GV1001 vaccine targets which enzyme?
39
+ - Which event results in the acetylation of S6K1?
40
+ - source_sentence: Yes, exposure to household furry pets influences the gut microbiota
41
+ of infants.
42
+ sentences:
43
+ - Can pets affect infant microbiomed?
44
+ - What is the mode of action of Thiazovivin?
45
+ - What are the effects of CAMK4 inhibition?
46
+ - source_sentence: "In children with heart failure evidence of the effect of enalapril\
47
+ \ is empirical. Enalapril was clinically safe and effective in 50% to 80% of for\
48
+ \ children with cardiac failure secondary to congenital heart malformations before\
49
+ \ and after cardiac surgery, impaired ventricular function , valvar regurgitation,\
50
+ \ congestive cardiomyopathy, , arterial hypertension, life-threatening arrhythmias\
51
+ \ coexisting with circulatory insufficiency. \nACE inhibitors have shown a transient\
52
+ \ beneficial effect on heart failure due to anticancer drugs and possibly a beneficial\
53
+ \ effect in muscular dystrophy-associated cardiomyopathy, which deserves further\
54
+ \ studies."
55
+ sentences:
56
+ - Which receptors can be evaluated with the [18F]altanserin?
57
+ - In what proportion of children with heart failure has Enalapril been shown to
58
+ be safe and effective?
59
+ - Which major signaling pathways are regulated by RIP1?
60
+ - source_sentence: Cellular senescence-associated heterochromatic foci (SAHFS) are
61
+ a novel type of chromatin condensation involving alterations of linker histone
62
+ H1 and linker DNA-binding proteins. SAHFS can be formed by a variety of cell types,
63
+ but their mechanism of action remains unclear.
64
+ sentences:
65
+ - What is the relationship between the X chromosome and a neutrophil drumstick?
66
+ - Which microRNAs are involved in exercise adaptation?
67
+ - How are SAHFS created?
68
+ - source_sentence: Multicluster Pcdh diversity is required for mouse olfactory neural
69
+ circuit assembly. The vertebrate clustered protocadherin (Pcdh) cell surface proteins
70
+ are encoded by three closely linked gene clusters (Pcdhα, Pcdhβ, and Pcdhγ). Although
71
+ deletion of individual Pcdh clusters had subtle phenotypic consequences, the loss
72
+ of all three clusters (tricluster deletion) led to a severe axonal arborization
73
+ defect and loss of self-avoidance.
74
+ sentences:
75
+ - What are the effects of the deletion of all three Pcdh clusters (tricluster deletion)
76
+ in mice?
77
+ - what is the role of MEF-2 in cardiomyocyte differentiation?
78
+ - How many periods of regulatory innovation led to the evolution of vertebrates?
79
+ model-index:
80
+ - name: BGE small finetuned BIOASQ
81
+ results:
82
+ - task:
83
+ type: information-retrieval
84
+ name: Information Retrieval
85
+ dataset:
86
+ name: sentence transformers/all mpnet base v2
87
+ type: sentence-transformers/all-mpnet-base-v2
88
+ metrics:
89
+ - type: cosine_accuracy@1
90
+ value: 0.8458274398868458
91
+ name: Cosine Accuracy@1
92
+ - type: cosine_accuracy@3
93
+ value: 0.9349363507779349
94
+ name: Cosine Accuracy@3
95
+ - type: cosine_accuracy@5
96
+ value: 0.9476661951909476
97
+ name: Cosine Accuracy@5
98
+ - type: cosine_accuracy@10
99
+ value: 0.9603960396039604
100
+ name: Cosine Accuracy@10
101
+ - type: cosine_precision@1
102
+ value: 0.8458274398868458
103
+ name: Cosine Precision@1
104
+ - type: cosine_precision@3
105
+ value: 0.3116454502593117
106
+ name: Cosine Precision@3
107
+ - type: cosine_precision@5
108
+ value: 0.1895332390381895
109
+ name: Cosine Precision@5
110
+ - type: cosine_precision@10
111
+ value: 0.09603960396039603
112
+ name: Cosine Precision@10
113
+ - type: cosine_recall@1
114
+ value: 0.8458274398868458
115
+ name: Cosine Recall@1
116
+ - type: cosine_recall@3
117
+ value: 0.9349363507779349
118
+ name: Cosine Recall@3
119
+ - type: cosine_recall@5
120
+ value: 0.9476661951909476
121
+ name: Cosine Recall@5
122
+ - type: cosine_recall@10
123
+ value: 0.9603960396039604
124
+ name: Cosine Recall@10
125
+ - type: cosine_ndcg@10
126
+ value: 0.9092722406676912
127
+ name: Cosine Ndcg@10
128
+ - type: cosine_mrr@10
129
+ value: 0.8922532049123282
130
+ name: Cosine Mrr@10
131
+ - type: cosine_map@100
132
+ value: 0.8936600133157465
133
+ name: Cosine Map@100
134
+ ---
135
+
136
+ # BGE small finetuned BIOASQ
137
+
138
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
139
+
140
+ ## Model Details
141
+
142
+ ### Model Description
143
+ - **Model Type:** Sentence Transformer
144
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision 84f2bcc00d77236f9e89c8a360a00fb1139bf47d -->
145
+ - **Maximum Sequence Length:** 384 tokens
146
+ - **Output Dimensionality:** 768 tokens
147
+ - **Similarity Function:** Cosine Similarity
148
+ <!-- - **Training Dataset:** Unknown -->
149
+ - **Language:** en
150
+ - **License:** apache-2.0
151
+
152
+ ### Model Sources
153
+
154
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
155
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
156
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
157
+
158
+ ### Full Model Architecture
159
+
160
+ ```
161
+ SentenceTransformer(
162
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel
163
+ (1): Pooling({'word_embedding_dimension': 768, '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})
164
+ (2): Normalize()
165
+ )
166
+ ```
167
+
168
+ ## Usage
169
+
170
+ ### Direct Usage (Sentence Transformers)
171
+
172
+ First install the Sentence Transformers library:
173
+
174
+ ```bash
175
+ pip install -U sentence-transformers
176
+ ```
177
+
178
+ Then you can load this model and run inference.
179
+ ```python
180
+ from sentence_transformers import SentenceTransformer
181
+
182
+ # Download from the 🤗 Hub
183
+ model = SentenceTransformer("juanpablomesa/all-mpnet-base-v2-bioasq-1epoc-batch32-100")
184
+ # Run inference
185
+ sentences = [
186
+ 'Multicluster Pcdh diversity is required for mouse olfactory neural circuit assembly. The vertebrate clustered protocadherin (Pcdh) cell surface proteins are encoded by three closely linked gene clusters (Pcdhα, Pcdhβ, and Pcdhγ). Although deletion of individual Pcdh clusters had subtle phenotypic consequences, the loss of all three clusters (tricluster deletion) led to a severe axonal arborization defect and loss of self-avoidance.',
187
+ 'What are the effects of the deletion of all three Pcdh clusters (tricluster deletion) in mice?',
188
+ 'How many periods of regulatory innovation led to the evolution of vertebrates?',
189
+ ]
190
+ embeddings = model.encode(sentences)
191
+ print(embeddings.shape)
192
+ # [3, 768]
193
+
194
+ # Get the similarity scores for the embeddings
195
+ similarities = model.similarity(embeddings, embeddings)
196
+ print(similarities.shape)
197
+ # [3, 3]
198
+ ```
199
+
200
+ <!--
201
+ ### Direct Usage (Transformers)
202
+
203
+ <details><summary>Click to see the direct usage in Transformers</summary>
204
+
205
+ </details>
206
+ -->
207
+
208
+ <!--
209
+ ### Downstream Usage (Sentence Transformers)
210
+
211
+ You can finetune this model on your own dataset.
212
+
213
+ <details><summary>Click to expand</summary>
214
+
215
+ </details>
216
+ -->
217
+
218
+ <!--
219
+ ### Out-of-Scope Use
220
+
221
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
222
+ -->
223
+
224
+ ## Evaluation
225
+
226
+ ### Metrics
227
+
228
+ #### Information Retrieval
229
+ * Dataset: `sentence-transformers/all-mpnet-base-v2`
230
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
231
+
232
+ | Metric | Value |
233
+ |:--------------------|:-----------|
234
+ | cosine_accuracy@1 | 0.8458 |
235
+ | cosine_accuracy@3 | 0.9349 |
236
+ | cosine_accuracy@5 | 0.9477 |
237
+ | cosine_accuracy@10 | 0.9604 |
238
+ | cosine_precision@1 | 0.8458 |
239
+ | cosine_precision@3 | 0.3116 |
240
+ | cosine_precision@5 | 0.1895 |
241
+ | cosine_precision@10 | 0.096 |
242
+ | cosine_recall@1 | 0.8458 |
243
+ | cosine_recall@3 | 0.9349 |
244
+ | cosine_recall@5 | 0.9477 |
245
+ | cosine_recall@10 | 0.9604 |
246
+ | cosine_ndcg@10 | 0.9093 |
247
+ | cosine_mrr@10 | 0.8923 |
248
+ | **cosine_map@100** | **0.8937** |
249
+
250
+ <!--
251
+ ## Bias, Risks and Limitations
252
+
253
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
254
+ -->
255
+
256
+ <!--
257
+ ### Recommendations
258
+
259
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
260
+ -->
261
+
262
+ ## Training Details
263
+
264
+ ### Training Dataset
265
+
266
+ #### Unnamed Dataset
267
+
268
+
269
+ * Size: 4,012 training samples
270
+ * Columns: <code>positive</code> and <code>anchor</code>
271
+ * Approximate statistics based on the first 1000 samples:
272
+ | | positive | anchor |
273
+ |:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
274
+ | type | string | string |
275
+ | details | <ul><li>min: 3 tokens</li><li>mean: 63.14 tokens</li><li>max: 384 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 16.13 tokens</li><li>max: 49 tokens</li></ul> |
276
+ * Samples:
277
+ | positive | anchor |
278
+ |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------|
279
+ | <code>Aberrant patterns of H3K4, H3K9, and H3K27 histone lysine methylation were shown to result in histone code alterations, which induce changes in gene expression, and affect the proliferation rate of cells in medulloblastoma.</code> | <code>What is the implication of histone lysine methylation in medulloblastoma?</code> |
280
+ | <code>STAG1/STAG2 proteins are tumour suppressor proteins that suppress cell proliferation and are essential for differentiation.</code> | <code>What is the role of STAG1/STAG2 proteins in differentiation?</code> |
281
+ | <code>The association between cell phone use and incident glioblastoma remains unclear. Some studies have reported that cell phone use was associated with incident glioblastoma, and with reduced survival of patients diagnosed with glioblastoma. However, other studies have repeatedly replicated to find an association between cell phone use and glioblastoma.</code> | <code>What is the association between cell phone use and glioblastoma?</code> |
282
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
283
+ ```json
284
+ {
285
+ "scale": 20.0,
286
+ "similarity_fct": "cos_sim"
287
+ }
288
+ ```
289
+
290
+ ### Training Hyperparameters
291
+ #### Non-Default Hyperparameters
292
+
293
+ - `eval_strategy`: steps
294
+ - `per_device_train_batch_size`: 32
295
+ - `per_device_eval_batch_size`: 16
296
+ - `learning_rate`: 2e-05
297
+ - `num_train_epochs`: 1
298
+ - `warmup_ratio`: 0.1
299
+ - `fp16`: True
300
+ - `batch_sampler`: no_duplicates
301
+
302
+ #### All Hyperparameters
303
+ <details><summary>Click to expand</summary>
304
+
305
+ - `overwrite_output_dir`: False
306
+ - `do_predict`: False
307
+ - `eval_strategy`: steps
308
+ - `prediction_loss_only`: True
309
+ - `per_device_train_batch_size`: 32
310
+ - `per_device_eval_batch_size`: 16
311
+ - `per_gpu_train_batch_size`: None
312
+ - `per_gpu_eval_batch_size`: None
313
+ - `gradient_accumulation_steps`: 1
314
+ - `eval_accumulation_steps`: None
315
+ - `learning_rate`: 2e-05
316
+ - `weight_decay`: 0.0
317
+ - `adam_beta1`: 0.9
318
+ - `adam_beta2`: 0.999
319
+ - `adam_epsilon`: 1e-08
320
+ - `max_grad_norm`: 1.0
321
+ - `num_train_epochs`: 1
322
+ - `max_steps`: -1
323
+ - `lr_scheduler_type`: linear
324
+ - `lr_scheduler_kwargs`: {}
325
+ - `warmup_ratio`: 0.1
326
+ - `warmup_steps`: 0
327
+ - `log_level`: passive
328
+ - `log_level_replica`: warning
329
+ - `log_on_each_node`: True
330
+ - `logging_nan_inf_filter`: True
331
+ - `save_safetensors`: True
332
+ - `save_on_each_node`: False
333
+ - `save_only_model`: False
334
+ - `restore_callback_states_from_checkpoint`: False
335
+ - `no_cuda`: False
336
+ - `use_cpu`: False
337
+ - `use_mps_device`: False
338
+ - `seed`: 42
339
+ - `data_seed`: None
340
+ - `jit_mode_eval`: False
341
+ - `use_ipex`: False
342
+ - `bf16`: False
343
+ - `fp16`: True
344
+ - `fp16_opt_level`: O1
345
+ - `half_precision_backend`: auto
346
+ - `bf16_full_eval`: False
347
+ - `fp16_full_eval`: False
348
+ - `tf32`: None
349
+ - `local_rank`: 0
350
+ - `ddp_backend`: None
351
+ - `tpu_num_cores`: None
352
+ - `tpu_metrics_debug`: False
353
+ - `debug`: []
354
+ - `dataloader_drop_last`: False
355
+ - `dataloader_num_workers`: 0
356
+ - `dataloader_prefetch_factor`: None
357
+ - `past_index`: -1
358
+ - `disable_tqdm`: False
359
+ - `remove_unused_columns`: True
360
+ - `label_names`: None
361
+ - `load_best_model_at_end`: False
362
+ - `ignore_data_skip`: False
363
+ - `fsdp`: []
364
+ - `fsdp_min_num_params`: 0
365
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
366
+ - `fsdp_transformer_layer_cls_to_wrap`: None
367
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
368
+ - `deepspeed`: None
369
+ - `label_smoothing_factor`: 0.0
370
+ - `optim`: adamw_torch
371
+ - `optim_args`: None
372
+ - `adafactor`: False
373
+ - `group_by_length`: False
374
+ - `length_column_name`: length
375
+ - `ddp_find_unused_parameters`: None
376
+ - `ddp_bucket_cap_mb`: None
377
+ - `ddp_broadcast_buffers`: False
378
+ - `dataloader_pin_memory`: True
379
+ - `dataloader_persistent_workers`: False
380
+ - `skip_memory_metrics`: True
381
+ - `use_legacy_prediction_loop`: False
382
+ - `push_to_hub`: False
383
+ - `resume_from_checkpoint`: None
384
+ - `hub_model_id`: None
385
+ - `hub_strategy`: every_save
386
+ - `hub_private_repo`: False
387
+ - `hub_always_push`: False
388
+ - `gradient_checkpointing`: False
389
+ - `gradient_checkpointing_kwargs`: None
390
+ - `include_inputs_for_metrics`: False
391
+ - `eval_do_concat_batches`: True
392
+ - `fp16_backend`: auto
393
+ - `push_to_hub_model_id`: None
394
+ - `push_to_hub_organization`: None
395
+ - `mp_parameters`:
396
+ - `auto_find_batch_size`: False
397
+ - `full_determinism`: False
398
+ - `torchdynamo`: None
399
+ - `ray_scope`: last
400
+ - `ddp_timeout`: 1800
401
+ - `torch_compile`: False
402
+ - `torch_compile_backend`: None
403
+ - `torch_compile_mode`: None
404
+ - `dispatch_batches`: None
405
+ - `split_batches`: None
406
+ - `include_tokens_per_second`: False
407
+ - `include_num_input_tokens_seen`: False
408
+ - `neftune_noise_alpha`: None
409
+ - `optim_target_modules`: None
410
+ - `batch_eval_metrics`: False
411
+ - `batch_sampler`: no_duplicates
412
+ - `multi_dataset_batch_sampler`: proportional
413
+
414
+ </details>
415
+
416
+ ### Training Logs
417
+ | Epoch | Step | Training Loss | sentence-transformers/all-mpnet-base-v2_cosine_map@100 |
418
+ |:------:|:----:|:-------------:|:------------------------------------------------------:|
419
+ | 0.7937 | 100 | 0.1155 | 0.8937 |
420
+
421
+
422
+ ### Framework Versions
423
+ - Python: 3.11.5
424
+ - Sentence Transformers: 3.0.1
425
+ - Transformers: 4.41.2
426
+ - PyTorch: 2.1.2+cu121
427
+ - Accelerate: 0.31.0
428
+ - Datasets: 2.19.1
429
+ - Tokenizers: 0.19.1
430
+
431
+ ## Citation
432
+
433
+ ### BibTeX
434
+
435
+ #### Sentence Transformers
436
+ ```bibtex
437
+ @inproceedings{reimers-2019-sentence-bert,
438
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
439
+ author = "Reimers, Nils and Gurevych, Iryna",
440
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
441
+ month = "11",
442
+ year = "2019",
443
+ publisher = "Association for Computational Linguistics",
444
+ url = "https://arxiv.org/abs/1908.10084",
445
+ }
446
+ ```
447
+
448
+ #### MultipleNegativesRankingLoss
449
+ ```bibtex
450
+ @misc{henderson2017efficient,
451
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
452
+ 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},
453
+ year={2017},
454
+ eprint={1705.00652},
455
+ archivePrefix={arXiv},
456
+ primaryClass={cs.CL}
457
+ }
458
+ ```
459
+
460
+ <!--
461
+ ## Glossary
462
+
463
+ *Clearly define terms in order to be accessible across audiences.*
464
+ -->
465
+
466
+ <!--
467
+ ## Model Card Authors
468
+
469
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
470
+ -->
471
+
472
+ <!--
473
+ ## Model Card Contact
474
+
475
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
476
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/all-mpnet-base-v2",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
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
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.41.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.1.2+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3c48ffa88daf6ab04d8459c7cf6e8820a9e1fc6aefd21eb8637e08d3fd714e3
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 384,
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
54
+ "cls_token": "<s>",
55
+ "do_lower_case": true,
56
+ "eos_token": "</s>",
57
+ "mask_token": "<mask>",
58
+ "max_length": 128,
59
+ "model_max_length": 384,
60
+ "pad_to_multiple_of": null,
61
+ "pad_token": "<pad>",
62
+ "pad_token_type_id": 0,
63
+ "padding_side": "right",
64
+ "sep_token": "</s>",
65
+ "stride": 0,
66
+ "strip_accents": null,
67
+ "tokenize_chinese_chars": true,
68
+ "tokenizer_class": "MPNetTokenizer",
69
+ "truncation_side": "right",
70
+ "truncation_strategy": "longest_first",
71
+ "unk_token": "[UNK]"
72
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff