s2593817 commited on
Commit
82ea4a3
·
verified ·
1 Parent(s): c879d8d

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,415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/all-mpnet-base-v2
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ pipeline_tag: sentence-similarity
7
+ tags:
8
+ - sentence-transformers
9
+ - sentence-similarity
10
+ - feature-extraction
11
+ - generated_from_trainer
12
+ - dataset_size:9306
13
+ - loss:CoSENTLoss
14
+ widget:
15
+ - source_sentence: What are the name, population, and life expectancy of the largest
16
+ Asian country by land?
17
+ sentences:
18
+ - Find the names and phone numbers of customers living in California state.
19
+ - What is the age of the doctor named Zach?
20
+ - What are the name and location of the cinema with the largest capacity?
21
+ - source_sentence: What are the titles of the cartoons sorted alphabetically?
22
+ sentences:
23
+ - What are the names of wines, sorted in alphabetical order?
24
+ - Find the first and last names of people who payed more than the rooms' base prices.
25
+ - What is the name of the track that has had the greatest number of races?
26
+ - source_sentence: What is the name of each continent and how many car makers are
27
+ there in each one?
28
+ sentences:
29
+ - What are the allergy types and how many allergies correspond to each one?
30
+ - List all people names in the order of their date of birth from old to young.
31
+ - Which city has the most customers living in?
32
+ - source_sentence: Give the flight numbers of flights arriving in Aberdeen.
33
+ sentences:
34
+ - Return the device carriers that do not have Android as their software platform.
35
+ - What are the names of the pilots that have not won any matches in Australia?
36
+ - Give the phones for departments in room 268.
37
+ - source_sentence: How many total tours were there for each ranking date?
38
+ sentences:
39
+ - What is the carrier of the most expensive phone?
40
+ - How many total pounds were purchased in the year 2018 at all London branches?
41
+ - Find the number of students for the cities where have more than one student.
42
+ ---
43
+
44
+ # SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
45
+
46
+ 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.
47
+
48
+ ## Model Details
49
+
50
+ ### Model Description
51
+ - **Model Type:** Sentence Transformer
52
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision 84f2bcc00d77236f9e89c8a360a00fb1139bf47d -->
53
+ - **Maximum Sequence Length:** 384 tokens
54
+ - **Output Dimensionality:** 768 tokens
55
+ - **Similarity Function:** Cosine Similarity
56
+ <!-- - **Training Dataset:** Unknown -->
57
+ <!-- - **Language:** Unknown -->
58
+ <!-- - **License:** Unknown -->
59
+
60
+ ### Model Sources
61
+
62
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
63
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
64
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
65
+
66
+ ### Full Model Architecture
67
+
68
+ ```
69
+ SentenceTransformer(
70
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel
71
+ (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})
72
+ (2): Normalize()
73
+ )
74
+ ```
75
+
76
+ ## Usage
77
+
78
+ ### Direct Usage (Sentence Transformers)
79
+
80
+ First install the Sentence Transformers library:
81
+
82
+ ```bash
83
+ pip install -U sentence-transformers
84
+ ```
85
+
86
+ Then you can load this model and run inference.
87
+ ```python
88
+ from sentence_transformers import SentenceTransformer
89
+
90
+ # Download from the 🤗 Hub
91
+ model = SentenceTransformer("s2593817/sft-question-embedding")
92
+ # Run inference
93
+ sentences = [
94
+ 'How many total tours were there for each ranking date?',
95
+ 'How many total pounds were purchased in the year 2018 at all London branches?',
96
+ 'What is the carrier of the most expensive phone?',
97
+ ]
98
+ embeddings = model.encode(sentences)
99
+ print(embeddings.shape)
100
+ # [3, 768]
101
+
102
+ # Get the similarity scores for the embeddings
103
+ similarities = model.similarity(embeddings, embeddings)
104
+ print(similarities.shape)
105
+ # [3, 3]
106
+ ```
107
+
108
+ <!--
109
+ ### Direct Usage (Transformers)
110
+
111
+ <details><summary>Click to see the direct usage in Transformers</summary>
112
+
113
+ </details>
114
+ -->
115
+
116
+ <!--
117
+ ### Downstream Usage (Sentence Transformers)
118
+
119
+ You can finetune this model on your own dataset.
120
+
121
+ <details><summary>Click to expand</summary>
122
+
123
+ </details>
124
+ -->
125
+
126
+ <!--
127
+ ### Out-of-Scope Use
128
+
129
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
130
+ -->
131
+
132
+ <!--
133
+ ## Bias, Risks and Limitations
134
+
135
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
136
+ -->
137
+
138
+ <!--
139
+ ### Recommendations
140
+
141
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
142
+ -->
143
+
144
+ ## Training Details
145
+
146
+ ### Training Dataset
147
+
148
+ #### Unnamed Dataset
149
+
150
+
151
+ * Size: 9,306 training samples
152
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
153
+ * Approximate statistics based on the first 1000 samples:
154
+ | | sentence1 | sentence2 | score |
155
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:-------------------------------------------------|
156
+ | type | string | string | int |
157
+ | details | <ul><li>min: 7 tokens</li><li>mean: 16.25 tokens</li><li>max: 36 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 15.23 tokens</li><li>max: 35 tokens</li></ul> | <ul><li>-1: ~25.20%</li><li>1: ~74.80%</li></ul> |
158
+ * Samples:
159
+ | sentence1 | sentence2 | score |
160
+ |:-----------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------|:---------------|
161
+ | <code>How many singers do we have?</code> | <code>How many aircrafts do we have?</code> | <code>1</code> |
162
+ | <code>What is the total number of singers?</code> | <code>What is the total number of students?</code> | <code>1</code> |
163
+ | <code>Show name, country, age for all singers ordered by age from the oldest to the youngest.</code> | <code>List all people names in the order of their date of birth from old to young.</code> | <code>1</code> |
164
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
165
+ ```json
166
+ {
167
+ "scale": 20.0,
168
+ "similarity_fct": "pairwise_cos_sim"
169
+ }
170
+ ```
171
+
172
+ ### Training Hyperparameters
173
+ #### Non-Default Hyperparameters
174
+
175
+ - `per_device_train_batch_size`: 160
176
+ - `learning_rate`: 2e-05
177
+ - `num_train_epochs`: 100
178
+ - `warmup_ratio`: 0.2
179
+ - `fp16`: True
180
+ - `dataloader_num_workers`: 16
181
+ - `batch_sampler`: no_duplicates
182
+
183
+ #### All Hyperparameters
184
+ <details><summary>Click to expand</summary>
185
+
186
+ - `overwrite_output_dir`: False
187
+ - `do_predict`: False
188
+ - `eval_strategy`: no
189
+ - `prediction_loss_only`: True
190
+ - `per_device_train_batch_size`: 160
191
+ - `per_device_eval_batch_size`: 8
192
+ - `per_gpu_train_batch_size`: None
193
+ - `per_gpu_eval_batch_size`: None
194
+ - `gradient_accumulation_steps`: 1
195
+ - `eval_accumulation_steps`: None
196
+ - `learning_rate`: 2e-05
197
+ - `weight_decay`: 0.0
198
+ - `adam_beta1`: 0.9
199
+ - `adam_beta2`: 0.999
200
+ - `adam_epsilon`: 1e-08
201
+ - `max_grad_norm`: 1.0
202
+ - `num_train_epochs`: 100
203
+ - `max_steps`: -1
204
+ - `lr_scheduler_type`: linear
205
+ - `lr_scheduler_kwargs`: {}
206
+ - `warmup_ratio`: 0.2
207
+ - `warmup_steps`: 0
208
+ - `log_level`: passive
209
+ - `log_level_replica`: warning
210
+ - `log_on_each_node`: True
211
+ - `logging_nan_inf_filter`: True
212
+ - `save_safetensors`: True
213
+ - `save_on_each_node`: False
214
+ - `save_only_model`: False
215
+ - `restore_callback_states_from_checkpoint`: False
216
+ - `no_cuda`: False
217
+ - `use_cpu`: False
218
+ - `use_mps_device`: False
219
+ - `seed`: 42
220
+ - `data_seed`: None
221
+ - `jit_mode_eval`: False
222
+ - `use_ipex`: False
223
+ - `bf16`: False
224
+ - `fp16`: True
225
+ - `fp16_opt_level`: O1
226
+ - `half_precision_backend`: auto
227
+ - `bf16_full_eval`: False
228
+ - `fp16_full_eval`: False
229
+ - `tf32`: None
230
+ - `local_rank`: 0
231
+ - `ddp_backend`: None
232
+ - `tpu_num_cores`: None
233
+ - `tpu_metrics_debug`: False
234
+ - `debug`: []
235
+ - `dataloader_drop_last`: False
236
+ - `dataloader_num_workers`: 16
237
+ - `dataloader_prefetch_factor`: None
238
+ - `past_index`: -1
239
+ - `disable_tqdm`: False
240
+ - `remove_unused_columns`: True
241
+ - `label_names`: None
242
+ - `load_best_model_at_end`: False
243
+ - `ignore_data_skip`: False
244
+ - `fsdp`: []
245
+ - `fsdp_min_num_params`: 0
246
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
247
+ - `fsdp_transformer_layer_cls_to_wrap`: None
248
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
249
+ - `deepspeed`: None
250
+ - `label_smoothing_factor`: 0.0
251
+ - `optim`: adamw_torch
252
+ - `optim_args`: None
253
+ - `adafactor`: False
254
+ - `group_by_length`: False
255
+ - `length_column_name`: length
256
+ - `ddp_find_unused_parameters`: None
257
+ - `ddp_bucket_cap_mb`: None
258
+ - `ddp_broadcast_buffers`: False
259
+ - `dataloader_pin_memory`: True
260
+ - `dataloader_persistent_workers`: False
261
+ - `skip_memory_metrics`: True
262
+ - `use_legacy_prediction_loop`: False
263
+ - `push_to_hub`: False
264
+ - `resume_from_checkpoint`: None
265
+ - `hub_model_id`: None
266
+ - `hub_strategy`: every_save
267
+ - `hub_private_repo`: False
268
+ - `hub_always_push`: False
269
+ - `gradient_checkpointing`: False
270
+ - `gradient_checkpointing_kwargs`: None
271
+ - `include_inputs_for_metrics`: False
272
+ - `eval_do_concat_batches`: True
273
+ - `fp16_backend`: auto
274
+ - `push_to_hub_model_id`: None
275
+ - `push_to_hub_organization`: None
276
+ - `mp_parameters`:
277
+ - `auto_find_batch_size`: False
278
+ - `full_determinism`: False
279
+ - `torchdynamo`: None
280
+ - `ray_scope`: last
281
+ - `ddp_timeout`: 1800
282
+ - `torch_compile`: False
283
+ - `torch_compile_backend`: None
284
+ - `torch_compile_mode`: None
285
+ - `dispatch_batches`: None
286
+ - `split_batches`: None
287
+ - `include_tokens_per_second`: False
288
+ - `include_num_input_tokens_seen`: False
289
+ - `neftune_noise_alpha`: None
290
+ - `optim_target_modules`: None
291
+ - `batch_eval_metrics`: False
292
+ - `eval_on_start`: False
293
+ - `batch_sampler`: no_duplicates
294
+ - `multi_dataset_batch_sampler`: proportional
295
+
296
+ </details>
297
+
298
+ ### Training Logs
299
+ | Epoch | Step | Training Loss |
300
+ |:-------:|:----:|:-------------:|
301
+ | 1.6949 | 100 | 9.4942 |
302
+ | 2.4407 | 200 | 8.3205 |
303
+ | 3.1864 | 300 | 6.3257 |
304
+ | 3.9322 | 400 | 4.7354 |
305
+ | 4.6780 | 500 | 3.6898 |
306
+ | 5.4237 | 600 | 3.3736 |
307
+ | 6.1695 | 700 | 3.0906 |
308
+ | 7.8644 | 800 | 3.1459 |
309
+ | 8.6102 | 900 | 3.4447 |
310
+ | 9.3559 | 1000 | 3.219 |
311
+ | 10.1017 | 1100 | 2.9808 |
312
+ | 10.8475 | 1200 | 2.505 |
313
+ | 11.5932 | 1300 | 2.0372 |
314
+ | 12.3390 | 1400 | 1.8879 |
315
+ | 13.0847 | 1500 | 1.8852 |
316
+ | 14.7797 | 1600 | 2.1867 |
317
+ | 15.5254 | 1700 | 2.0583 |
318
+ | 16.2712 | 1800 | 2.0132 |
319
+ | 17.0169 | 1900 | 1.8906 |
320
+ | 17.7627 | 2000 | 1.4556 |
321
+ | 18.5085 | 2100 | 1.2575 |
322
+ | 19.2542 | 2200 | 1.258 |
323
+ | 20.9492 | 2300 | 0.9423 |
324
+ | 21.6949 | 2400 | 1.398 |
325
+ | 22.4407 | 2500 | 1.2811 |
326
+ | 23.1864 | 2600 | 1.2602 |
327
+ | 23.9322 | 2700 | 1.2178 |
328
+ | 24.6780 | 2800 | 1.0895 |
329
+ | 25.4237 | 2900 | 0.9186 |
330
+ | 26.1695 | 3000 | 0.7916 |
331
+ | 27.8644 | 3100 | 0.7777 |
332
+ | 28.6102 | 3200 | 1.0487 |
333
+ | 29.3559 | 3300 | 0.9255 |
334
+ | 30.1017 | 3400 | 0.9655 |
335
+ | 30.8475 | 3500 | 0.897 |
336
+ | 31.5932 | 3600 | 0.7444 |
337
+ | 32.3390 | 3700 | 0.6445 |
338
+ | 33.0847 | 3800 | 0.5025 |
339
+ | 34.7797 | 3900 | 0.681 |
340
+ | 35.5254 | 4000 | 0.9227 |
341
+ | 36.2712 | 4100 | 0.8631 |
342
+ | 37.0169 | 4200 | 0.8573 |
343
+ | 37.7627 | 4300 | 0.9496 |
344
+ | 38.5085 | 4400 | 0.7243 |
345
+ | 39.2542 | 4500 | 0.7024 |
346
+ | 40.9492 | 4600 | 0.4793 |
347
+ | 41.6949 | 4700 | 0.8076 |
348
+ | 42.4407 | 4800 | 0.825 |
349
+ | 43.1864 | 4900 | 0.7553 |
350
+ | 43.9322 | 5000 | 0.6861 |
351
+ | 44.6780 | 5100 | 0.6589 |
352
+ | 45.4237 | 5200 | 0.5023 |
353
+ | 46.1695 | 5300 | 0.4013 |
354
+ | 47.8644 | 5400 | 0.4524 |
355
+ | 48.6102 | 5500 | 0.5891 |
356
+ | 49.3559 | 5600 | 0.5765 |
357
+ | 50.1017 | 5700 | 0.5708 |
358
+ | 50.8475 | 5800 | 0.479 |
359
+ | 51.5932 | 5900 | 0.4671 |
360
+
361
+
362
+ ### Framework Versions
363
+ - Python: 3.10.12
364
+ - Sentence Transformers: 3.0.1
365
+ - Transformers: 4.42.4
366
+ - PyTorch: 2.3.1+cu121
367
+ - Accelerate: 0.33.0
368
+ - Datasets: 2.20.0
369
+ - Tokenizers: 0.19.1
370
+
371
+ ## Citation
372
+
373
+ ### BibTeX
374
+
375
+ #### Sentence Transformers
376
+ ```bibtex
377
+ @inproceedings{reimers-2019-sentence-bert,
378
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
379
+ author = "Reimers, Nils and Gurevych, Iryna",
380
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
381
+ month = "11",
382
+ year = "2019",
383
+ publisher = "Association for Computational Linguistics",
384
+ url = "https://arxiv.org/abs/1908.10084",
385
+ }
386
+ ```
387
+
388
+ #### CoSENTLoss
389
+ ```bibtex
390
+ @online{kexuefm-8847,
391
+ title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
392
+ author={Su Jianlin},
393
+ year={2022},
394
+ month={Jan},
395
+ url={https://kexue.fm/archives/8847},
396
+ }
397
+ ```
398
+
399
+ <!--
400
+ ## Glossary
401
+
402
+ *Clearly define terms in order to be accessible across audiences.*
403
+ -->
404
+
405
+ <!--
406
+ ## Model Card Authors
407
+
408
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
409
+ -->
410
+
411
+ <!--
412
+ ## Model Card Contact
413
+
414
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
415
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "models/sft-question-embedding",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.41.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.3.0+cpu"
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:ab9676b4c5b699bd4bdabc3a374c6471587065245a34be0d73afbda2ac0e70a5
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 384,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "[UNK]",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
36
+ "content": "[UNK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "30526": {
44
+ "content": "<mask>",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "bos_token": "<s>",
53
+ "clean_up_tokenization_spaces": true,
54
+ "cls_token": "<s>",
55
+ "do_lower_case": true,
56
+ "eos_token": "</s>",
57
+ "mask_token": "<mask>",
58
+ "max_length": 128,
59
+ "model_max_length": 384,
60
+ "pad_to_multiple_of": null,
61
+ "pad_token": "<pad>",
62
+ "pad_token_type_id": 0,
63
+ "padding_side": "right",
64
+ "sep_token": "</s>",
65
+ "stride": 0,
66
+ "strip_accents": null,
67
+ "tokenize_chinese_chars": true,
68
+ "tokenizer_class": "MPNetTokenizer",
69
+ "truncation_side": "right",
70
+ "truncation_strategy": "longest_first",
71
+ "unk_token": "[UNK]"
72
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff