GPT4-dev-177M-1511-Instruct / chat_template.jinja
k050506koch's picture
upload weights
9d9edb6 verified
Raw
History Blame Contribute Delete
394 Bytes
{% for m in messages %}{% if m['role'] == 'assistant' %}<|start|>assistant<|channel|>final<|message|>{{ m['content'] }}<|end|>{% elif m['role'] == 'developer' %}<|start|>developer<|message|>{{ m['content'] }}<|end|>{% else %}<|start|>{{ m['role'] }}<|message|>{{ m['content'] }}<|end|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|start|>assistant<|channel|>final<|message|>{% endif %}