ivanleomk commited on
Commit
df9ed06
·
verified ·
1 Parent(s): 6edf2a5

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,474 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/mpnet-base
3
+ datasets:
4
+ - sentence-transformers/all-nli
5
+ language:
6
+ - en
7
+ library_name: sentence-transformers
8
+ license: apache-2.0
9
+ metrics:
10
+ - cosine_accuracy
11
+ - dot_accuracy
12
+ - manhattan_accuracy
13
+ - euclidean_accuracy
14
+ - max_accuracy
15
+ pipeline_tag: sentence-similarity
16
+ tags:
17
+ - sentence-transformers
18
+ - sentence-similarity
19
+ - feature-extraction
20
+ - generated_from_trainer
21
+ - dataset_size:557850
22
+ - loss:MultipleNegativesRankingLoss
23
+ widget:
24
+ - source_sentence: A man is jumping unto his filthy bed.
25
+ sentences:
26
+ - A young male is looking at a newspaper while 2 females walks past him.
27
+ - The bed is dirty.
28
+ - The man is on the moon.
29
+ - source_sentence: A carefully balanced male stands on one foot near a clean ocean
30
+ beach area.
31
+ sentences:
32
+ - A man is ouside near the beach.
33
+ - Three policemen patrol the streets on bikes
34
+ - A man is sitting on his couch.
35
+ - source_sentence: The man is wearing a blue shirt.
36
+ sentences:
37
+ - Near the trashcan the man stood and smoked
38
+ - A man in a blue shirt leans on a wall beside a road with a blue van and red car
39
+ with water in the background.
40
+ - A man in a black shirt is playing a guitar.
41
+ - source_sentence: The girls are outdoors.
42
+ sentences:
43
+ - Two girls riding on an amusement part ride.
44
+ - a guy laughs while doing laundry
45
+ - Three girls are standing together in a room, one is listening, one is writing
46
+ on a wall and the third is talking to them.
47
+ - source_sentence: A construction worker peeking out of a manhole while his coworker
48
+ sits on the sidewalk smiling.
49
+ sentences:
50
+ - A worker is looking out of a manhole.
51
+ - A man is giving a presentation.
52
+ - The workers are both inside the manhole.
53
+ model-index:
54
+ - name: MPNet base trained on AllNLI triplets
55
+ results:
56
+ - task:
57
+ type: triplet
58
+ name: Triplet
59
+ dataset:
60
+ name: all nli dev
61
+ type: all-nli-dev
62
+ metrics:
63
+ - type: cosine_accuracy
64
+ value: 0.6210510328068044
65
+ name: Cosine Accuracy
66
+ - type: dot_accuracy
67
+ value: 0.45337181044957475
68
+ name: Dot Accuracy
69
+ - type: manhattan_accuracy
70
+ value: 0.6831713244228432
71
+ name: Manhattan Accuracy
72
+ - type: euclidean_accuracy
73
+ value: 0.62226609963548
74
+ name: Euclidean Accuracy
75
+ - type: max_accuracy
76
+ value: 0.6831713244228432
77
+ name: Max Accuracy
78
+ - task:
79
+ type: triplet
80
+ name: Triplet
81
+ dataset:
82
+ name: all nli test
83
+ type: all-nli-test
84
+ metrics:
85
+ - type: cosine_accuracy
86
+ value: 0.6665153578453624
87
+ name: Cosine Accuracy
88
+ - type: dot_accuracy
89
+ value: 0.4428809199576335
90
+ name: Dot Accuracy
91
+ - type: manhattan_accuracy
92
+ value: 0.7280980481162052
93
+ name: Manhattan Accuracy
94
+ - type: euclidean_accuracy
95
+ value: 0.6639431078831896
96
+ name: Euclidean Accuracy
97
+ - type: max_accuracy
98
+ value: 0.7280980481162052
99
+ name: Max Accuracy
100
+ ---
101
+
102
+ # MPNet base trained on AllNLI triplets
103
+
104
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) on the [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) dataset. 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.
105
+
106
+ ## Model Details
107
+
108
+ ### Model Description
109
+ - **Model Type:** Sentence Transformer
110
+ - **Base model:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) <!-- at revision 6996ce1e91bd2a9c7d7f61daec37463394f73f09 -->
111
+ - **Maximum Sequence Length:** 512 tokens
112
+ - **Output Dimensionality:** 768 tokens
113
+ - **Similarity Function:** Cosine Similarity
114
+ - **Training Dataset:**
115
+ - [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli)
116
+ - **Language:** en
117
+ - **License:** apache-2.0
118
+
119
+ ### Model Sources
120
+
121
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
122
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
123
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
124
+
125
+ ### Full Model Architecture
126
+
127
+ ```
128
+ SentenceTransformer(
129
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
130
+ (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})
131
+ )
132
+ ```
133
+
134
+ ## Usage
135
+
136
+ ### Direct Usage (Sentence Transformers)
137
+
138
+ First install the Sentence Transformers library:
139
+
140
+ ```bash
141
+ pip install -U sentence-transformers
142
+ ```
143
+
144
+ Then you can load this model and run inference.
145
+ ```python
146
+ from sentence_transformers import SentenceTransformer
147
+
148
+ # Download from the 🤗 Hub
149
+ model = SentenceTransformer("ivanleomk/mpnet-base-all-nli-triplet")
150
+ # Run inference
151
+ sentences = [
152
+ 'A construction worker peeking out of a manhole while his coworker sits on the sidewalk smiling.',
153
+ 'A worker is looking out of a manhole.',
154
+ 'The workers are both inside the manhole.',
155
+ ]
156
+ embeddings = model.encode(sentences)
157
+ print(embeddings.shape)
158
+ # [3, 768]
159
+
160
+ # Get the similarity scores for the embeddings
161
+ similarities = model.similarity(embeddings, embeddings)
162
+ print(similarities.shape)
163
+ # [3, 3]
164
+ ```
165
+
166
+ <!--
167
+ ### Direct Usage (Transformers)
168
+
169
+ <details><summary>Click to see the direct usage in Transformers</summary>
170
+
171
+ </details>
172
+ -->
173
+
174
+ <!--
175
+ ### Downstream Usage (Sentence Transformers)
176
+
177
+ You can finetune this model on your own dataset.
178
+
179
+ <details><summary>Click to expand</summary>
180
+
181
+ </details>
182
+ -->
183
+
184
+ <!--
185
+ ### Out-of-Scope Use
186
+
187
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
188
+ -->
189
+
190
+ ## Evaluation
191
+
192
+ ### Metrics
193
+
194
+ #### Triplet
195
+ * Dataset: `all-nli-dev`
196
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
197
+
198
+ | Metric | Value |
199
+ |:-------------------|:-----------|
200
+ | cosine_accuracy | 0.6211 |
201
+ | dot_accuracy | 0.4534 |
202
+ | manhattan_accuracy | 0.6832 |
203
+ | euclidean_accuracy | 0.6223 |
204
+ | **max_accuracy** | **0.6832** |
205
+
206
+ #### Triplet
207
+ * Dataset: `all-nli-test`
208
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
209
+
210
+ | Metric | Value |
211
+ |:-------------------|:-----------|
212
+ | cosine_accuracy | 0.6665 |
213
+ | dot_accuracy | 0.4429 |
214
+ | manhattan_accuracy | 0.7281 |
215
+ | euclidean_accuracy | 0.6639 |
216
+ | **max_accuracy** | **0.7281** |
217
+
218
+ <!--
219
+ ## Bias, Risks and Limitations
220
+
221
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
222
+ -->
223
+
224
+ <!--
225
+ ### Recommendations
226
+
227
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
228
+ -->
229
+
230
+ ## Training Details
231
+
232
+ ### Training Dataset
233
+
234
+ #### all-nli
235
+
236
+ * Dataset: [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
237
+ * Size: 557,850 training samples
238
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
239
+ * Approximate statistics based on the first 1000 samples:
240
+ | | anchor | positive | negative |
241
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
242
+ | type | string | string | string |
243
+ | details | <ul><li>min: 8 tokens</li><li>mean: 14.85 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 13.55 tokens</li><li>max: 24 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 15.1 tokens</li><li>max: 30 tokens</li></ul> |
244
+ * Samples:
245
+ | anchor | positive | negative |
246
+ |:---------------------------------------------------------------------------|:-------------------------------------------------|:-----------------------------------------------------------|
247
+ | <code>A person on a horse jumps over a broken down airplane.</code> | <code>A person is outdoors, on a horse.</code> | <code>A person is at a diner, ordering an omelette.</code> |
248
+ | <code>Children smiling and waving at camera</code> | <code>There are children present</code> | <code>The kids are frowning</code> |
249
+ | <code>A boy is jumping on skateboard in the middle of a red bridge.</code> | <code>The boy does a skateboarding trick.</code> | <code>The boy skates down the sidewalk.</code> |
250
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
251
+ ```json
252
+ {
253
+ "scale": 20.0,
254
+ "similarity_fct": "cos_sim"
255
+ }
256
+ ```
257
+
258
+ ### Evaluation Dataset
259
+
260
+ #### all-nli
261
+
262
+ * Dataset: [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
263
+ * Size: 6,584 evaluation samples
264
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
265
+ * Approximate statistics based on the first 1000 samples:
266
+ | | anchor | positive | negative |
267
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
268
+ | type | string | string | string |
269
+ | details | <ul><li>min: 6 tokens</li><li>mean: 17.95 tokens</li><li>max: 63 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 9.78 tokens</li><li>max: 29 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 10.35 tokens</li><li>max: 29 tokens</li></ul> |
270
+ * Samples:
271
+ | anchor | positive | negative |
272
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:--------------------------------------------------------|
273
+ | <code>Two women are embracing while holding to go packages.</code> | <code>Two woman are holding packages.</code> | <code>The men are fighting outside a deli.</code> |
274
+ | <code>Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.</code> | <code>Two kids in numbered jerseys wash their hands.</code> | <code>Two kids in jackets walk to school.</code> |
275
+ | <code>A man selling donuts to a customer during a world exhibition event held in the city of Angeles</code> | <code>A man selling donuts to a customer.</code> | <code>A woman drinks her coffee in a small cafe.</code> |
276
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
277
+ ```json
278
+ {
279
+ "scale": 20.0,
280
+ "similarity_fct": "cos_sim"
281
+ }
282
+ ```
283
+
284
+ ### Training Hyperparameters
285
+ #### Non-Default Hyperparameters
286
+
287
+ - `eval_strategy`: steps
288
+ - `per_device_train_batch_size`: 16
289
+ - `per_device_eval_batch_size`: 16
290
+ - `learning_rate`: 2e-05
291
+ - `num_train_epochs`: 1
292
+ - `warmup_ratio`: 0.1
293
+ - `fp16`: True
294
+ - `batch_sampler`: no_duplicates
295
+
296
+ #### All Hyperparameters
297
+ <details><summary>Click to expand</summary>
298
+
299
+ - `overwrite_output_dir`: False
300
+ - `do_predict`: False
301
+ - `eval_strategy`: steps
302
+ - `prediction_loss_only`: True
303
+ - `per_device_train_batch_size`: 16
304
+ - `per_device_eval_batch_size`: 16
305
+ - `per_gpu_train_batch_size`: None
306
+ - `per_gpu_eval_batch_size`: None
307
+ - `gradient_accumulation_steps`: 1
308
+ - `eval_accumulation_steps`: None
309
+ - `torch_empty_cache_steps`: None
310
+ - `learning_rate`: 2e-05
311
+ - `weight_decay`: 0.0
312
+ - `adam_beta1`: 0.9
313
+ - `adam_beta2`: 0.999
314
+ - `adam_epsilon`: 1e-08
315
+ - `max_grad_norm`: 1.0
316
+ - `num_train_epochs`: 1
317
+ - `max_steps`: -1
318
+ - `lr_scheduler_type`: linear
319
+ - `lr_scheduler_kwargs`: {}
320
+ - `warmup_ratio`: 0.1
321
+ - `warmup_steps`: 0
322
+ - `log_level`: passive
323
+ - `log_level_replica`: warning
324
+ - `log_on_each_node`: True
325
+ - `logging_nan_inf_filter`: True
326
+ - `save_safetensors`: True
327
+ - `save_on_each_node`: False
328
+ - `save_only_model`: False
329
+ - `restore_callback_states_from_checkpoint`: False
330
+ - `no_cuda`: False
331
+ - `use_cpu`: False
332
+ - `use_mps_device`: False
333
+ - `seed`: 42
334
+ - `data_seed`: None
335
+ - `jit_mode_eval`: False
336
+ - `use_ipex`: False
337
+ - `bf16`: False
338
+ - `fp16`: True
339
+ - `fp16_opt_level`: O1
340
+ - `half_precision_backend`: auto
341
+ - `bf16_full_eval`: False
342
+ - `fp16_full_eval`: False
343
+ - `tf32`: None
344
+ - `local_rank`: 0
345
+ - `ddp_backend`: None
346
+ - `tpu_num_cores`: None
347
+ - `tpu_metrics_debug`: False
348
+ - `debug`: []
349
+ - `dataloader_drop_last`: False
350
+ - `dataloader_num_workers`: 0
351
+ - `dataloader_prefetch_factor`: None
352
+ - `past_index`: -1
353
+ - `disable_tqdm`: False
354
+ - `remove_unused_columns`: True
355
+ - `label_names`: None
356
+ - `load_best_model_at_end`: False
357
+ - `ignore_data_skip`: False
358
+ - `fsdp`: []
359
+ - `fsdp_min_num_params`: 0
360
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
361
+ - `fsdp_transformer_layer_cls_to_wrap`: None
362
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
363
+ - `deepspeed`: None
364
+ - `label_smoothing_factor`: 0.0
365
+ - `optim`: adamw_torch
366
+ - `optim_args`: None
367
+ - `adafactor`: False
368
+ - `group_by_length`: False
369
+ - `length_column_name`: length
370
+ - `ddp_find_unused_parameters`: None
371
+ - `ddp_bucket_cap_mb`: None
372
+ - `ddp_broadcast_buffers`: False
373
+ - `dataloader_pin_memory`: True
374
+ - `dataloader_persistent_workers`: False
375
+ - `skip_memory_metrics`: True
376
+ - `use_legacy_prediction_loop`: False
377
+ - `push_to_hub`: False
378
+ - `resume_from_checkpoint`: None
379
+ - `hub_model_id`: None
380
+ - `hub_strategy`: every_save
381
+ - `hub_private_repo`: False
382
+ - `hub_always_push`: False
383
+ - `gradient_checkpointing`: False
384
+ - `gradient_checkpointing_kwargs`: None
385
+ - `include_inputs_for_metrics`: False
386
+ - `eval_do_concat_batches`: True
387
+ - `fp16_backend`: auto
388
+ - `push_to_hub_model_id`: None
389
+ - `push_to_hub_organization`: None
390
+ - `mp_parameters`:
391
+ - `auto_find_batch_size`: False
392
+ - `full_determinism`: False
393
+ - `torchdynamo`: None
394
+ - `ray_scope`: last
395
+ - `ddp_timeout`: 1800
396
+ - `torch_compile`: False
397
+ - `torch_compile_backend`: None
398
+ - `torch_compile_mode`: None
399
+ - `dispatch_batches`: None
400
+ - `split_batches`: None
401
+ - `include_tokens_per_second`: False
402
+ - `include_num_input_tokens_seen`: False
403
+ - `neftune_noise_alpha`: None
404
+ - `optim_target_modules`: None
405
+ - `batch_eval_metrics`: False
406
+ - `eval_on_start`: False
407
+ - `eval_use_gather_object`: False
408
+ - `batch_sampler`: no_duplicates
409
+ - `multi_dataset_batch_sampler`: proportional
410
+
411
+ </details>
412
+
413
+ ### Training Logs
414
+ | Epoch | Step | all-nli-dev_max_accuracy | all-nli-test_max_accuracy |
415
+ |:-----:|:----:|:------------------------:|:-------------------------:|
416
+ | 0 | 0 | 0.6832 | - |
417
+ | 1.0 | 7 | - | 0.7281 |
418
+
419
+
420
+ ### Framework Versions
421
+ - Python: 3.10.12
422
+ - Sentence Transformers: 3.2.1
423
+ - Transformers: 4.44.2
424
+ - PyTorch: 2.5.0+cu121
425
+ - Accelerate: 0.34.2
426
+ - Datasets: 3.1.0
427
+ - Tokenizers: 0.19.1
428
+
429
+ ## Citation
430
+
431
+ ### BibTeX
432
+
433
+ #### Sentence Transformers
434
+ ```bibtex
435
+ @inproceedings{reimers-2019-sentence-bert,
436
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
437
+ author = "Reimers, Nils and Gurevych, Iryna",
438
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
439
+ month = "11",
440
+ year = "2019",
441
+ publisher = "Association for Computational Linguistics",
442
+ url = "https://arxiv.org/abs/1908.10084",
443
+ }
444
+ ```
445
+
446
+ #### MultipleNegativesRankingLoss
447
+ ```bibtex
448
+ @misc{henderson2017efficient,
449
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
450
+ 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},
451
+ year={2017},
452
+ eprint={1705.00652},
453
+ archivePrefix={arXiv},
454
+ primaryClass={cs.CL}
455
+ }
456
+ ```
457
+
458
+ <!--
459
+ ## Glossary
460
+
461
+ *Clearly define terms in order to be accessible across audiences.*
462
+ -->
463
+
464
+ <!--
465
+ ## Model Card Authors
466
+
467
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
468
+ -->
469
+
470
+ <!--
471
+ ## Model Card Contact
472
+
473
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
474
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/mpnet-base",
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.44.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.2.1",
4
+ "transformers": "4.44.2",
5
+ "pytorch": "2.5.0+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:ab395920f687d099764d054d0845210c9b48517f0ee471f69f7f29bfba4b7179
3
+ size 437967672
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": 512,
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": true,
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": true,
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,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": 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
+ "model_max_length": 512,
59
+ "pad_token": "<pad>",
60
+ "sep_token": "</s>",
61
+ "strip_accents": null,
62
+ "tokenize_chinese_chars": true,
63
+ "tokenizer_class": "MPNetTokenizer",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff