TinfoilHat69/PerceptionDLM-bucket / chat_template.json
TinfoilHat69's picture
download
raw
819 Bytes
{
"chat_template": "{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|start_header_id|>system<|end_header_id|>\nYou are a helpful assistant.<|eot_id|>\n{% endif %}<|start_header_id|>{{ message['role'] }}<|end_header_id|>\n{% if message['role'] == 'assistant' %}{% generation %}{{ message['content'][0]['text'] }}<|eot_id|>{% endgeneration %}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}<img><IMG_CONTEXT></img>{% elif content['type'] == 'video' or 'video' in content %}<video><VIDEO_CONTEXT></video>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|eot_id|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|start_header_id|>assistant<|end_header_id|>\n{% endif %}"
}

Xet Storage Details

Size:
819 Bytes
·
Xet hash:
7d73b1492c5719b41ff2a75733e980d63276933457e96aa71a37750fa072bb15

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.