baelamri commited on
Commit
5efc6e0
·
verified ·
1 Parent(s): 6a3e77f

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