amorfati commited on
Commit
2244e5b
1 Parent(s): 36b2a32

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,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/mpnet-base
3
+ datasets:
4
+ - sentence-transformers/all-nli
5
+ language:
6
+ - en
7
+ library_name: sentence-transformers
8
+ pipeline_tag: sentence-similarity
9
+ tags:
10
+ - sentence-transformers
11
+ - sentence-similarity
12
+ - feature-extraction
13
+ - generated_from_trainer
14
+ - dataset_size:942
15
+ - loss:CoSENTLoss
16
+ widget:
17
+ - source_sentence: The entire city was surrounded by open countryside with a scattering
18
+ of small villages.
19
+ sentences:
20
+ - Let's leave it.
21
+ - It was proven that Mrs. Vandemeyer and the girl were hiding something.
22
+ - There is only one large village in the countryside.
23
+ - source_sentence: or just get out and walk uh or even jog a little although i don't
24
+ do that regularly but Washington's a great place to do that
25
+ sentences:
26
+ - '"Washington''s is a great place for a walk or a jog."'
27
+ - A man has some bananas.
28
+ - The sidewalk was deserted.
29
+ - source_sentence: A woman walks by a brick building that's covered with graffiti.
30
+ sentences:
31
+ - When I was in high school, my favorite author was Virginia Wolf.
32
+ - A woman is outside.
33
+ - A man in a photo booth at a carnival.
34
+ - source_sentence: A woman swinging a tennis racket on an outdoor court.
35
+ sentences:
36
+ - A woman walking on an old bridge near a mountain.
37
+ - A woman is playing basketball at the park.
38
+ - Yanomamo eats food.
39
+ - source_sentence: Several people with parachutes are overlooking a beautiful view
40
+ of fields and hills.
41
+ sentences:
42
+ - Your little girl wrote about how well your farewell activity went.
43
+ - The Crosethe Rue De Rivoli was built for Cardinal Richelieu to live in.
44
+ - Several people mow the grass.
45
+ ---
46
+
47
+ # SentenceTransformer based on microsoft/mpnet-base
48
+
49
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) on the [sentence-transformers/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.
50
+
51
+ ## Model Details
52
+
53
+ ### Model Description
54
+ - **Model Type:** Sentence Transformer
55
+ - **Base model:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) <!-- at revision 6996ce1e91bd2a9c7d7f61daec37463394f73f09 -->
56
+ - **Maximum Sequence Length:** 512 tokens
57
+ - **Output Dimensionality:** 768 tokens
58
+ - **Similarity Function:** Cosine Similarity
59
+ - **Training Dataset:**
60
+ - [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli)
61
+ - **Language:** en
62
+ <!-- - **License:** Unknown -->
63
+
64
+ ### Model Sources
65
+
66
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
67
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
68
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
69
+
70
+ ### Full Model Architecture
71
+
72
+ ```
73
+ SentenceTransformer(
74
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
75
+ (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})
76
+ )
77
+ ```
78
+
79
+ ## Usage
80
+
81
+ ### Direct Usage (Sentence Transformers)
82
+
83
+ First install the Sentence Transformers library:
84
+
85
+ ```bash
86
+ pip install -U sentence-transformers
87
+ ```
88
+
89
+ Then you can load this model and run inference.
90
+ ```python
91
+ from sentence_transformers import SentenceTransformer
92
+
93
+ # Download from the 🤗 Hub
94
+ model = SentenceTransformer("amorfati/custom-emb-model")
95
+ # Run inference
96
+ sentences = [
97
+ 'Several people with parachutes are overlooking a beautiful view of fields and hills.',
98
+ 'Several people mow the grass.',
99
+ 'Your little girl wrote about how well your farewell activity went.',
100
+ ]
101
+ embeddings = model.encode(sentences)
102
+ print(embeddings.shape)
103
+ # [3, 768]
104
+
105
+ # Get the similarity scores for the embeddings
106
+ similarities = model.similarity(embeddings, embeddings)
107
+ print(similarities.shape)
108
+ # [3, 3]
109
+ ```
110
+
111
+ <!--
112
+ ### Direct Usage (Transformers)
113
+
114
+ <details><summary>Click to see the direct usage in Transformers</summary>
115
+
116
+ </details>
117
+ -->
118
+
119
+ <!--
120
+ ### Downstream Usage (Sentence Transformers)
121
+
122
+ You can finetune this model on your own dataset.
123
+
124
+ <details><summary>Click to expand</summary>
125
+
126
+ </details>
127
+ -->
128
+
129
+ <!--
130
+ ### Out-of-Scope Use
131
+
132
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
133
+ -->
134
+
135
+ <!--
136
+ ## Bias, Risks and Limitations
137
+
138
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
139
+ -->
140
+
141
+ <!--
142
+ ### Recommendations
143
+
144
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
145
+ -->
146
+
147
+ ## Training Details
148
+
149
+ ### Training Dataset
150
+
151
+ #### sentence-transformers/all-nli
152
+
153
+ * Dataset: [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
154
+ * Size: 942 training samples
155
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
156
+ * Approximate statistics based on the first 1000 samples:
157
+ | | sentence1 | sentence2 | score |
158
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
159
+ | type | string | string | float |
160
+ | details | <ul><li>min: 4 tokens</li><li>mean: 21.24 tokens</li><li>max: 94 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 12.16 tokens</li><li>max: 36 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.51</li><li>max: 1.0</li></ul> |
161
+ * Samples:
162
+ | sentence1 | sentence2 | score |
163
+ |:--------------------------------------------------------------------------------------|:---------------------------------------|:-----------------|
164
+ | <code>somehow, somewhere.</code> | <code>Someplace, in some way.</code> | <code>1.0</code> |
165
+ | <code>A boy is sitting on a boat with two flags.</code> | <code>A blonde person sitting.</code> | <code>0.5</code> |
166
+ | <code>A asian male suit clad, uses a umbrella to shield himself from the rain.</code> | <code>He is late for a meeting.</code> | <code>0.5</code> |
167
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
168
+ ```json
169
+ {
170
+ "scale": 20.0,
171
+ "similarity_fct": "pairwise_cos_sim"
172
+ }
173
+ ```
174
+
175
+ ### Evaluation Dataset
176
+
177
+ #### sentence-transformers/all-nli
178
+
179
+ * Dataset: [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
180
+ * Size: 120 evaluation samples
181
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
182
+ * Approximate statistics based on the first 1000 samples:
183
+ | | sentence1 | sentence2 | score |
184
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
185
+ | type | string | string | float |
186
+ | details | <ul><li>min: 5 tokens</li><li>mean: 21.39 tokens</li><li>max: 78 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 12.47 tokens</li><li>max: 31 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.58</li><li>max: 1.0</li></ul> |
187
+ * Samples:
188
+ | sentence1 | sentence2 | score |
189
+ |:---------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------|:-----------------|
190
+ | <code>When we leave the house we shall be followed again, but not molested, FOR IT IS Mr. BROWN'S PLAN THAT WE ARE TO LEAD HIM.</code> | <code>Mr. Brown has made a plan for us to lead him.</code> | <code>1.0</code> |
191
+ | <code>She hates me."</code> | <code>She loves me.</code> | <code>0.0</code> |
192
+ | <code>That, too, was locked or bolted on the inside.</code> | <code>She didn't want anyone to enter the room.</code> | <code>0.5</code> |
193
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
194
+ ```json
195
+ {
196
+ "scale": 20.0,
197
+ "similarity_fct": "pairwise_cos_sim"
198
+ }
199
+ ```
200
+
201
+ ### Training Hyperparameters
202
+ #### Non-Default Hyperparameters
203
+
204
+ - `eval_strategy`: steps
205
+ - `per_device_train_batch_size`: 16
206
+ - `per_device_eval_batch_size`: 16
207
+ - `learning_rate`: 2e-05
208
+ - `num_train_epochs`: 1
209
+ - `warmup_ratio`: 0.1
210
+
211
+ #### All Hyperparameters
212
+ <details><summary>Click to expand</summary>
213
+
214
+ - `overwrite_output_dir`: False
215
+ - `do_predict`: False
216
+ - `eval_strategy`: steps
217
+ - `prediction_loss_only`: True
218
+ - `per_device_train_batch_size`: 16
219
+ - `per_device_eval_batch_size`: 16
220
+ - `per_gpu_train_batch_size`: None
221
+ - `per_gpu_eval_batch_size`: None
222
+ - `gradient_accumulation_steps`: 1
223
+ - `eval_accumulation_steps`: None
224
+ - `learning_rate`: 2e-05
225
+ - `weight_decay`: 0.0
226
+ - `adam_beta1`: 0.9
227
+ - `adam_beta2`: 0.999
228
+ - `adam_epsilon`: 1e-08
229
+ - `max_grad_norm`: 1.0
230
+ - `num_train_epochs`: 1
231
+ - `max_steps`: -1
232
+ - `lr_scheduler_type`: linear
233
+ - `lr_scheduler_kwargs`: {}
234
+ - `warmup_ratio`: 0.1
235
+ - `warmup_steps`: 0
236
+ - `log_level`: passive
237
+ - `log_level_replica`: warning
238
+ - `log_on_each_node`: True
239
+ - `logging_nan_inf_filter`: True
240
+ - `save_safetensors`: True
241
+ - `save_on_each_node`: False
242
+ - `save_only_model`: False
243
+ - `restore_callback_states_from_checkpoint`: False
244
+ - `no_cuda`: False
245
+ - `use_cpu`: False
246
+ - `use_mps_device`: False
247
+ - `seed`: 42
248
+ - `data_seed`: None
249
+ - `jit_mode_eval`: False
250
+ - `use_ipex`: False
251
+ - `bf16`: False
252
+ - `fp16`: False
253
+ - `fp16_opt_level`: O1
254
+ - `half_precision_backend`: auto
255
+ - `bf16_full_eval`: False
256
+ - `fp16_full_eval`: False
257
+ - `tf32`: None
258
+ - `local_rank`: 0
259
+ - `ddp_backend`: None
260
+ - `tpu_num_cores`: None
261
+ - `tpu_metrics_debug`: False
262
+ - `debug`: []
263
+ - `dataloader_drop_last`: False
264
+ - `dataloader_num_workers`: 0
265
+ - `dataloader_prefetch_factor`: None
266
+ - `past_index`: -1
267
+ - `disable_tqdm`: False
268
+ - `remove_unused_columns`: True
269
+ - `label_names`: None
270
+ - `load_best_model_at_end`: False
271
+ - `ignore_data_skip`: False
272
+ - `fsdp`: []
273
+ - `fsdp_min_num_params`: 0
274
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
275
+ - `fsdp_transformer_layer_cls_to_wrap`: None
276
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
277
+ - `deepspeed`: None
278
+ - `label_smoothing_factor`: 0.0
279
+ - `optim`: adamw_torch
280
+ - `optim_args`: None
281
+ - `adafactor`: False
282
+ - `group_by_length`: False
283
+ - `length_column_name`: length
284
+ - `ddp_find_unused_parameters`: None
285
+ - `ddp_bucket_cap_mb`: None
286
+ - `ddp_broadcast_buffers`: False
287
+ - `dataloader_pin_memory`: True
288
+ - `dataloader_persistent_workers`: False
289
+ - `skip_memory_metrics`: True
290
+ - `use_legacy_prediction_loop`: False
291
+ - `push_to_hub`: False
292
+ - `resume_from_checkpoint`: None
293
+ - `hub_model_id`: None
294
+ - `hub_strategy`: every_save
295
+ - `hub_private_repo`: False
296
+ - `hub_always_push`: False
297
+ - `gradient_checkpointing`: False
298
+ - `gradient_checkpointing_kwargs`: None
299
+ - `include_inputs_for_metrics`: False
300
+ - `eval_do_concat_batches`: True
301
+ - `fp16_backend`: auto
302
+ - `push_to_hub_model_id`: None
303
+ - `push_to_hub_organization`: None
304
+ - `mp_parameters`:
305
+ - `auto_find_batch_size`: False
306
+ - `full_determinism`: False
307
+ - `torchdynamo`: None
308
+ - `ray_scope`: last
309
+ - `ddp_timeout`: 1800
310
+ - `torch_compile`: False
311
+ - `torch_compile_backend`: None
312
+ - `torch_compile_mode`: None
313
+ - `dispatch_batches`: None
314
+ - `split_batches`: None
315
+ - `include_tokens_per_second`: False
316
+ - `include_num_input_tokens_seen`: False
317
+ - `neftune_noise_alpha`: None
318
+ - `optim_target_modules`: None
319
+ - `batch_eval_metrics`: False
320
+ - `batch_sampler`: batch_sampler
321
+ - `multi_dataset_batch_sampler`: proportional
322
+
323
+ </details>
324
+
325
+ ### Framework Versions
326
+ - Python: 3.10.12
327
+ - Sentence Transformers: 3.0.1
328
+ - Transformers: 4.41.2
329
+ - PyTorch: 2.3.0+cu121
330
+ - Accelerate: 0.32.1
331
+ - Datasets: 2.20.0
332
+ - Tokenizers: 0.19.1
333
+
334
+ ## Citation
335
+
336
+ ### BibTeX
337
+
338
+ #### Sentence Transformers
339
+ ```bibtex
340
+ @inproceedings{reimers-2019-sentence-bert,
341
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
342
+ author = "Reimers, Nils and Gurevych, Iryna",
343
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
344
+ month = "11",
345
+ year = "2019",
346
+ publisher = "Association for Computational Linguistics",
347
+ url = "https://arxiv.org/abs/1908.10084",
348
+ }
349
+ ```
350
+
351
+ #### CoSENTLoss
352
+ ```bibtex
353
+ @online{kexuefm-8847,
354
+ title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
355
+ author={Su Jianlin},
356
+ year={2022},
357
+ month={Jan},
358
+ url={https://kexue.fm/archives/8847},
359
+ }
360
+ ```
361
+
362
+ <!--
363
+ ## Glossary
364
+
365
+ *Clearly define terms in order to be accessible across audiences.*
366
+ -->
367
+
368
+ <!--
369
+ ## Model Card Authors
370
+
371
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
372
+ -->
373
+
374
+ <!--
375
+ ## Model Card Contact
376
+
377
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
378
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/mpnet-base",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.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+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:7ce74afa76bbacb938aef31f2712a77f7dba1e775259c975b0a726bb90ae302b
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "[UNK]",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
36
+ "content": "[UNK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "30526": {
44
+ "content": "<mask>",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "bos_token": "<s>",
53
+ "clean_up_tokenization_spaces": true,
54
+ "cls_token": "<s>",
55
+ "do_lower_case": true,
56
+ "eos_token": "</s>",
57
+ "mask_token": "<mask>",
58
+ "model_max_length": 512,
59
+ "pad_token": "<pad>",
60
+ "sep_token": "</s>",
61
+ "strip_accents": null,
62
+ "tokenize_chinese_chars": true,
63
+ "tokenizer_class": "MPNetTokenizer",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff