初始化项目,由ModelHub XC社区提供模型

Model: llava-hf/llava-onevision-qwen2-0.5b-ov-hf
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-10 00:08:14 +08:00
commit db7797d0e4
42 changed files with 455424 additions and 0 deletions

3
chat_template.json Normal file
View File

@@ -0,0 +1,3 @@
{
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + ' '}}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>' }}{% endfor %}{# Render all video then #}{% for content in message['content'] | selectattr('type', 'equalto', 'video') %}{{ '<video>' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ '\n' + content['text'] }}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ '\n' + content['text'] }}{% endgeneration %}{% endfor %}{% endif %}{{'<|im_end|>'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
}