danielhanchen commited on
Commit
af62130
1 Parent(s): bde7cbc

Upload processor

Browse files
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{% if loop.index0 == 0 %}{{ bos_token }}{% endif %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n' }}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<|image|>' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{ '<|eot_id|>' }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}"
3
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.48145466,
9
+ 0.4578275,
10
+ 0.40821073
11
+ ],
12
+ "image_processor_type": "MllamaImageProcessor",
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "max_image_tiles": 4,
19
+ "processor_class": "MllamaProcessor",
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 560,
24
+ "width": 560
25
+ }
26
+ }
tokenizer_config.json CHANGED
@@ -2067,6 +2067,6 @@
2067
  ],
2068
  "model_max_length": 131072,
2069
  "pad_token": "<|finetune_right_pad_id|>",
2070
- "padding_side": "left",
2071
  "tokenizer_class": "PreTrainedTokenizerFast"
2072
  }
 
2067
  ],
2068
  "model_max_length": 131072,
2069
  "pad_token": "<|finetune_right_pad_id|>",
2070
+ "processor_class": "MllamaProcessor",
2071
  "tokenizer_class": "PreTrainedTokenizerFast"
2072
  }