hf-transformers-bot commited on
Commit
f4e910b
Β·
verified Β·
1 Parent(s): bae9309

Add tiny processor fixture for testing

Browse files
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Idefics2ForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 32001,
6
+ "model_type": "idefics2",
7
+ "perceiver_config": {
8
+ "model_type": "idefics2"
9
+ },
10
+ "text_config": {
11
+ "max_position_embeddings": 32768,
12
+ "model_type": "mistral",
13
+ "pad_token_id": 0,
14
+ "rms_norm_eps": 1e-05,
15
+ "vocab_size": 32003
16
+ },
17
+ "tie_word_embeddings": false,
18
+ "torch_dtype": "float32",
19
+ "transformers_version": "4.39.0.dev0",
20
+ "use_cache": true,
21
+ "vision_config": {
22
+ "hidden_size": 1152,
23
+ "image_size": 980,
24
+ "intermediate_size": 4304,
25
+ "model_type": "idefics2",
26
+ "num_attention_heads": 16,
27
+ "num_hidden_layers": 27,
28
+ "patch_size": 14
29
+ },
30
+ "vocab_size": 501
31
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [[32000], [32001]],
4
+ "bos_token_id": 1,
5
+ "eos_token_id": [2, 32002],
6
+ "pad_token_id": 0,
7
+ "transformers_version": "4.39.0.dev0"
8
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_image_splitting": true,
4
+ "do_normalize": true,
5
+ "do_pad": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "Idefics2ImageProcessor",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Idefics2Processor",
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 980,
24
+ "shortest_edge": 378
25
+ }
26
+ }
processor_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{{message['role'].capitalize()}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}",
3
+ "image_seq_len": 64,
4
+ "processor_class": "Idefics2Processor"
5
+ }
tokenizer.json ADDED
@@ -0,0 +1,723 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "<unk>",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 1,
17
+ "content": "<s>",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 2,
26
+ "content": "</s>",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 501,
35
+ "content": "<fake_token_around_image>",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ {
43
+ "id": 502,
44
+ "content": "<image>",
45
+ "single_word": false,
46
+ "lstrip": false,
47
+ "rstrip": false,
48
+ "normalized": false,
49
+ "special": true
50
+ },
51
+ {
52
+ "id": 503,
53
+ "content": "<end_of_utterance>",
54
+ "single_word": false,
55
+ "lstrip": false,
56
+ "rstrip": false,
57
+ "normalized": false,
58
+ "special": true
59
+ }
60
+ ],
61
+ "normalizer": {
62
+ "type": "Sequence",
63
+ "normalizers": [
64
+ {
65
+ "type": "Prepend",
66
+ "prepend": "▁"
67
+ },
68
+ {
69
+ "type": "Replace",
70
+ "pattern": {
71
+ "String": " "
72
+ },
73
+ "content": "▁"
74
+ }
75
+ ]
76
+ },
77
+ "pre_tokenizer": null,
78
+ "post_processor": {
79
+ "type": "TemplateProcessing",
80
+ "single": [
81
+ {
82
+ "SpecialToken": {
83
+ "id": "<s>",
84
+ "type_id": 0
85
+ }
86
+ },
87
+ {
88
+ "Sequence": {
89
+ "id": "A",
90
+ "type_id": 0
91
+ }
92
+ }
93
+ ],
94
+ "pair": [
95
+ {
96
+ "SpecialToken": {
97
+ "id": "<s>",
98
+ "type_id": 0
99
+ }
100
+ },
101
+ {
102
+ "Sequence": {
103
+ "id": "A",
104
+ "type_id": 0
105
+ }
106
+ },
107
+ {
108
+ "SpecialToken": {
109
+ "id": "<s>",
110
+ "type_id": 1
111
+ }
112
+ },
113
+ {
114
+ "Sequence": {
115
+ "id": "B",
116
+ "type_id": 1
117
+ }
118
+ }
119
+ ],
120
+ "special_tokens": {
121
+ "<s>": {
122
+ "id": "<s>",
123
+ "ids": [
124
+ 1
125
+ ],
126
+ "tokens": [
127
+ "<s>"
128
+ ]
129
+ }
130
+ }
131
+ },
132
+ "decoder": {
133
+ "type": "Sequence",
134
+ "decoders": [
135
+ {
136
+ "type": "Replace",
137
+ "pattern": {
138
+ "String": "▁"
139
+ },
140
+ "content": " "
141
+ },
142
+ {
143
+ "type": "ByteFallback"
144
+ },
145
+ {
146
+ "type": "Fuse"
147
+ },
148
+ {
149
+ "type": "Strip",
150
+ "content": " ",
151
+ "start": 1,
152
+ "stop": 0
153
+ }
154
+ ]
155
+ },
156
+ "model": {
157
+ "type": "BPE",
158
+ "dropout": null,
159
+ "unk_token": "<unk>",
160
+ "continuing_subword_prefix": null,
161
+ "end_of_word_suffix": null,
162
+ "fuse_unk": true,
163
+ "byte_fallback": true,
164
+ "vocab": {
165
+ "<unk>": 0,
166
+ "<s>": 1,
167
+ "</s>": 2,
168
+ "<0x00>": 3,
169
+ "<0x01>": 4,
170
+ "<0x02>": 5,
171
+ "<0x03>": 6,
172
+ "<0x04>": 7,
173
+ "<0x05>": 8,
174
+ "<0x06>": 9,
175
+ "<0x07>": 10,
176
+ "<0x08>": 11,
177
+ "<0x09>": 12,
178
+ "<0x0A>": 13,
179
+ "<0x0B>": 14,
180
+ "<0x0C>": 15,
181
+ "<0x0D>": 16,
182
+ "<0x0E>": 17,
183
+ "<0x0F>": 18,
184
+ "<0x10>": 19,
185
+ "<0x11>": 20,
186
+ "<0x12>": 21,
187
+ "<0x13>": 22,
188
+ "<0x14>": 23,
189
+ "<0x15>": 24,
190
+ "<0x16>": 25,
191
+ "<0x17>": 26,
192
+ "<0x18>": 27,
193
+ "<0x19>": 28,
194
+ "<0x1A>": 29,
195
+ "<0x1B>": 30,
196
+ "<0x1C>": 31,
197
+ "<0x1D>": 32,
198
+ "<0x1E>": 33,
199
+ "<0x1F>": 34,
200
+ "<0x20>": 35,
201
+ "<0x21>": 36,
202
+ "<0x22>": 37,
203
+ "<0x23>": 38,
204
+ "<0x24>": 39,
205
+ "<0x25>": 40,
206
+ "<0x26>": 41,
207
+ "<0x27>": 42,
208
+ "<0x28>": 43,
209
+ "<0x29>": 44,
210
+ "<0x2A>": 45,
211
+ "<0x2B>": 46,
212
+ "<0x2C>": 47,
213
+ "<0x2D>": 48,
214
+ "<0x2E>": 49,
215
+ "<0x2F>": 50,
216
+ "<0x30>": 51,
217
+ "<0x31>": 52,
218
+ "<0x32>": 53,
219
+ "<0x33>": 54,
220
+ "<0x34>": 55,
221
+ "<0x35>": 56,
222
+ "<0x36>": 57,
223
+ "<0x37>": 58,
224
+ "<0x38>": 59,
225
+ "<0x39>": 60,
226
+ "<0x3A>": 61,
227
+ "<0x3B>": 62,
228
+ "<0x3C>": 63,
229
+ "<0x3D>": 64,
230
+ "<0x3E>": 65,
231
+ "<0x3F>": 66,
232
+ "<0x40>": 67,
233
+ "<0x41>": 68,
234
+ "<0x42>": 69,
235
+ "<0x43>": 70,
236
+ "<0x44>": 71,
237
+ "<0x45>": 72,
238
+ "<0x46>": 73,
239
+ "<0x47>": 74,
240
+ "<0x48>": 75,
241
+ "<0x49>": 76,
242
+ "<0x4A>": 77,
243
+ "<0x4B>": 78,
244
+ "<0x4C>": 79,
245
+ "<0x4D>": 80,
246
+ "<0x4E>": 81,
247
+ "<0x4F>": 82,
248
+ "<0x50>": 83,
249
+ "<0x51>": 84,
250
+ "<0x52>": 85,
251
+ "<0x53>": 86,
252
+ "<0x54>": 87,
253
+ "<0x55>": 88,
254
+ "<0x56>": 89,
255
+ "<0x57>": 90,
256
+ "<0x58>": 91,
257
+ "<0x59>": 92,
258
+ "<0x5A>": 93,
259
+ "<0x5B>": 94,
260
+ "<0x5C>": 95,
261
+ "<0x5D>": 96,
262
+ "<0x5E>": 97,
263
+ "<0x5F>": 98,
264
+ "<0x60>": 99,
265
+ "<0x61>": 100,
266
+ "<0x62>": 101,
267
+ "<0x63>": 102,
268
+ "<0x64>": 103,
269
+ "<0x65>": 104,
270
+ "<0x66>": 105,
271
+ "<0x67>": 106,
272
+ "<0x68>": 107,
273
+ "<0x69>": 108,
274
+ "<0x6A>": 109,
275
+ "<0x6B>": 110,
276
+ "<0x6C>": 111,
277
+ "<0x6D>": 112,
278
+ "<0x6E>": 113,
279
+ "<0x6F>": 114,
280
+ "<0x70>": 115,
281
+ "<0x71>": 116,
282
+ "<0x72>": 117,
283
+ "<0x73>": 118,
284
+ "<0x74>": 119,
285
+ "<0x75>": 120,
286
+ "<0x76>": 121,
287
+ "<0x77>": 122,
288
+ "<0x78>": 123,
289
+ "<0x79>": 124,
290
+ "<0x7A>": 125,
291
+ "<0x7B>": 126,
292
+ "<0x7C>": 127,
293
+ "<0x7D>": 128,
294
+ "<0x7E>": 129,
295
+ "<0x7F>": 130,
296
+ "<0x80>": 131,
297
+ "<0x81>": 132,
298
+ "<0x82>": 133,
299
+ "<0x83>": 134,
300
+ "<0x84>": 135,
301
+ "<0x85>": 136,
302
+ "<0x86>": 137,
303
+ "<0x87>": 138,
304
+ "<0x88>": 139,
305
+ "<0x89>": 140,
306
+ "<0x8A>": 141,
307
+ "<0x8B>": 142,
308
+ "<0x8C>": 143,
309
+ "<0x8D>": 144,
310
+ "<0x8E>": 145,
311
+ "<0x8F>": 146,
312
+ "<0x90>": 147,
313
+ "<0x91>": 148,
314
+ "<0x92>": 149,
315
+ "<0x93>": 150,
316
+ "<0x94>": 151,
317
+ "<0x95>": 152,
318
+ "<0x96>": 153,
319
+ "<0x97>": 154,
320
+ "<0x98>": 155,
321
+ "<0x99>": 156,
322
+ "<0x9A>": 157,
323
+ "<0x9B>": 158,
324
+ "<0x9C>": 159,
325
+ "<0x9D>": 160,
326
+ "<0x9E>": 161,
327
+ "<0x9F>": 162,
328
+ "<0xA0>": 163,
329
+ "<0xA1>": 164,
330
+ "<0xA2>": 165,
331
+ "<0xA3>": 166,
332
+ "<0xA4>": 167,
333
+ "<0xA5>": 168,
334
+ "<0xA6>": 169,
335
+ "<0xA7>": 170,
336
+ "<0xA8>": 171,
337
+ "<0xA9>": 172,
338
+ "<0xAA>": 173,
339
+ "<0xAB>": 174,
340
+ "<0xAC>": 175,
341
+ "<0xAD>": 176,
342
+ "<0xAE>": 177,
343
+ "<0xAF>": 178,
344
+ "<0xB0>": 179,
345
+ "<0xB1>": 180,
346
+ "<0xB2>": 181,
347
+ "<0xB3>": 182,
348
+ "<0xB4>": 183,
349
+ "<0xB5>": 184,
350
+ "<0xB6>": 185,
351
+ "<0xB7>": 186,
352
+ "<0xB8>": 187,
353
+ "<0xB9>": 188,
354
+ "<0xBA>": 189,
355
+ "<0xBB>": 190,
356
+ "<0xBC>": 191,
357
+ "<0xBD>": 192,
358
+ "<0xBE>": 193,
359
+ "<0xBF>": 194,
360
+ "<0xC0>": 195,
361
+ "<0xC1>": 196,
362
+ "<0xC2>": 197,
363
+ "<0xC3>": 198,
364
+ "<0xC4>": 199,
365
+ "<0xC5>": 200,
366
+ "<0xC6>": 201,
367
+ "<0xC7>": 202,
368
+ "<0xC8>": 203,
369
+ "<0xC9>": 204,
370
+ "<0xCA>": 205,
371
+ "<0xCB>": 206,
372
+ "<0xCC>": 207,
373
+ "<0xCD>": 208,
374
+ "<0xCE>": 209,
375
+ "<0xCF>": 210,
376
+ "<0xD0>": 211,
377
+ "<0xD1>": 212,
378
+ "<0xD2>": 213,
379
+ "<0xD3>": 214,
380
+ "<0xD4>": 215,
381
+ "<0xD5>": 216,
382
+ "<0xD6>": 217,
383
+ "<0xD7>": 218,
384
+ "<0xD8>": 219,
385
+ "<0xD9>": 220,
386
+ "<0xDA>": 221,
387
+ "<0xDB>": 222,
388
+ "<0xDC>": 223,
389
+ "<0xDD>": 224,
390
+ "<0xDE>": 225,
391
+ "<0xDF>": 226,
392
+ "<0xE0>": 227,
393
+ "<0xE1>": 228,
394
+ "<0xE2>": 229,
395
+ "<0xE3>": 230,
396
+ "<0xE4>": 231,
397
+ "<0xE5>": 232,
398
+ "<0xE6>": 233,
399
+ "<0xE7>": 234,
400
+ "<0xE8>": 235,
401
+ "<0xE9>": 236,
402
+ "<0xEA>": 237,
403
+ "<0xEB>": 238,
404
+ "<0xEC>": 239,
405
+ "<0xED>": 240,
406
+ "<0xEE>": 241,
407
+ "<0xEF>": 242,
408
+ "<0xF0>": 243,
409
+ "<0xF1>": 244,
410
+ "<0xF2>": 245,
411
+ "<0xF3>": 246,
412
+ "<0xF4>": 247,
413
+ "<0xF5>": 248,
414
+ "<0xF6>": 249,
415
+ "<0xF7>": 250,
416
+ "<0xF8>": 251,
417
+ "<0xF9>": 252,
418
+ "<0xFA>": 253,
419
+ "<0xFB>": 254,
420
+ "<0xFC>": 255,
421
+ "<0xFD>": 256,
422
+ "<0xFE>": 257,
423
+ "<0xFF>": 258,
424
+ "▁▁": 259,
425
+ "▁▁▁▁": 260,
426
+ "▁t": 261,
427
+ "in": 262,
428
+ "er": 263,
429
+ "▁a": 264,
430
+ "he": 265,
431
+ "on": 266,
432
+ "re": 267,
433
+ "▁s": 268,
434
+ "en": 269,
435
+ "at": 270,
436
+ "or": 271,
437
+ "▁the": 272,
438
+ "▁▁▁▁▁▁▁▁": 273,
439
+ "es": 274,
440
+ "▁w": 275,
441
+ "an": 276,
442
+ "▁c": 277,
443
+ "is": 278,
444
+ "it": 279,
445
+ "ou": 280,
446
+ "▁d": 281,
447
+ "al": 282,
448
+ "ar": 283,
449
+ "▁p": 284,
450
+ "▁f": 285,
451
+ "ed": 286,
452
+ "▁b": 287,
453
+ "ing": 288,
454
+ "▁o": 289,
455
+ "▁m": 290,
456
+ "le": 291,
457
+ "nd": 292,
458
+ "as": 293,
459
+ "ic": 294,
460
+ "▁h": 295,
461
+ "ion": 296,
462
+ "▁in": 297,
463
+ "▁to": 298,
464
+ "et": 299,
465
+ "om": 300,
466
+ "el": 301,
467
+ "▁of": 302,
468
+ "st": 303,
469
+ "▁and": 304,
470
+ "▁l": 305,
471
+ "▁th": 306,
472
+ "▁n": 307,
473
+ "ent": 308,
474
+ "il": 309,
475
+ "ct": 310,
476
+ "ro": 311,
477
+ "▁re": 312,
478
+ "id": 313,
479
+ "am": 314,
480
+ "▁I": 315,
481
+ "ad": 316,
482
+ "▁e": 317,
483
+ "▁S": 318,
484
+ "▁g": 319,
485
+ "▁T": 320,
486
+ "im": 321,
487
+ "ot": 322,
488
+ "ac": 323,
489
+ "ur": 324,
490
+ "▁(": 325,
491
+ "ig": 326,
492
+ "▁=": 327,
493
+ "ol": 328,
494
+ "ut": 329,
495
+ "▁A": 330,
496
+ "se": 331,
497
+ "▁u": 332,
498
+ "ve": 333,
499
+ "▁C": 334,
500
+ "if": 335,
501
+ "ow": 336,
502
+ "▁y": 337,
503
+ "ch": 338,
504
+ "ay": 339,
505
+ "▁de": 340,
506
+ "▁st": 341,
507
+ "▁|": 342,
508
+ "ver": 343,
509
+ ");": 344,
510
+ "▁\"": 345,
511
+ "ly": 346,
512
+ "▁be": 347,
513
+ "**": 348,
514
+ "▁is": 349,
515
+ "od": 350,
516
+ "▁M": 351,
517
+ "ation": 352,
518
+ "ul": 353,
519
+ "▁for": 354,
520
+ "▁▁▁▁▁": 355,
521
+ "▁on": 356,
522
+ "ag": 357,
523
+ "ce": 358,
524
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁": 359,
525
+ "ter": 360,
526
+ "ir": 361,
527
+ "th": 362,
528
+ "▁v": 363,
529
+ "qu": 364,
530
+ "▁B": 365,
531
+ "em": 366,
532
+ "▁P": 367,
533
+ "▁you": 368,
534
+ "▁that": 369,
535
+ "un": 370,
536
+ "▁{": 371,
537
+ "ith": 372,
538
+ "ri": 373,
539
+ "est": 374,
540
+ "ab": 375,
541
+ "--": 376,
542
+ "ap": 377,
543
+ "▁it": 378,
544
+ "▁con": 379,
545
+ "ate": 380,
546
+ "us": 381,
547
+ "▁H": 382,
548
+ "um": 383,
549
+ "▁D": 384,
550
+ "os": 385,
551
+ "pe": 386,
552
+ "▁-": 387,
553
+ "▁wh": 388,
554
+ "▁al": 389,
555
+ "▁as": 390,
556
+ "and": 391,
557
+ "ist": 392,
558
+ "▁L": 393,
559
+ "▁W": 394,
560
+ "▁with": 395,
561
+ "▁an": 396,
562
+ "ere": 397,
563
+ "▁*": 398,
564
+ "▁R": 399,
565
+ "▁he": 400,
566
+ "▁F": 401,
567
+ "oc": 402,
568
+ "▁was": 403,
569
+ "ers": 404,
570
+ "ke": 405,
571
+ "out": 406,
572
+ "ht": 407,
573
+ "▁r": 408,
574
+ "ess": 409,
575
+ "op": 410,
576
+ "res": 411,
577
+ "ie": 412,
578
+ "▁E": 413,
579
+ "▁\\": 414,
580
+ "▁The": 415,
581
+ "end": 416,
582
+ "ld": 417,
583
+ "▁N": 418,
584
+ "ort": 419,
585
+ "▁G": 420,
586
+ "//": 421,
587
+ "▁#": 422,
588
+ "our": 423,
589
+ "te": 424,
590
+ "ill": 425,
591
+ "ain": 426,
592
+ "▁se": 427,
593
+ "▁▁▁▁▁▁": 428,
594
+ "▁$": 429,
595
+ "▁pro": 430,
596
+ "ore": 431,
597
+ "▁com": 432,
598
+ "ame": 433,
599
+ "tr": 434,
600
+ "▁ne": 435,
601
+ "rom": 436,
602
+ "ub": 437,
603
+ "▁at": 438,
604
+ "▁ex": 439,
605
+ "ant": 440,
606
+ "ue": 441,
607
+ "▁or": 442,
608
+ "▁}": 443,
609
+ "art": 444,
610
+ "ction": 445,
611
+ "▁k": 446,
612
+ "pt": 447,
613
+ "nt": 448,
614
+ "iv": 449,
615
+ "de": 450,
616
+ "▁O": 451,
617
+ "pl": 452,
618
+ "urn": 453,
619
+ "ight": 454,
620
+ "all": 455,
621
+ "▁this": 456,
622
+ "ser": 457,
623
+ "ave": 458,
624
+ "▁not": 459,
625
+ "▁are": 460,
626
+ "▁j": 461,
627
+ "▁le": 462,
628
+ "iz": 463,
629
+ "▁'": 464,
630
+ "age": 465,
631
+ "ment": 466,
632
+ "▁tr": 467,
633
+ "ack": 468,
634
+ "ust": 469,
635
+ "()": 470,
636
+ "->": 471,
637
+ "ity": 472,
638
+ "ine": 473,
639
+ "ould": 474,
640
+ "▁J": 475,
641
+ "og": 476,
642
+ "▁from": 477,
643
+ "▁we": 478,
644
+ "ell": 479,
645
+ "▁sh": 480,
646
+ "▁en": 481,
647
+ "ure": 482,
648
+ "port": 483,
649
+ "▁ch": 484,
650
+ "ne": 485,
651
+ "▁by": 486,
652
+ "per": 487,
653
+ "ard": 488,
654
+ "ass": 489,
655
+ "ge": 490,
656
+ "ak": 491,
657
+ "are": 492,
658
+ "ok": 493,
659
+ "av": 494,
660
+ "ive": 495,
661
+ "ff": 496,
662
+ "ies": 497,
663
+ "ath": 498,
664
+ "turn": 499,
665
+ "▁": 500
666
+ },
667
+ "merges": [
668
+ "▁t he",
669
+ "▁ in",
670
+ "▁a nd",
671
+ "▁ and",
672
+ "▁ th",
673
+ "▁ re",
674
+ "▁ de",
675
+ "▁ st",
676
+ "▁ is",
677
+ "at ion",
678
+ "▁f or",
679
+ "▁ on",
680
+ "▁y ou",
681
+ "▁th at",
682
+ "▁ it",
683
+ "▁c on",
684
+ "▁ al",
685
+ "▁ as",
686
+ "▁w ith",
687
+ "▁ an",
688
+ "▁ he",
689
+ "▁w as",
690
+ "▁T he",
691
+ "▁ se",
692
+ "▁p ro",
693
+ "▁c om",
694
+ "▁ ne",
695
+ "▁ at",
696
+ "▁ or",
697
+ "ct ion",
698
+ "ig ht",
699
+ "▁th is",
700
+ "▁n ot",
701
+ "▁a re",
702
+ "▁ are",
703
+ "▁ le",
704
+ "▁ tr",
705
+ "ou ld",
706
+ "▁f rom",
707
+ "▁ en",
708
+ "▁ ch",
709
+ "▁ ▁",
710
+ "▁▁ ▁▁",
711
+ "▁▁ ▁▁▁▁▁▁",
712
+ "▁▁▁▁ ▁▁▁▁",
713
+ "▁▁▁▁▁▁ ▁▁",
714
+ "▁▁▁▁ ▁",
715
+ "▁ ▁▁▁▁",
716
+ "▁▁▁▁▁▁▁▁ ▁▁▁▁▁▁▁▁",
717
+ "▁▁ ▁▁▁▁",
718
+ "▁▁▁▁ ▁▁",
719
+ "▁▁▁▁▁ ▁",
720
+ "▁ ▁▁▁▁▁"
721
+ ]
722
+ }
723
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32000": {
30
+ "content": "<fake_token_around_image>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<image>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "32002": {
46
+ "content": "<end_of_utterance>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ }
53
+ },
54
+ "additional_special_tokens": [
55
+ "<fake_token_around_image>",
56
+ "<image>",
57
+ "<end_of_utterance>"
58
+ ],
59
+ "bos_token": "<s>",
60
+ "clean_up_tokenization_spaces": false,
61
+ "eos_token": "</s>",
62
+ "legacy": false,
63
+ "model_max_length": 1000000000000000019884624838656,
64
+ "pad_token": "<unk>",
65
+ "processor_class": "Idefics2Processor",
66
+ "sp_model_kwargs": {},
67
+ "spaces_between_special_tokens": false,
68
+ "tokenizer_class": "LlamaTokenizer",
69
+ "unk_token": "<unk>",
70
+ "use_default_system_prompt": true
71
+ }