ingridchien commited on
Commit
3836884
·
verified ·
1 Parent(s): 436401d

Upload 7 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - cross-encoder
5
+ - reranker
6
+ - generated_from_trainer
7
+ - dataset_size:68056
8
+ - loss:BinaryCrossEntropyLoss
9
+ base_model: BAAI/bge-reranker-v2-m3
10
+ pipeline_tag: text-ranking
11
+ library_name: sentence-transformers
12
+ metrics:
13
+ - accuracy
14
+ - accuracy_threshold
15
+ - f1
16
+ - f1_threshold
17
+ - precision
18
+ - recall
19
+ - average_precision
20
+ model-index:
21
+ - name: CrossEncoder based on BAAI/bge-reranker-v2-m3
22
+ results:
23
+ - task:
24
+ type: cross-encoder-binary-classification
25
+ name: Cross Encoder Binary Classification
26
+ dataset:
27
+ name: eval
28
+ type: eval
29
+ metrics:
30
+ - type: accuracy
31
+ value: 0.8962388216728038
32
+ name: Accuracy
33
+ - type: accuracy_threshold
34
+ value: 0.2969196140766144
35
+ name: Accuracy Threshold
36
+ - type: f1
37
+ value: 0.7976337194971654
38
+ name: F1
39
+ - type: f1_threshold
40
+ value: 0.20159849524497986
41
+ name: F1 Threshold
42
+ - type: precision
43
+ value: 0.7504638218923934
44
+ name: Precision
45
+ - type: recall
46
+ value: 0.8511309836927933
47
+ name: Recall
48
+ - type: average_precision
49
+ value: 0.8668698311259357
50
+ name: Average Precision
51
+ ---
52
+
53
+ # CrossEncoder based on BAAI/bge-reranker-v2-m3
54
+
55
+ This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [BAAI/bge-reranker-v2-m3](https://huggingface.co/BAAI/bge-reranker-v2-m3) using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
56
+
57
+ ## Model Details
58
+
59
+ ### Model Description
60
+ - **Model Type:** Cross Encoder
61
+ - **Base model:** [BAAI/bge-reranker-v2-m3](https://huggingface.co/BAAI/bge-reranker-v2-m3) <!-- at revision 953dc6f6f85a1b2dbfca4c34a2796e7dde08d41e -->
62
+ - **Maximum Sequence Length:** 512 tokens
63
+ - **Number of Output Labels:** 1 label
64
+ <!-- - **Training Dataset:** Unknown -->
65
+ <!-- - **Language:** Unknown -->
66
+ <!-- - **License:** Unknown -->
67
+
68
+ ### Model Sources
69
+
70
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
71
+ - **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
72
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
73
+ - **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
74
+
75
+ ## Usage
76
+
77
+ ### Direct Usage (Sentence Transformers)
78
+
79
+ First install the Sentence Transformers library:
80
+
81
+ ```bash
82
+ pip install -U sentence-transformers
83
+ ```
84
+
85
+ Then you can load this model and run inference.
86
+ ```python
87
+ from sentence_transformers import CrossEncoder
88
+
89
+ # Download from the 🤗 Hub
90
+ model = CrossEncoder("cross_encoder_model_id")
91
+ # Get scores for pairs of texts
92
+ pairs = [
93
+ ['A Hydro Flask in a light brown color with a small hand logo.', 'A large, light-brown Hydro Flask water bottle with a darker tan cap and black accents, appears to be made of metal, and seems to be in new condition with tags still attached.'],
94
+ ['A black smartphone.', 'The image shows four used smartphones, including a white and black Samsung smartphone, a black and silver phone of unknown brand, a white and black Nokia phone, and a white Apple iPhone, all appearing to be between 4 and 5 inches in screen size.'],
95
+ ['A purple pencil case with a unicorn design.', 'A new, mint green hard-shell pencil case with a ribbed texture and a central circular illustration of a unicorn with a rainbow mane.'],
96
+ ['A folded, dark blue umbrella has a slightly crinkled matching fabric case and its handle is still wrapped in clear plastic.', 'There are two blue umbrellas.'],
97
+ ['a black messenger bag with purple stitching.', 'A gray-green backpack with black mesh padding and an orange "NANEU PRO" tag on the side.'],
98
+ ]
99
+ scores = model.predict(pairs)
100
+ print(scores.shape)
101
+ # (5,)
102
+
103
+ # Or rank different texts based on similarity to a single text
104
+ ranks = model.rank(
105
+ 'A Hydro Flask in a light brown color with a small hand logo.',
106
+ [
107
+ 'A large, light-brown Hydro Flask water bottle with a darker tan cap and black accents, appears to be made of metal, and seems to be in new condition with tags still attached.',
108
+ 'The image shows four used smartphones, including a white and black Samsung smartphone, a black and silver phone of unknown brand, a white and black Nokia phone, and a white Apple iPhone, all appearing to be between 4 and 5 inches in screen size.',
109
+ 'A new, mint green hard-shell pencil case with a ribbed texture and a central circular illustration of a unicorn with a rainbow mane.',
110
+ 'There are two blue umbrellas.',
111
+ 'A gray-green backpack with black mesh padding and an orange "NANEU PRO" tag on the side.',
112
+ ]
113
+ )
114
+ # [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
115
+ ```
116
+
117
+ <!--
118
+ ### Direct Usage (Transformers)
119
+
120
+ <details><summary>Click to see the direct usage in Transformers</summary>
121
+
122
+ </details>
123
+ -->
124
+
125
+ <!--
126
+ ### Downstream Usage (Sentence Transformers)
127
+
128
+ You can finetune this model on your own dataset.
129
+
130
+ <details><summary>Click to expand</summary>
131
+
132
+ </details>
133
+ -->
134
+
135
+ <!--
136
+ ### Out-of-Scope Use
137
+
138
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
139
+ -->
140
+
141
+ ## Evaluation
142
+
143
+ ### Metrics
144
+
145
+ #### Cross Encoder Binary Classification
146
+
147
+ * Dataset: `eval`
148
+ * Evaluated with [<code>CEBinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/cross_encoder/evaluation.html#sentence_transformers.cross_encoder.evaluation.CEBinaryClassificationEvaluator)
149
+
150
+ | Metric | Value |
151
+ |:----------------------|:-----------|
152
+ | accuracy | 0.8962 |
153
+ | accuracy_threshold | 0.2969 |
154
+ | f1 | 0.7976 |
155
+ | f1_threshold | 0.2016 |
156
+ | precision | 0.7505 |
157
+ | recall | 0.8511 |
158
+ | **average_precision** | **0.8669** |
159
+
160
+ <!--
161
+ ## Bias, Risks and Limitations
162
+
163
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
164
+ -->
165
+
166
+ <!--
167
+ ### Recommendations
168
+
169
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
170
+ -->
171
+
172
+ ## Training Details
173
+
174
+ ### Training Dataset
175
+
176
+ #### Unnamed Dataset
177
+
178
+ * Size: 68,056 training samples
179
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
180
+ * Approximate statistics based on the first 1000 samples:
181
+ | | sentence_0 | sentence_1 | label |
182
+ |:--------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:---------------------------------------------------------------|
183
+ | type | string | string | float |
184
+ | details | <ul><li>min: 18 characters</li><li>mean: 104.96 characters</li><li>max: 313 characters</li></ul> | <ul><li>min: 15 characters</li><li>mean: 116.53 characters</li><li>max: 482 characters</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.23</li><li>max: 1.0</li></ul> |
185
+ * Samples:
186
+ | sentence_0 | sentence_1 | label |
187
+ |:--------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
188
+ | <code>A Hydro Flask in a light brown color with a small hand logo.</code> | <code>A large, light-brown Hydro Flask water bottle with a darker tan cap and black accents, appears to be made of metal, and seems to be in new condition with tags still attached.</code> | <code>1.0</code> |
189
+ | <code>A black smartphone.</code> | <code>The image shows four used smartphones, including a white and black Samsung smartphone, a black and silver phone of unknown brand, a white and black Nokia phone, and a white Apple iPhone, all appearing to be between 4 and 5 inches in screen size.</code> | <code>0.0</code> |
190
+ | <code>A purple pencil case with a unicorn design.</code> | <code>A new, mint green hard-shell pencil case with a ribbed texture and a central circular illustration of a unicorn with a rainbow mane.</code> | <code>0.0</code> |
191
+ * Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
192
+ ```json
193
+ {
194
+ "activation_fn": "torch.nn.modules.linear.Identity",
195
+ "pos_weight": null
196
+ }
197
+ ```
198
+
199
+ ### Training Hyperparameters
200
+ #### Non-Default Hyperparameters
201
+
202
+ - `eval_strategy`: steps
203
+ - `per_device_train_batch_size`: 16
204
+ - `per_device_eval_batch_size`: 16
205
+
206
+ #### All Hyperparameters
207
+ <details><summary>Click to expand</summary>
208
+
209
+ - `overwrite_output_dir`: False
210
+ - `do_predict`: False
211
+ - `eval_strategy`: steps
212
+ - `prediction_loss_only`: True
213
+ - `per_device_train_batch_size`: 16
214
+ - `per_device_eval_batch_size`: 16
215
+ - `per_gpu_train_batch_size`: None
216
+ - `per_gpu_eval_batch_size`: None
217
+ - `gradient_accumulation_steps`: 1
218
+ - `eval_accumulation_steps`: None
219
+ - `torch_empty_cache_steps`: None
220
+ - `learning_rate`: 5e-05
221
+ - `weight_decay`: 0.0
222
+ - `adam_beta1`: 0.9
223
+ - `adam_beta2`: 0.999
224
+ - `adam_epsilon`: 1e-08
225
+ - `max_grad_norm`: 1
226
+ - `num_train_epochs`: 3
227
+ - `max_steps`: -1
228
+ - `lr_scheduler_type`: linear
229
+ - `lr_scheduler_kwargs`: {}
230
+ - `warmup_ratio`: 0.0
231
+ - `warmup_steps`: 0
232
+ - `log_level`: passive
233
+ - `log_level_replica`: warning
234
+ - `log_on_each_node`: True
235
+ - `logging_nan_inf_filter`: True
236
+ - `save_safetensors`: True
237
+ - `save_on_each_node`: False
238
+ - `save_only_model`: False
239
+ - `restore_callback_states_from_checkpoint`: False
240
+ - `no_cuda`: False
241
+ - `use_cpu`: False
242
+ - `use_mps_device`: False
243
+ - `seed`: 42
244
+ - `data_seed`: None
245
+ - `jit_mode_eval`: False
246
+ - `bf16`: False
247
+ - `fp16`: False
248
+ - `fp16_opt_level`: O1
249
+ - `half_precision_backend`: auto
250
+ - `bf16_full_eval`: False
251
+ - `fp16_full_eval`: False
252
+ - `tf32`: None
253
+ - `local_rank`: 0
254
+ - `ddp_backend`: None
255
+ - `tpu_num_cores`: None
256
+ - `tpu_metrics_debug`: False
257
+ - `debug`: []
258
+ - `dataloader_drop_last`: False
259
+ - `dataloader_num_workers`: 0
260
+ - `dataloader_prefetch_factor`: None
261
+ - `past_index`: -1
262
+ - `disable_tqdm`: False
263
+ - `remove_unused_columns`: True
264
+ - `label_names`: None
265
+ - `load_best_model_at_end`: False
266
+ - `ignore_data_skip`: False
267
+ - `fsdp`: []
268
+ - `fsdp_min_num_params`: 0
269
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
270
+ - `fsdp_transformer_layer_cls_to_wrap`: None
271
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
272
+ - `parallelism_config`: None
273
+ - `deepspeed`: None
274
+ - `label_smoothing_factor`: 0.0
275
+ - `optim`: adamw_torch_fused
276
+ - `optim_args`: None
277
+ - `adafactor`: False
278
+ - `group_by_length`: False
279
+ - `length_column_name`: length
280
+ - `project`: huggingface
281
+ - `trackio_space_id`: trackio
282
+ - `ddp_find_unused_parameters`: None
283
+ - `ddp_bucket_cap_mb`: None
284
+ - `ddp_broadcast_buffers`: False
285
+ - `dataloader_pin_memory`: True
286
+ - `dataloader_persistent_workers`: False
287
+ - `skip_memory_metrics`: True
288
+ - `use_legacy_prediction_loop`: False
289
+ - `push_to_hub`: False
290
+ - `resume_from_checkpoint`: None
291
+ - `hub_model_id`: None
292
+ - `hub_strategy`: every_save
293
+ - `hub_private_repo`: None
294
+ - `hub_always_push`: False
295
+ - `hub_revision`: None
296
+ - `gradient_checkpointing`: False
297
+ - `gradient_checkpointing_kwargs`: None
298
+ - `include_inputs_for_metrics`: False
299
+ - `include_for_metrics`: []
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
+ - `include_tokens_per_second`: False
314
+ - `include_num_input_tokens_seen`: no
315
+ - `neftune_noise_alpha`: None
316
+ - `optim_target_modules`: None
317
+ - `batch_eval_metrics`: False
318
+ - `eval_on_start`: False
319
+ - `use_liger_kernel`: False
320
+ - `liger_kernel_config`: None
321
+ - `eval_use_gather_object`: False
322
+ - `average_tokens_across_devices`: True
323
+ - `prompts`: None
324
+ - `batch_sampler`: batch_sampler
325
+ - `multi_dataset_batch_sampler`: proportional
326
+ - `router_mapping`: {}
327
+ - `learning_rate_mapping`: {}
328
+
329
+ </details>
330
+
331
+ ### Training Logs
332
+ | Epoch | Step | Training Loss | eval_average_precision |
333
+ |:------:|:-----:|:-------------:|:----------------------:|
334
+ | 0.1175 | 500 | 0.3493 | 0.7918 |
335
+ | 0.2351 | 1000 | 0.3064 | 0.8216 |
336
+ | 0.3526 | 1500 | 0.2832 | 0.8328 |
337
+ | 0.4701 | 2000 | 0.2873 | 0.8408 |
338
+ | 0.5877 | 2500 | 0.2866 | 0.8502 |
339
+ | 0.7052 | 3000 | 0.2797 | 0.8499 |
340
+ | 0.8228 | 3500 | 0.2737 | 0.8525 |
341
+ | 0.9403 | 4000 | 0.2724 | 0.8563 |
342
+ | 1.0 | 4254 | - | 0.8587 |
343
+ | 1.0578 | 4500 | 0.2718 | 0.8565 |
344
+ | 1.1754 | 5000 | 0.264 | 0.8561 |
345
+ | 1.2929 | 5500 | 0.2642 | 0.8584 |
346
+ | 1.4104 | 6000 | 0.2604 | 0.8582 |
347
+ | 1.5280 | 6500 | 0.2593 | 0.8595 |
348
+ | 1.6455 | 7000 | 0.2498 | 0.8628 |
349
+ | 1.7630 | 7500 | 0.2515 | 0.8649 |
350
+ | 1.8806 | 8000 | 0.2504 | 0.8650 |
351
+ | 1.9981 | 8500 | 0.2624 | 0.8643 |
352
+ | 2.0 | 8508 | - | 0.8632 |
353
+ | 2.1157 | 9000 | 0.2481 | 0.8662 |
354
+ | 2.2332 | 9500 | 0.2483 | 0.8661 |
355
+ | 2.3507 | 10000 | 0.2543 | 0.8647 |
356
+ | 2.4683 | 10500 | 0.2473 | 0.8669 |
357
+
358
+
359
+ ### Framework Versions
360
+ - Python: 3.12.10
361
+ - Sentence Transformers: 5.1.2
362
+ - Transformers: 4.57.1
363
+ - PyTorch: 2.9.1+cu128
364
+ - Accelerate: 1.11.0
365
+ - Datasets: 4.4.1
366
+ - Tokenizers: 0.22.1
367
+
368
+ ## Citation
369
+
370
+ ### BibTeX
371
+
372
+ #### Sentence Transformers
373
+ ```bibtex
374
+ @inproceedings{reimers-2019-sentence-bert,
375
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
376
+ author = "Reimers, Nils and Gurevych, Iryna",
377
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
378
+ month = "11",
379
+ year = "2019",
380
+ publisher = "Association for Computational Linguistics",
381
+ url = "https://arxiv.org/abs/1908.10084",
382
+ }
383
+ ```
384
+
385
+ <!--
386
+ ## Glossary
387
+
388
+ *Clearly define terms in order to be accessible across audiences.*
389
+ -->
390
+
391
+ <!--
392
+ ## Model Card Authors
393
+
394
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
395
+ -->
396
+
397
+ <!--
398
+ ## Model Card Contact
399
+
400
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
401
+ -->
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "XLMRobertaForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "classifier_dropout": null,
8
+ "dtype": "float32",
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 1024,
13
+ "id2label": {
14
+ "0": "LABEL_0"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 4096,
18
+ "label2id": {
19
+ "LABEL_0": 0
20
+ },
21
+ "layer_norm_eps": 1e-05,
22
+ "max_position_embeddings": 8194,
23
+ "model_type": "xlm-roberta",
24
+ "num_attention_heads": 16,
25
+ "num_hidden_layers": 24,
26
+ "output_past": true,
27
+ "pad_token_id": 1,
28
+ "position_embedding_type": "absolute",
29
+ "sentence_transformers": {
30
+ "activation_fn": "torch.nn.modules.activation.Sigmoid",
31
+ "version": "5.1.2"
32
+ },
33
+ "transformers_version": "4.57.1",
34
+ "type_vocab_size": 1,
35
+ "use_cache": true,
36
+ "vocab_size": 250002
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9cd0ed72e391e2cbffdcbf5872e2b0a4295238f4edc53f37bd708e52137ac0e
3
+ size 2271071852
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
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf44dabfaa82b1276a7af64a2ea2c76c047d560cf7bfb5711d6135382372c93d
3
+ size 17083153
tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "model_max_length": 512,
51
+ "pad_token": "<pad>",
52
+ "sep_token": "</s>",
53
+ "sp_model_kwargs": {},
54
+ "tokenizer_class": "XLMRobertaTokenizer",
55
+ "unk_token": "<unk>"
56
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff