Download processor_config.json from Math-PUMA/Math-PUMA_Qwen2VL-7B: direct link, hf CLI and curl.
- Browser
- Download file 657 Bytes
-
https://huggingface.co/Math-PUMA/Math-PUMA_Qwen2VL-7B/resolve/main/processor_config.json
- Command line
-
hf download hf://Math-PUMA/Math-PUMA_Qwen2VL-7B/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/Math-PUMA/Math-PUMA_Qwen2VL-7B/resolve/main/processor_config.json
657 Bytes
| { | |
| "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n'}}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<|image|>\n' }}{% endfor %}{# Render all text next #}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + '<|im_end|>' + '\n'}}{% endfor %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", | |
| "processor_class": "Qwen2vlmProcessor" | |
| } | |