scroobiustrip commited on
Commit
d28896d
·
verified ·
1 Parent(s): df88592

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,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:84915
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: sentence-transformers/all-mpnet-base-v2
10
+ widget:
11
+ - source_sentence: send money from south africa to belgium
12
+ sentences:
13
+ - money transfer to estonia from slovenia
14
+ - transfer money online from belgium to south africa
15
+ - send money abroad to belgium from south africa
16
+ - source_sentence: money transfer to south korea from spain
17
+ sentences:
18
+ - send money internationally from south korea to spain
19
+ - transferring money from slovenia to slovakia
20
+ - international money transfers to south korea from spain
21
+ - source_sentence: how to send money online from san marino to indonesia
22
+ sentences:
23
+ - transfer money to indonesia from san marino
24
+ - cheapest way to send money from indonesia to san marino
25
+ - send money abroad from sweden to nepal
26
+ - source_sentence: transfer money online from singapore to luxembourg
27
+ sentences:
28
+ - fastest way to send money from luxembourg to singapore
29
+ - cheapest way to send money to luxembourg from singapore
30
+ - how to send money internationally to uae from romania
31
+ - source_sentence: cheapest way to send money to georgia from singapore
32
+ sentences:
33
+ - how to send money online to georgia from singapore
34
+ - send money online to singapore from georgia
35
+ - send money abroad to finland from slovenia
36
+ pipeline_tag: sentence-similarity
37
+ library_name: sentence-transformers
38
+ metrics:
39
+ - cosine_accuracy
40
+ model-index:
41
+ - name: SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
42
+ results:
43
+ - task:
44
+ type: triplet
45
+ name: Triplet
46
+ dataset:
47
+ name: all nli test
48
+ type: all-nli-test
49
+ metrics:
50
+ - type: cosine_accuracy
51
+ value: 1.0
52
+ name: Cosine Accuracy
53
+ ---
54
+
55
+ # SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
56
+
57
+ 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.
58
+
59
+ ## Model Details
60
+
61
+ ### Model Description
62
+ - **Model Type:** Sentence Transformer
63
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision 12e86a3c702fc3c50205a8db88f0ec7c0b6b94a0 -->
64
+ - **Maximum Sequence Length:** 384 tokens
65
+ - **Output Dimensionality:** 768 dimensions
66
+ - **Similarity Function:** Cosine Similarity
67
+ <!-- - **Training Dataset:** Unknown -->
68
+ <!-- - **Language:** Unknown -->
69
+ <!-- - **License:** Unknown -->
70
+
71
+ ### Model Sources
72
+
73
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
74
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
75
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
76
+
77
+ ### Full Model Architecture
78
+
79
+ ```
80
+ SentenceTransformer(
81
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel
82
+ (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})
83
+ (2): Normalize()
84
+ )
85
+ ```
86
+
87
+ ## Usage
88
+
89
+ ### Direct Usage (Sentence Transformers)
90
+
91
+ First install the Sentence Transformers library:
92
+
93
+ ```bash
94
+ pip install -U sentence-transformers
95
+ ```
96
+
97
+ Then you can load this model and run inference.
98
+ ```python
99
+ from sentence_transformers import SentenceTransformer
100
+
101
+ # Download from the 🤗 Hub
102
+ model = SentenceTransformer("scroobiustrip/mpnet-direction-finetuned")
103
+ # Run inference
104
+ sentences = [
105
+ 'cheapest way to send money to georgia from singapore',
106
+ 'how to send money online to georgia from singapore',
107
+ 'send money online to singapore from georgia',
108
+ ]
109
+ embeddings = model.encode(sentences)
110
+ print(embeddings.shape)
111
+ # [3, 768]
112
+
113
+ # Get the similarity scores for the embeddings
114
+ similarities = model.similarity(embeddings, embeddings)
115
+ print(similarities.shape)
116
+ # [3, 3]
117
+ ```
118
+
119
+ <!--
120
+ ### Direct Usage (Transformers)
121
+
122
+ <details><summary>Click to see the direct usage in Transformers</summary>
123
+
124
+ </details>
125
+ -->
126
+
127
+ <!--
128
+ ### Downstream Usage (Sentence Transformers)
129
+
130
+ You can finetune this model on your own dataset.
131
+
132
+ <details><summary>Click to expand</summary>
133
+
134
+ </details>
135
+ -->
136
+
137
+ <!--
138
+ ### Out-of-Scope Use
139
+
140
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
141
+ -->
142
+
143
+ ## Evaluation
144
+
145
+ ### Metrics
146
+
147
+ #### Triplet
148
+
149
+ * Dataset: `all-nli-test`
150
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
151
+
152
+ | Metric | Value |
153
+ |:--------------------|:--------|
154
+ | **cosine_accuracy** | **1.0** |
155
+
156
+ <!--
157
+ ## Bias, Risks and Limitations
158
+
159
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
160
+ -->
161
+
162
+ <!--
163
+ ### Recommendations
164
+
165
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
166
+ -->
167
+
168
+ ## Training Details
169
+
170
+ ### Training Dataset
171
+
172
+ #### Unnamed Dataset
173
+
174
+ * Size: 84,915 training samples
175
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
176
+ * Approximate statistics based on the first 1000 samples:
177
+ | | anchor | positive | negative |
178
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
179
+ | type | string | string | string |
180
+ | details | <ul><li>min: 8 tokens</li><li>mean: 9.72 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 9.74 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 9.79 tokens</li><li>max: 14 tokens</li></ul> |
181
+ * Samples:
182
+ | anchor | positive | negative |
183
+ |:--------------------------------------------------------------|:---------------------------------------------------------------------|:--------------------------------------------------------------|
184
+ | <code>send money online to argentina from andorra</code> | <code>send money from andorra to argentina</code> | <code>sending money to andorra from argentina</code> |
185
+ | <code>how to send money to australia from andorra</code> | <code>international money transfers from andorra to australia</code> | <code>best way to send money from australia to andorra</code> |
186
+ | <code>how to send money online to austria from andorra</code> | <code>send money internationally from andorra to austria</code> | <code>how to send money to andorra from austria</code> |
187
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
188
+ ```json
189
+ {
190
+ "scale": 20.0,
191
+ "similarity_fct": "cos_sim"
192
+ }
193
+ ```
194
+
195
+ ### Evaluation Dataset
196
+
197
+ #### Unnamed Dataset
198
+
199
+ * Size: 84,915 evaluation samples
200
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
201
+ * Approximate statistics based on the first 1000 samples:
202
+ | | anchor | positive | negative |
203
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
204
+ | type | string | string | string |
205
+ | details | <ul><li>min: 8 tokens</li><li>mean: 9.95 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 9.89 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 9.91 tokens</li><li>max: 14 tokens</li></ul> |
206
+ * Samples:
207
+ | anchor | positive | negative |
208
+ |:------------------------------------------------------------------|:---------------------------------------------------------------------------|:--------------------------------------------------------------------------|
209
+ | <code>online money transfer from portugal to liechtenstein</code> | <code>send money to liechtenstein from portugal</code> | <code>international money transfers from liechtenstein to portugal</code> |
210
+ | <code>best way to send money from portugal to lithuania</code> | <code>how to send money to lithuania from portugal</code> | <code>best way to send money to portugal from lithuania</code> |
211
+ | <code>money transfer from portugal to luxembourg</code> | <code>how to send money internationally from portugal to luxembourg</code> | <code>transfer money from luxembourg to portugal</code> |
212
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
213
+ ```json
214
+ {
215
+ "scale": 20.0,
216
+ "similarity_fct": "cos_sim"
217
+ }
218
+ ```
219
+
220
+ ### Training Hyperparameters
221
+ #### Non-Default Hyperparameters
222
+
223
+ - `eval_strategy`: steps
224
+ - `per_device_train_batch_size`: 16
225
+ - `per_device_eval_batch_size`: 16
226
+ - `num_train_epochs`: 1
227
+ - `warmup_ratio`: 0.1
228
+ - `fp16`: True
229
+ - `load_best_model_at_end`: True
230
+ - `batch_sampler`: no_duplicates
231
+
232
+ #### All Hyperparameters
233
+ <details><summary>Click to expand</summary>
234
+
235
+ - `overwrite_output_dir`: False
236
+ - `do_predict`: False
237
+ - `eval_strategy`: steps
238
+ - `prediction_loss_only`: True
239
+ - `per_device_train_batch_size`: 16
240
+ - `per_device_eval_batch_size`: 16
241
+ - `per_gpu_train_batch_size`: None
242
+ - `per_gpu_eval_batch_size`: None
243
+ - `gradient_accumulation_steps`: 1
244
+ - `eval_accumulation_steps`: None
245
+ - `torch_empty_cache_steps`: None
246
+ - `learning_rate`: 5e-05
247
+ - `weight_decay`: 0.0
248
+ - `adam_beta1`: 0.9
249
+ - `adam_beta2`: 0.999
250
+ - `adam_epsilon`: 1e-08
251
+ - `max_grad_norm`: 1.0
252
+ - `num_train_epochs`: 1
253
+ - `max_steps`: -1
254
+ - `lr_scheduler_type`: linear
255
+ - `lr_scheduler_kwargs`: {}
256
+ - `warmup_ratio`: 0.1
257
+ - `warmup_steps`: 0
258
+ - `log_level`: passive
259
+ - `log_level_replica`: warning
260
+ - `log_on_each_node`: True
261
+ - `logging_nan_inf_filter`: True
262
+ - `save_safetensors`: True
263
+ - `save_on_each_node`: False
264
+ - `save_only_model`: False
265
+ - `restore_callback_states_from_checkpoint`: False
266
+ - `no_cuda`: False
267
+ - `use_cpu`: False
268
+ - `use_mps_device`: False
269
+ - `seed`: 42
270
+ - `data_seed`: None
271
+ - `jit_mode_eval`: False
272
+ - `use_ipex`: False
273
+ - `bf16`: False
274
+ - `fp16`: True
275
+ - `fp16_opt_level`: O1
276
+ - `half_precision_backend`: auto
277
+ - `bf16_full_eval`: False
278
+ - `fp16_full_eval`: False
279
+ - `tf32`: None
280
+ - `local_rank`: 0
281
+ - `ddp_backend`: None
282
+ - `tpu_num_cores`: None
283
+ - `tpu_metrics_debug`: False
284
+ - `debug`: []
285
+ - `dataloader_drop_last`: False
286
+ - `dataloader_num_workers`: 0
287
+ - `dataloader_prefetch_factor`: None
288
+ - `past_index`: -1
289
+ - `disable_tqdm`: False
290
+ - `remove_unused_columns`: True
291
+ - `label_names`: None
292
+ - `load_best_model_at_end`: True
293
+ - `ignore_data_skip`: False
294
+ - `fsdp`: []
295
+ - `fsdp_min_num_params`: 0
296
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
297
+ - `tp_size`: 0
298
+ - `fsdp_transformer_layer_cls_to_wrap`: None
299
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
300
+ - `deepspeed`: None
301
+ - `label_smoothing_factor`: 0.0
302
+ - `optim`: adamw_torch
303
+ - `optim_args`: None
304
+ - `adafactor`: False
305
+ - `group_by_length`: False
306
+ - `length_column_name`: length
307
+ - `ddp_find_unused_parameters`: None
308
+ - `ddp_bucket_cap_mb`: None
309
+ - `ddp_broadcast_buffers`: False
310
+ - `dataloader_pin_memory`: True
311
+ - `dataloader_persistent_workers`: False
312
+ - `skip_memory_metrics`: True
313
+ - `use_legacy_prediction_loop`: False
314
+ - `push_to_hub`: False
315
+ - `resume_from_checkpoint`: None
316
+ - `hub_model_id`: None
317
+ - `hub_strategy`: every_save
318
+ - `hub_private_repo`: None
319
+ - `hub_always_push`: False
320
+ - `gradient_checkpointing`: False
321
+ - `gradient_checkpointing_kwargs`: None
322
+ - `include_inputs_for_metrics`: False
323
+ - `include_for_metrics`: []
324
+ - `eval_do_concat_batches`: True
325
+ - `fp16_backend`: auto
326
+ - `push_to_hub_model_id`: None
327
+ - `push_to_hub_organization`: None
328
+ - `mp_parameters`:
329
+ - `auto_find_batch_size`: False
330
+ - `full_determinism`: False
331
+ - `torchdynamo`: None
332
+ - `ray_scope`: last
333
+ - `ddp_timeout`: 1800
334
+ - `torch_compile`: False
335
+ - `torch_compile_backend`: None
336
+ - `torch_compile_mode`: None
337
+ - `dispatch_batches`: None
338
+ - `split_batches`: None
339
+ - `include_tokens_per_second`: False
340
+ - `include_num_input_tokens_seen`: False
341
+ - `neftune_noise_alpha`: None
342
+ - `optim_target_modules`: None
343
+ - `batch_eval_metrics`: False
344
+ - `eval_on_start`: False
345
+ - `use_liger_kernel`: False
346
+ - `eval_use_gather_object`: False
347
+ - `average_tokens_across_devices`: False
348
+ - `prompts`: None
349
+ - `batch_sampler`: no_duplicates
350
+ - `multi_dataset_batch_sampler`: proportional
351
+
352
+ </details>
353
+
354
+ ### Training Logs
355
+ | Epoch | Step | Training Loss | Validation Loss | all-nli-test_cosine_accuracy |
356
+ |:------:|:----:|:-------------:|:---------------:|:----------------------------:|
357
+ | 0.0188 | 100 | 0.0276 | 0.0180 | - |
358
+ | 0.0377 | 200 | 0.0099 | 0.0037 | - |
359
+ | 0.0565 | 300 | 0.0025 | 0.0036 | - |
360
+ | 0.0754 | 400 | 0.0004 | 0.0035 | - |
361
+ | -1 | -1 | - | - | 1.0 |
362
+
363
+
364
+ ### Framework Versions
365
+ - Python: 3.11.11
366
+ - Sentence Transformers: 4.0.2
367
+ - Transformers: 4.50.3
368
+ - PyTorch: 2.6.0+cu124
369
+ - Accelerate: 1.5.2
370
+ - Datasets: 3.5.0
371
+ - Tokenizers: 0.21.1
372
+
373
+ ## Citation
374
+
375
+ ### BibTeX
376
+
377
+ #### Sentence Transformers
378
+ ```bibtex
379
+ @inproceedings{reimers-2019-sentence-bert,
380
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
381
+ author = "Reimers, Nils and Gurevych, Iryna",
382
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
383
+ month = "11",
384
+ year = "2019",
385
+ publisher = "Association for Computational Linguistics",
386
+ url = "https://arxiv.org/abs/1908.10084",
387
+ }
388
+ ```
389
+
390
+ #### MultipleNegativesRankingLoss
391
+ ```bibtex
392
+ @misc{henderson2017efficient,
393
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
394
+ 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},
395
+ year={2017},
396
+ eprint={1705.00652},
397
+ archivePrefix={arXiv},
398
+ primaryClass={cs.CL}
399
+ }
400
+ ```
401
+
402
+ <!--
403
+ ## Glossary
404
+
405
+ *Clearly define terms in order to be accessible across audiences.*
406
+ -->
407
+
408
+ <!--
409
+ ## Model Card Authors
410
+
411
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
412
+ -->
413
+
414
+ <!--
415
+ ## Model Card Contact
416
+
417
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
418
+ -->
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.50.3",
22
+ "vocab_size": 30527
23
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "4.0.2",
4
+ "transformers": "4.50.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41919ed7199775ee122aad05f2ccd657a3dfe0b14dd3a05debd51a3a7271e2c3
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,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 128,
60
+ "model_max_length": 384,
61
+ "pad_to_multiple_of": null,
62
+ "pad_token": "<pad>",
63
+ "pad_token_type_id": 0,
64
+ "padding_side": "right",
65
+ "sep_token": "</s>",
66
+ "stride": 0,
67
+ "strip_accents": null,
68
+ "tokenize_chinese_chars": true,
69
+ "tokenizer_class": "MPNetTokenizer",
70
+ "truncation_side": "right",
71
+ "truncation_strategy": "longest_first",
72
+ "unk_token": "[UNK]"
73
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff