first_rl_llama-8b / chat_template.jinja
michaelwaves's picture
Add files using upload-large-folder tool
792964d verified
raw
history blame contribute delete
344 Bytes
{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|start_header_id|>' + message['role'] + '<|end_header_id|>' + '
' + message['content'] + '<|eot_id|>' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
' }}{% endif %}