hope_2_bf16 / processor_config.json
debenoist's picture
Upload processor
3f45554 verified
raw
history blame contribute delete
483 Bytes
{
"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 %}",
"image_seq_len": 64,
"processor_class": "Idefics2Processor"
}