PietroSaveri commited on
Commit
e87b466
·
verified ·
1 Parent(s): b38d1c9

Upload fine-tuned meme cluster classifier

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,416 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:6066
8
+ - loss:OnlineContrastiveLoss
9
+ base_model: sentence-transformers/all-mpnet-base-v2
10
+ widget:
11
+ - source_sentence: Mitochondria, often called 'powerhouses of the cell,' generate
12
+ most of the cell's ATP through cellular respiration and have their own DNA.
13
+ sentences:
14
+ - Plate tectonics theory explains that Earth's lithosphere is divided into plates
15
+ that move, causing earthquakes, volcanoes, and mountain formation.
16
+ - The Titanic was intentionally sunk as part of an insurance scam by J.P. Morgan.
17
+ - Why can't you trust a statistician? They're always plotting something, and they
18
+ have a mean personality.
19
+ - source_sentence: Sharks have existed for about 400 million years, predating trees
20
+ (which appeared around 350 million years ago).
21
+ sentences:
22
+ - What is a physicist's favorite food? Fission chips.
23
+ - Venus has a surface temperature of ~465°C (870°F) due to a runaway greenhouse
24
+ effect from its dense CO2 atmosphere, making it hotter than Mercury.
25
+ - My therapist told me time heals all wounds. So I stabbed him. Now we wait. For
26
+ science!
27
+ - source_sentence: CRISPR-Cas9 is a gene-editing tool that uses a guide RNA to direct
28
+ the Cas9 enzyme to a specific DNA sequence for cutting.
29
+ sentences:
30
+ - Plate tectonics theory explains that Earth's lithosphere is divided into plates
31
+ that move, causing earthquakes, volcanoes, and mountain formation.
32
+ - Elvis Presley faked his death and is still alive, living in secret.
33
+ - Why don't skeletons fight each other? They don't have the guts.
34
+ - source_sentence: Venus has a surface temperature of ~465°C (870°F) due to a runaway
35
+ greenhouse effect from its dense CO2 atmosphere, making it hotter than Mercury.
36
+ sentences:
37
+ - JFK was assassinated by the CIA/Mafia/LBJ, not a lone gunman.
38
+ - Why do programmers prefer dark mode? Because light attracts bugs.
39
+ - Plate tectonics theory explains that Earth's lithosphere is divided into plates
40
+ that move, causing earthquakes, volcanoes, and mountain formation.
41
+ - source_sentence: Finland doesn't exist; it's a fabrication by Japan and Russia.
42
+ sentences:
43
+ - Why did the functions stop calling each other? Because they had constant arguments
44
+ and no common ground.
45
+ - What's a pirate's favorite programming language? Rrrrr! (or C, for the sea)
46
+ - The lost city of Atlantis is real and its advanced technology is hidden from us.
47
+ pipeline_tag: sentence-similarity
48
+ library_name: sentence-transformers
49
+ metrics:
50
+ - cosine_accuracy
51
+ - cosine_accuracy_threshold
52
+ - cosine_f1
53
+ - cosine_f1_threshold
54
+ - cosine_precision
55
+ - cosine_recall
56
+ - cosine_ap
57
+ - cosine_mcc
58
+ model-index:
59
+ - name: SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
60
+ results:
61
+ - task:
62
+ type: binary-classification
63
+ name: Binary Classification
64
+ dataset:
65
+ name: meme dev binary
66
+ type: meme-dev-binary
67
+ metrics:
68
+ - type: cosine_accuracy
69
+ value: 1.0
70
+ name: Cosine Accuracy
71
+ - type: cosine_accuracy_threshold
72
+ value: 0.7174700498580933
73
+ name: Cosine Accuracy Threshold
74
+ - type: cosine_f1
75
+ value: 1.0
76
+ name: Cosine F1
77
+ - type: cosine_f1_threshold
78
+ value: 0.7174700498580933
79
+ name: Cosine F1 Threshold
80
+ - type: cosine_precision
81
+ value: 1.0
82
+ name: Cosine Precision
83
+ - type: cosine_recall
84
+ value: 1.0
85
+ name: Cosine Recall
86
+ - type: cosine_ap
87
+ value: 0.9999999999999999
88
+ name: Cosine Ap
89
+ - type: cosine_mcc
90
+ value: 1.0
91
+ name: Cosine Mcc
92
+ ---
93
+
94
+ # SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
95
+
96
+ 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.
97
+
98
+ ## Model Details
99
+
100
+ ### Model Description
101
+ - **Model Type:** Sentence Transformer
102
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision 12e86a3c702fc3c50205a8db88f0ec7c0b6b94a0 -->
103
+ - **Maximum Sequence Length:** 384 tokens
104
+ - **Output Dimensionality:** 768 dimensions
105
+ - **Similarity Function:** Cosine Similarity
106
+ <!-- - **Training Dataset:** Unknown -->
107
+ <!-- - **Language:** Unknown -->
108
+ <!-- - **License:** Unknown -->
109
+
110
+ ### Model Sources
111
+
112
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
113
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
114
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
115
+
116
+ ### Full Model Architecture
117
+
118
+ ```
119
+ SentenceTransformer(
120
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel
121
+ (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})
122
+ (2): Normalize()
123
+ )
124
+ ```
125
+
126
+ ## Usage
127
+
128
+ ### Direct Usage (Sentence Transformers)
129
+
130
+ First install the Sentence Transformers library:
131
+
132
+ ```bash
133
+ pip install -U sentence-transformers
134
+ ```
135
+
136
+ Then you can load this model and run inference.
137
+ ```python
138
+ from sentence_transformers import SentenceTransformer
139
+
140
+ # Download from the 🤗 Hub
141
+ model = SentenceTransformer("PietroSaveri/meme-cluster-classifier")
142
+ # Run inference
143
+ sentences = [
144
+ "Finland doesn't exist; it's a fabrication by Japan and Russia.",
145
+ "What's a pirate's favorite programming language? Rrrrr! (or C, for the sea)",
146
+ 'Why did the functions stop calling each other? Because they had constant arguments and no common ground.',
147
+ ]
148
+ embeddings = model.encode(sentences)
149
+ print(embeddings.shape)
150
+ # [3, 768]
151
+
152
+ # Get the similarity scores for the embeddings
153
+ similarities = model.similarity(embeddings, embeddings)
154
+ print(similarities.shape)
155
+ # [3, 3]
156
+ ```
157
+
158
+ <!--
159
+ ### Direct Usage (Transformers)
160
+
161
+ <details><summary>Click to see the direct usage in Transformers</summary>
162
+
163
+ </details>
164
+ -->
165
+
166
+ <!--
167
+ ### Downstream Usage (Sentence Transformers)
168
+
169
+ You can finetune this model on your own dataset.
170
+
171
+ <details><summary>Click to expand</summary>
172
+
173
+ </details>
174
+ -->
175
+
176
+ <!--
177
+ ### Out-of-Scope Use
178
+
179
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
180
+ -->
181
+
182
+ ## Evaluation
183
+
184
+ ### Metrics
185
+
186
+ #### Binary Classification
187
+
188
+ * Dataset: `meme-dev-binary`
189
+ * Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
190
+
191
+ | Metric | Value |
192
+ |:--------------------------|:--------|
193
+ | cosine_accuracy | 1.0 |
194
+ | cosine_accuracy_threshold | 0.7175 |
195
+ | cosine_f1 | 1.0 |
196
+ | cosine_f1_threshold | 0.7175 |
197
+ | cosine_precision | 1.0 |
198
+ | cosine_recall | 1.0 |
199
+ | **cosine_ap** | **1.0** |
200
+ | cosine_mcc | 1.0 |
201
+
202
+ <!--
203
+ ## Bias, Risks and Limitations
204
+
205
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
206
+ -->
207
+
208
+ <!--
209
+ ### Recommendations
210
+
211
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
212
+ -->
213
+
214
+ ## Training Details
215
+
216
+ ### Training Dataset
217
+
218
+ #### Unnamed Dataset
219
+
220
+ * Size: 6,066 training samples
221
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
222
+ * Approximate statistics based on the first 1000 samples:
223
+ | | sentence_0 | sentence_1 | label |
224
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------|
225
+ | type | string | string | float |
226
+ | details | <ul><li>min: 11 tokens</li><li>mean: 24.61 tokens</li><li>max: 68 tokens</li></ul> | <ul><li>min: 11 tokens</li><li>mean: 24.17 tokens</li><li>max: 68 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.46</li><li>max: 1.0</li></ul> |
227
+ * Samples:
228
+ | sentence_0 | sentence_1 | label |
229
+ |:-----------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
230
+ | <code>The cure for AIDS was discovered decades ago but suppressed to reduce world population.</code> | <code>Einstein’s theory of general relativity describes gravity not as a force, but as the curvature of spacetime caused by mass and energy.</code> | <code>0.0</code> |
231
+ | <code>5G towers are designed to activate nanoparticles from vaccines for population control.</code> | <code>The Mandela Effect proves we've shifted into an alternate reality.</code> | <code>1.0</code> |
232
+ | <code>The Georgia Guidestones were a NWO manifesto, destroyed to hide the plans.</code> | <code>Elvis Presley faked his death and is still alive, living in secret.</code> | <code>1.0</code> |
233
+ * Loss: [<code>OnlineContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#onlinecontrastiveloss)
234
+
235
+ ### Training Hyperparameters
236
+ #### Non-Default Hyperparameters
237
+
238
+ - `eval_strategy`: steps
239
+ - `per_device_train_batch_size`: 16
240
+ - `per_device_eval_batch_size`: 16
241
+ - `num_train_epochs`: 4
242
+ - `multi_dataset_batch_sampler`: round_robin
243
+
244
+ #### All Hyperparameters
245
+ <details><summary>Click to expand</summary>
246
+
247
+ - `overwrite_output_dir`: False
248
+ - `do_predict`: False
249
+ - `eval_strategy`: steps
250
+ - `prediction_loss_only`: True
251
+ - `per_device_train_batch_size`: 16
252
+ - `per_device_eval_batch_size`: 16
253
+ - `per_gpu_train_batch_size`: None
254
+ - `per_gpu_eval_batch_size`: None
255
+ - `gradient_accumulation_steps`: 1
256
+ - `eval_accumulation_steps`: None
257
+ - `torch_empty_cache_steps`: None
258
+ - `learning_rate`: 5e-05
259
+ - `weight_decay`: 0.0
260
+ - `adam_beta1`: 0.9
261
+ - `adam_beta2`: 0.999
262
+ - `adam_epsilon`: 1e-08
263
+ - `max_grad_norm`: 1
264
+ - `num_train_epochs`: 4
265
+ - `max_steps`: -1
266
+ - `lr_scheduler_type`: linear
267
+ - `lr_scheduler_kwargs`: {}
268
+ - `warmup_ratio`: 0.0
269
+ - `warmup_steps`: 0
270
+ - `log_level`: passive
271
+ - `log_level_replica`: warning
272
+ - `log_on_each_node`: True
273
+ - `logging_nan_inf_filter`: True
274
+ - `save_safetensors`: True
275
+ - `save_on_each_node`: False
276
+ - `save_only_model`: False
277
+ - `restore_callback_states_from_checkpoint`: False
278
+ - `no_cuda`: False
279
+ - `use_cpu`: False
280
+ - `use_mps_device`: False
281
+ - `seed`: 42
282
+ - `data_seed`: None
283
+ - `jit_mode_eval`: False
284
+ - `use_ipex`: False
285
+ - `bf16`: False
286
+ - `fp16`: False
287
+ - `fp16_opt_level`: O1
288
+ - `half_precision_backend`: auto
289
+ - `bf16_full_eval`: False
290
+ - `fp16_full_eval`: False
291
+ - `tf32`: None
292
+ - `local_rank`: 0
293
+ - `ddp_backend`: None
294
+ - `tpu_num_cores`: None
295
+ - `tpu_metrics_debug`: False
296
+ - `debug`: []
297
+ - `dataloader_drop_last`: False
298
+ - `dataloader_num_workers`: 0
299
+ - `dataloader_prefetch_factor`: None
300
+ - `past_index`: -1
301
+ - `disable_tqdm`: False
302
+ - `remove_unused_columns`: True
303
+ - `label_names`: None
304
+ - `load_best_model_at_end`: False
305
+ - `ignore_data_skip`: False
306
+ - `fsdp`: []
307
+ - `fsdp_min_num_params`: 0
308
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
309
+ - `fsdp_transformer_layer_cls_to_wrap`: None
310
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
311
+ - `deepspeed`: None
312
+ - `label_smoothing_factor`: 0.0
313
+ - `optim`: adamw_torch
314
+ - `optim_args`: None
315
+ - `adafactor`: False
316
+ - `group_by_length`: False
317
+ - `length_column_name`: length
318
+ - `ddp_find_unused_parameters`: None
319
+ - `ddp_bucket_cap_mb`: None
320
+ - `ddp_broadcast_buffers`: False
321
+ - `dataloader_pin_memory`: True
322
+ - `dataloader_persistent_workers`: False
323
+ - `skip_memory_metrics`: True
324
+ - `use_legacy_prediction_loop`: False
325
+ - `push_to_hub`: False
326
+ - `resume_from_checkpoint`: None
327
+ - `hub_model_id`: None
328
+ - `hub_strategy`: every_save
329
+ - `hub_private_repo`: None
330
+ - `hub_always_push`: False
331
+ - `gradient_checkpointing`: False
332
+ - `gradient_checkpointing_kwargs`: None
333
+ - `include_inputs_for_metrics`: False
334
+ - `include_for_metrics`: []
335
+ - `eval_do_concat_batches`: True
336
+ - `fp16_backend`: auto
337
+ - `push_to_hub_model_id`: None
338
+ - `push_to_hub_organization`: None
339
+ - `mp_parameters`:
340
+ - `auto_find_batch_size`: False
341
+ - `full_determinism`: False
342
+ - `torchdynamo`: None
343
+ - `ray_scope`: last
344
+ - `ddp_timeout`: 1800
345
+ - `torch_compile`: False
346
+ - `torch_compile_backend`: None
347
+ - `torch_compile_mode`: None
348
+ - `include_tokens_per_second`: False
349
+ - `include_num_input_tokens_seen`: False
350
+ - `neftune_noise_alpha`: None
351
+ - `optim_target_modules`: None
352
+ - `batch_eval_metrics`: False
353
+ - `eval_on_start`: False
354
+ - `use_liger_kernel`: False
355
+ - `eval_use_gather_object`: False
356
+ - `average_tokens_across_devices`: False
357
+ - `prompts`: None
358
+ - `batch_sampler`: batch_sampler
359
+ - `multi_dataset_batch_sampler`: round_robin
360
+
361
+ </details>
362
+
363
+ ### Training Logs
364
+ | Epoch | Step | Training Loss | meme-dev-binary_cosine_ap |
365
+ |:------:|:----:|:-------------:|:-------------------------:|
366
+ | 0.5 | 190 | - | 0.9999 |
367
+ | 1.0 | 380 | - | 1.0000 |
368
+ | 1.3158 | 500 | 0.3125 | - |
369
+ | 1.5 | 570 | - | 1.0000 |
370
+ | 2.0 | 760 | - | 0.9999 |
371
+ | 2.5 | 950 | - | 1.0000 |
372
+
373
+
374
+ ### Framework Versions
375
+ - Python: 3.11.13
376
+ - Sentence Transformers: 4.1.0
377
+ - Transformers: 4.52.4
378
+ - PyTorch: 2.6.0+cu124
379
+ - Accelerate: 1.7.0
380
+ - Datasets: 2.14.4
381
+ - Tokenizers: 0.21.1
382
+
383
+ ## Citation
384
+
385
+ ### BibTeX
386
+
387
+ #### Sentence Transformers
388
+ ```bibtex
389
+ @inproceedings{reimers-2019-sentence-bert,
390
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
391
+ author = "Reimers, Nils and Gurevych, Iryna",
392
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
393
+ month = "11",
394
+ year = "2019",
395
+ publisher = "Association for Computational Linguistics",
396
+ url = "https://arxiv.org/abs/1908.10084",
397
+ }
398
+ ```
399
+
400
+ <!--
401
+ ## Glossary
402
+
403
+ *Clearly define terms in order to be accessible across audiences.*
404
+ -->
405
+
406
+ <!--
407
+ ## Model Card Authors
408
+
409
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
410
+ -->
411
+
412
+ <!--
413
+ ## Model Card Contact
414
+
415
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
416
+ -->
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.4",
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.4",
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:4e08a4562ffb2dd725a9022cc86d933ef967f7a3cf07b773baeade7727b91f81
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