lbasile commited on
Commit
8b23179
·
verified ·
1 Parent(s): a0f5fef

Upload processor

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>
2
+ ' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}
preprocessor_config.json CHANGED
@@ -3,9 +3,14 @@
3
  "height": 336,
4
  "width": 336
5
  },
 
 
 
 
6
  "do_center_crop": true,
7
  "do_convert_rgb": true,
8
  "do_normalize": true,
 
9
  "do_rescale": true,
10
  "do_resize": true,
11
  "image_mean": [
@@ -13,15 +18,18 @@
13
  0.4578275,
14
  0.40821073
15
  ],
16
- "image_processor_type": "CLIPImageProcessor",
17
  "image_std": [
18
  0.26862954,
19
  0.26130258,
20
  0.27577711
21
  ],
 
 
22
  "processor_class": "LlavaProcessor",
23
  "resample": 3,
24
  "rescale_factor": 0.00392156862745098,
 
25
  "size": {
26
  "shortest_edge": 336
27
  }
 
3
  "height": 336,
4
  "width": 336
5
  },
6
+ "data_format": "channels_first",
7
+ "default_to_square": false,
8
+ "device": null,
9
+ "disable_grouping": null,
10
  "do_center_crop": true,
11
  "do_convert_rgb": true,
12
  "do_normalize": true,
13
+ "do_pad": null,
14
  "do_rescale": true,
15
  "do_resize": true,
16
  "image_mean": [
 
18
  0.4578275,
19
  0.40821073
20
  ],
21
+ "image_processor_type": "CLIPImageProcessorFast",
22
  "image_std": [
23
  0.26862954,
24
  0.26130258,
25
  0.27577711
26
  ],
27
+ "input_data_format": null,
28
+ "pad_size": null,
29
  "processor_class": "LlavaProcessor",
30
  "resample": 3,
31
  "rescale_factor": 0.00392156862745098,
32
+ "return_tensors": null,
33
  "size": {
34
  "shortest_edge": 336
35
  }
processor_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_token": "<image>",
3
+ "num_additional_image_tokens": 1,
4
+ "patch_size": 14,
5
+ "processor_class": "LlavaProcessor",
6
+ "vision_feature_select_strategy": "default"
7
+ }
special_tokens_map.json CHANGED
@@ -13,6 +13,7 @@
13
  "rstrip": false,
14
  "single_word": false
15
  },
 
16
  "pad_token": {
17
  "content": "<pad>",
18
  "lstrip": false,
 
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
+ "image_token": "<image>",
17
  "pad_token": {
18
  "content": "<pad>",
19
  "lstrip": false,
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,6 +1,7 @@
1
  {
2
  "add_bos_token": true,
3
  "add_eos_token": false,
 
4
  "added_tokens_decoder": {
5
  "0": {
6
  "content": "<unk>",
@@ -46,14 +47,18 @@
46
  "bos_token": "<s>",
47
  "clean_up_tokenization_spaces": false,
48
  "eos_token": "</s>",
 
 
 
 
49
  "legacy": false,
50
- "model_max_length": 4096,
51
  "pad_token": "<pad>",
52
- "padding_side": "right",
53
  "processor_class": "LlavaProcessor",
54
  "sp_model_kwargs": {},
55
- "spaces_between_special_tokens": false,
56
  "tokenizer_class": "LlamaTokenizer",
 
57
  "unk_token": "<unk>",
58
  "use_default_system_prompt": false
59
  }
 
1
  {
2
  "add_bos_token": true,
3
  "add_eos_token": false,
4
+ "add_prefix_space": null,
5
  "added_tokens_decoder": {
6
  "0": {
7
  "content": "<unk>",
 
47
  "bos_token": "<s>",
48
  "clean_up_tokenization_spaces": false,
49
  "eos_token": "</s>",
50
+ "extra_special_tokens": {
51
+ "image_token": "<image>"
52
+ },
53
+ "image_token": "<image>",
54
  "legacy": false,
55
+ "model_max_length": 1000000000000000019884624838656,
56
  "pad_token": "<pad>",
57
+ "padding_side": "left",
58
  "processor_class": "LlavaProcessor",
59
  "sp_model_kwargs": {},
 
60
  "tokenizer_class": "LlamaTokenizer",
61
+ "trust_remote_code": false,
62
  "unk_token": "<unk>",
63
  "use_default_system_prompt": false
64
  }