lizchu414 commited on
Commit
bd76f57
1 Parent(s): 1351512

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,475 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/all-mpnet-base-v2
3
+ datasets:
4
+ - sentence-transformers/all-nli
5
+ language:
6
+ - en
7
+ library_name: sentence-transformers
8
+ metrics:
9
+ - cosine_accuracy
10
+ - dot_accuracy
11
+ - manhattan_accuracy
12
+ - euclidean_accuracy
13
+ - max_accuracy
14
+ pipeline_tag: sentence-similarity
15
+ tags:
16
+ - sentence-transformers
17
+ - sentence-similarity
18
+ - feature-extraction
19
+ - generated_from_trainer
20
+ - dataset_size:557850
21
+ - loss:MultipleNegativesRankingLoss
22
+ widget:
23
+ - source_sentence: A man is jumping unto his filthy bed.
24
+ sentences:
25
+ - A young male is looking at a newspaper while 2 females walks past him.
26
+ - The bed is dirty.
27
+ - The man is on the moon.
28
+ - source_sentence: A carefully balanced male stands on one foot near a clean ocean
29
+ beach area.
30
+ sentences:
31
+ - A man is ouside near the beach.
32
+ - Three policemen patrol the streets on bikes
33
+ - A man is sitting on his couch.
34
+ - source_sentence: The man is wearing a blue shirt.
35
+ sentences:
36
+ - Near the trashcan the man stood and smoked
37
+ - A man in a blue shirt leans on a wall beside a road with a blue van and red car
38
+ with water in the background.
39
+ - A man in a black shirt is playing a guitar.
40
+ - source_sentence: The girls are outdoors.
41
+ sentences:
42
+ - Two girls riding on an amusement part ride.
43
+ - a guy laughs while doing laundry
44
+ - Three girls are standing together in a room, one is listening, one is writing
45
+ on a wall and the third is talking to them.
46
+ - source_sentence: A construction worker peeking out of a manhole while his coworker
47
+ sits on the sidewalk smiling.
48
+ sentences:
49
+ - A worker is looking out of a manhole.
50
+ - A man is giving a presentation.
51
+ - The workers are both inside the manhole.
52
+ model-index:
53
+ - name: SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
54
+ results:
55
+ - task:
56
+ type: triplet
57
+ name: Triplet
58
+ dataset:
59
+ name: all nli dev
60
+ type: all-nli-dev
61
+ metrics:
62
+ - type: cosine_accuracy
63
+ value: 0.9249696233292831
64
+ name: Cosine Accuracy
65
+ - type: dot_accuracy
66
+ value: 0.0750303766707169
67
+ name: Dot Accuracy
68
+ - type: manhattan_accuracy
69
+ value: 0.9232989064398542
70
+ name: Manhattan Accuracy
71
+ - type: euclidean_accuracy
72
+ value: 0.9249696233292831
73
+ name: Euclidean Accuracy
74
+ - type: max_accuracy
75
+ value: 0.9249696233292831
76
+ name: Max Accuracy
77
+ - task:
78
+ type: triplet
79
+ name: Triplet
80
+ dataset:
81
+ name: all nli test
82
+ type: all-nli-test
83
+ metrics:
84
+ - type: cosine_accuracy
85
+ value: 0.9255560599182933
86
+ name: Cosine Accuracy
87
+ - type: dot_accuracy
88
+ value: 0.07444394008170677
89
+ name: Dot Accuracy
90
+ - type: manhattan_accuracy
91
+ value: 0.9254047510969889
92
+ name: Manhattan Accuracy
93
+ - type: euclidean_accuracy
94
+ value: 0.9255560599182933
95
+ name: Euclidean Accuracy
96
+ - type: max_accuracy
97
+ value: 0.9255560599182933
98
+ name: Max Accuracy
99
+ ---
100
+
101
+ # SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
102
+
103
+ 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) 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.
104
+
105
+ ## Model Details
106
+
107
+ ### Model Description
108
+ - **Model Type:** Sentence Transformer
109
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision f1b1b820e405bb8644f5e8d9a3b98f9c9e0a3c58 -->
110
+ - **Maximum Sequence Length:** 384 tokens
111
+ - **Output Dimensionality:** 768 tokens
112
+ - **Similarity Function:** Cosine Similarity
113
+ - **Training Dataset:**
114
+ - [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli)
115
+ - **Language:** en
116
+ <!-- - **License:** Unknown -->
117
+
118
+ ### Model Sources
119
+
120
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
121
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
122
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
123
+
124
+ ### Full Model Architecture
125
+
126
+ ```
127
+ SentenceTransformer(
128
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel
129
+ (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})
130
+ (2): Normalize()
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("lizchu414/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.925 |
201
+ | dot_accuracy | 0.075 |
202
+ | manhattan_accuracy | 0.9233 |
203
+ | euclidean_accuracy | 0.925 |
204
+ | **max_accuracy** | **0.925** |
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.9256 |
213
+ | dot_accuracy | 0.0744 |
214
+ | manhattan_accuracy | 0.9254 |
215
+ | euclidean_accuracy | 0.9256 |
216
+ | **max_accuracy** | **0.9256** |
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: 7 tokens</li><li>mean: 10.46 tokens</li><li>max: 46 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 12.81 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 13.4 tokens</li><li>max: 50 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
+ - `use_liger_kernel`: False
408
+ - `eval_use_gather_object`: False
409
+ - `batch_sampler`: no_duplicates
410
+ - `multi_dataset_batch_sampler`: proportional
411
+
412
+ </details>
413
+
414
+ ### Training Logs
415
+ | Epoch | Step | all-nli-dev_max_accuracy | all-nli-test_max_accuracy |
416
+ |:-----:|:----:|:------------------------:|:-------------------------:|
417
+ | 0 | 0 | 0.9250 | - |
418
+ | 1.0 | 79 | - | 0.9256 |
419
+
420
+
421
+ ### Framework Versions
422
+ - Python: 3.12.7
423
+ - Sentence Transformers: 3.2.0
424
+ - Transformers: 4.45.2
425
+ - PyTorch: 2.2.2+cu121
426
+ - Accelerate: 1.0.1
427
+ - Datasets: 3.0.1
428
+ - Tokenizers: 0.20.1
429
+
430
+ ## Citation
431
+
432
+ ### BibTeX
433
+
434
+ #### Sentence Transformers
435
+ ```bibtex
436
+ @inproceedings{reimers-2019-sentence-bert,
437
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
438
+ author = "Reimers, Nils and Gurevych, Iryna",
439
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
440
+ month = "11",
441
+ year = "2019",
442
+ publisher = "Association for Computational Linguistics",
443
+ url = "https://arxiv.org/abs/1908.10084",
444
+ }
445
+ ```
446
+
447
+ #### MultipleNegativesRankingLoss
448
+ ```bibtex
449
+ @misc{henderson2017efficient,
450
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
451
+ 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},
452
+ year={2017},
453
+ eprint={1705.00652},
454
+ archivePrefix={arXiv},
455
+ primaryClass={cs.CL}
456
+ }
457
+ ```
458
+
459
+ <!--
460
+ ## Glossary
461
+
462
+ *Clearly define terms in order to be accessible across audiences.*
463
+ -->
464
+
465
+ <!--
466
+ ## Model Card Authors
467
+
468
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
469
+ -->
470
+
471
+ <!--
472
+ ## Model Card Contact
473
+
474
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
475
+ -->
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.45.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.2.0",
4
+ "transformers": "4.45.2",
5
+ "pytorch": "2.2.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:f5a30c63a71bf6d5d2ed1551d5aeadd8cb10dff52575f44fb398709461f9871a
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": false,
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