MaliosDark commited on
Commit
13780e0
·
verified ·
1 Parent(s): 2aca616

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
+ }
2_Dense/config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 768,
3
+ "out_features": 1024,
4
+ "bias": true,
5
+ "activation_function": "torch.nn.modules.linear.Identity"
6
+ }
2_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63d5a271a3b1e843f26b5d3e00732514f09db1864b12951c4b38ded517e27b34
3
+ size 3149984
README.md CHANGED
@@ -1,3 +1,355 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:26144
9
+ - loss:CosineSimilarityLoss
10
+ base_model: sentence-transformers/all-mpnet-base-v2
11
+ widget:
12
+ - source_sentence: 'Query: Police: Four killed in German hostage taking incident'
13
+ sentences:
14
+ - 'Document: Document: Four Palestinians killed in IAF strike'
15
+ - 'Document: A black dog digs in the snow.'
16
+ - 'Document: Document: `` Rockingham '''' reached Whampoa on May 23 and arrived
17
+ in Bombay on September 21 .'
18
+ - source_sentence: 'Query: Being in a gang isnt a crime.'
19
+ sentences:
20
+ - 'Document: Commiting a crime in a gang is a crime.'
21
+ - 'Document: Document: I got a card, how do I get it in the app?'
22
+ - 'Document: Document: you don''t use the search button AT ALL, do you?'
23
+ - source_sentence: 'Query: Someone is boiling okra in a pot.'
24
+ sentences:
25
+ - 'Document: Document: I found my card, am I able to put it back into the app?'
26
+ - 'Document: Document: What are your exchange rates calculated from?'
27
+ - 'Document: Someone is cooking okra in a pan.'
28
+ - source_sentence: 'Query: Andrew Castle and Roberto Saad won in the final 6 -- 7
29
+ , 6 -- 4 , 7 -- 6 , against Gary Donnelly and Jim Grabb .'
30
+ sentences:
31
+ - 'Document: Document: Andrew Castle and Roberto Saad won in the final 6 -- 7 ,
32
+ 6 -- 4 , 7 -- 6 , against Gary Donnelly and Jim Grabb .'
33
+ - 'Document: Document: The dog is laying on a bed with a blue sheet.'
34
+ - 'Document: Document: Shares of EDS closed Thursday at $18.51, up 6 cents on the
35
+ New York Stock Exchange.'
36
+ - source_sentence: 'Query: Israeli Minister Slams Kerry''s Boycott Warning'
37
+ sentences:
38
+ - 'Document: My new card hasn''t came in.'
39
+ - 'Document: Israeli minister slams Kerry’s boycott warning'
40
+ - 'Document: And here I thought I knew me some math.'
41
+ pipeline_tag: sentence-similarity
42
+ library_name: sentence-transformers
43
+ ---
44
+
45
+ # SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
46
+
47
+ 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 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
48
+
49
+ ## Model Details
50
+
51
+ ### Model Description
52
+ - **Model Type:** Sentence Transformer
53
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision e8c3b32edf5434bc2275fc9bab85f82640a19130 -->
54
+ - **Maximum Sequence Length:** 384 tokens
55
+ - **Output Dimensionality:** 1024 dimensions
56
+ - **Similarity Function:** Cosine Similarity
57
+ <!-- - **Training Dataset:** Unknown -->
58
+ <!-- - **Language:** Unknown -->
59
+ <!-- - **License:** Unknown -->
60
+
61
+ ### Model Sources
62
+
63
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
64
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
65
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
66
+
67
+ ### Full Model Architecture
68
+
69
+ ```
70
+ SentenceTransformer(
71
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False, 'architecture': 'MPNetModel'})
72
+ (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})
73
+ (2): Dense({'in_features': 768, 'out_features': 1024, 'bias': True, 'activation_function': 'torch.nn.modules.linear.Identity'})
74
+ )
75
+ ```
76
+
77
+ ## Usage
78
+
79
+ ### Direct Usage (Sentence Transformers)
80
+
81
+ First install the Sentence Transformers library:
82
+
83
+ ```bash
84
+ pip install -U sentence-transformers
85
+ ```
86
+
87
+ Then you can load this model and run inference.
88
+ ```python
89
+ from sentence_transformers import SentenceTransformer
90
+
91
+ # Download from the 🤗 Hub
92
+ model = SentenceTransformer("MaliosDark/sofia-embedding-v1")
93
+ # Run inference
94
+ sentences = [
95
+ "Query: Israeli Minister Slams Kerry's Boycott Warning",
96
+ 'Document: Israeli minister slams Kerry’s boycott warning',
97
+ "Document: My new card hasn't came in.",
98
+ ]
99
+ embeddings = model.encode(sentences)
100
+ print(embeddings.shape)
101
+ # [3, 1024]
102
+
103
+ # Get the similarity scores for the embeddings
104
+ similarities = model.similarity(embeddings, embeddings)
105
+ print(similarities)
106
+ # tensor([[1.0000, 0.1488, 0.1918],
107
+ # [0.1488, 1.0000, 0.0295],
108
+ # [0.1918, 0.0295, 1.0000]])
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
+ #### Unnamed Dataset
152
+
153
+ * Size: 26,144 training samples
154
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
155
+ * Approximate statistics based on the first 1000 samples:
156
+ | | sentence_0 | sentence_1 | label |
157
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
158
+ | type | string | string | float |
159
+ | details | <ul><li>min: 8 tokens</li><li>mean: 19.83 tokens</li><li>max: 64 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 20.56 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.07</li><li>max: 1.0</li></ul> |
160
+ * Samples:
161
+ | sentence_0 | sentence_1 | label |
162
+ |:------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------|:-----------------|
163
+ | <code>Query: A woman is dancing in a cage.</code> | <code>Document: Document: A woman is dancing in railway station.</code> | <code>0.0</code> |
164
+ | <code>Query: A girl is reading a newspaper.</code> | <code>Document: A chef is peeling a potato.</code> | <code>0.0</code> |
165
+ | <code>Query: In contrast , cold years are often associated with dry Pacific La Niña episodes .</code> | <code>Document: Document: As a candy , they are often red with liquorice or black and strawberry or cherry flavor .</code> | <code>0.0</code> |
166
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
167
+ ```json
168
+ {
169
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
170
+ }
171
+ ```
172
+
173
+ ### Training Hyperparameters
174
+ #### Non-Default Hyperparameters
175
+
176
+ - `per_device_train_batch_size`: 32
177
+ - `per_device_eval_batch_size`: 32
178
+ - `multi_dataset_batch_sampler`: round_robin
179
+
180
+ #### All Hyperparameters
181
+ <details><summary>Click to expand</summary>
182
+
183
+ - `overwrite_output_dir`: False
184
+ - `do_predict`: False
185
+ - `eval_strategy`: no
186
+ - `prediction_loss_only`: True
187
+ - `per_device_train_batch_size`: 32
188
+ - `per_device_eval_batch_size`: 32
189
+ - `per_gpu_train_batch_size`: None
190
+ - `per_gpu_eval_batch_size`: None
191
+ - `gradient_accumulation_steps`: 1
192
+ - `eval_accumulation_steps`: None
193
+ - `torch_empty_cache_steps`: None
194
+ - `learning_rate`: 5e-05
195
+ - `weight_decay`: 0.0
196
+ - `adam_beta1`: 0.9
197
+ - `adam_beta2`: 0.999
198
+ - `adam_epsilon`: 1e-08
199
+ - `max_grad_norm`: 1
200
+ - `num_train_epochs`: 3
201
+ - `max_steps`: -1
202
+ - `lr_scheduler_type`: linear
203
+ - `lr_scheduler_kwargs`: {}
204
+ - `warmup_ratio`: 0.0
205
+ - `warmup_steps`: 0
206
+ - `log_level`: passive
207
+ - `log_level_replica`: warning
208
+ - `log_on_each_node`: True
209
+ - `logging_nan_inf_filter`: True
210
+ - `save_safetensors`: True
211
+ - `save_on_each_node`: False
212
+ - `save_only_model`: False
213
+ - `restore_callback_states_from_checkpoint`: False
214
+ - `no_cuda`: False
215
+ - `use_cpu`: False
216
+ - `use_mps_device`: False
217
+ - `seed`: 42
218
+ - `data_seed`: None
219
+ - `jit_mode_eval`: False
220
+ - `use_ipex`: False
221
+ - `bf16`: False
222
+ - `fp16`: False
223
+ - `fp16_opt_level`: O1
224
+ - `half_precision_backend`: auto
225
+ - `bf16_full_eval`: False
226
+ - `fp16_full_eval`: False
227
+ - `tf32`: None
228
+ - `local_rank`: 0
229
+ - `ddp_backend`: None
230
+ - `tpu_num_cores`: None
231
+ - `tpu_metrics_debug`: False
232
+ - `debug`: []
233
+ - `dataloader_drop_last`: False
234
+ - `dataloader_num_workers`: 0
235
+ - `dataloader_prefetch_factor`: None
236
+ - `past_index`: -1
237
+ - `disable_tqdm`: False
238
+ - `remove_unused_columns`: True
239
+ - `label_names`: None
240
+ - `load_best_model_at_end`: False
241
+ - `ignore_data_skip`: False
242
+ - `fsdp`: []
243
+ - `fsdp_min_num_params`: 0
244
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
245
+ - `fsdp_transformer_layer_cls_to_wrap`: None
246
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
247
+ - `parallelism_config`: None
248
+ - `deepspeed`: None
249
+ - `label_smoothing_factor`: 0.0
250
+ - `optim`: adamw_torch_fused
251
+ - `optim_args`: None
252
+ - `adafactor`: False
253
+ - `group_by_length`: False
254
+ - `length_column_name`: length
255
+ - `ddp_find_unused_parameters`: None
256
+ - `ddp_bucket_cap_mb`: None
257
+ - `ddp_broadcast_buffers`: False
258
+ - `dataloader_pin_memory`: True
259
+ - `dataloader_persistent_workers`: False
260
+ - `skip_memory_metrics`: True
261
+ - `use_legacy_prediction_loop`: False
262
+ - `push_to_hub`: False
263
+ - `resume_from_checkpoint`: None
264
+ - `hub_model_id`: None
265
+ - `hub_strategy`: every_save
266
+ - `hub_private_repo`: None
267
+ - `hub_always_push`: False
268
+ - `hub_revision`: None
269
+ - `gradient_checkpointing`: False
270
+ - `gradient_checkpointing_kwargs`: None
271
+ - `include_inputs_for_metrics`: False
272
+ - `include_for_metrics`: []
273
+ - `eval_do_concat_batches`: True
274
+ - `fp16_backend`: auto
275
+ - `push_to_hub_model_id`: None
276
+ - `push_to_hub_organization`: None
277
+ - `mp_parameters`:
278
+ - `auto_find_batch_size`: False
279
+ - `full_determinism`: False
280
+ - `torchdynamo`: None
281
+ - `ray_scope`: last
282
+ - `ddp_timeout`: 1800
283
+ - `torch_compile`: False
284
+ - `torch_compile_backend`: None
285
+ - `torch_compile_mode`: None
286
+ - `include_tokens_per_second`: False
287
+ - `include_num_input_tokens_seen`: False
288
+ - `neftune_noise_alpha`: None
289
+ - `optim_target_modules`: None
290
+ - `batch_eval_metrics`: False
291
+ - `eval_on_start`: False
292
+ - `use_liger_kernel`: False
293
+ - `liger_kernel_config`: None
294
+ - `eval_use_gather_object`: False
295
+ - `average_tokens_across_devices`: False
296
+ - `prompts`: None
297
+ - `batch_sampler`: batch_sampler
298
+ - `multi_dataset_batch_sampler`: round_robin
299
+ - `router_mapping`: {}
300
+ - `learning_rate_mapping`: {}
301
+
302
+ </details>
303
+
304
+ ### Training Logs
305
+ | Epoch | Step | Training Loss |
306
+ |:------:|:----:|:-------------:|
307
+ | 0.6120 | 500 | 0.0482 |
308
+ | 1.2240 | 1000 | 0.022 |
309
+ | 1.8360 | 1500 | 0.0177 |
310
+ | 2.4480 | 2000 | 0.0127 |
311
+
312
+
313
+ ### Framework Versions
314
+ - Python: 3.12.3
315
+ - Sentence Transformers: 5.1.0
316
+ - Transformers: 4.56.2
317
+ - PyTorch: 2.8.0+cu128
318
+ - Accelerate: 1.10.1
319
+ - Datasets: 4.1.1
320
+ - Tokenizers: 0.22.1
321
+
322
+ ## Citation
323
+
324
+ ### BibTeX
325
+
326
+ #### Sentence Transformers
327
+ ```bibtex
328
+ @inproceedings{reimers-2019-sentence-bert,
329
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
330
+ author = "Reimers, Nils and Gurevych, Iryna",
331
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
332
+ month = "11",
333
+ year = "2019",
334
+ publisher = "Association for Computational Linguistics",
335
+ url = "https://arxiv.org/abs/1908.10084",
336
+ }
337
+ ```
338
+
339
+ <!--
340
+ ## Glossary
341
+
342
+ *Clearly define terms in order to be accessible across audiences.*
343
+ -->
344
+
345
+ <!--
346
+ ## Model Card Authors
347
+
348
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
349
+ -->
350
+
351
+ <!--
352
+ ## Model Card Contact
353
+
354
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
355
+ -->
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
+ "dtype": "float32",
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
+ "transformers_version": "4.56.2",
22
+ "vocab_size": 30527
23
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.0",
4
+ "transformers": "4.56.2",
5
+ "pytorch": "2.8.0+cu128"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63d7b6c232ef9de630d7a2a8da720444e56f07c6ab060170541207ed6b70a4ce
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_Dense",
18
+ "type": "sentence_transformers.models.Dense"
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