scroobiustrip commited on
Commit
8fb586c
·
verified ·
1 Parent(s): 438cd1b

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