Please add chat_template to tokenizer_config.json

#10
by chris1ance - opened

This might work:
{% for message in messages -%}{%- if message['role'] == 'user' -%}{{ '### Instruction:\n' + message['content'].strip() + '\n\n### Response:\n' }}{%- elif message['role'] == 'system' -%}{{ message['content'].strip() + '\n\n' }}{%- elif message['role'] == 'assistant' -%}{{ message['content'].strip() + '\n\n' }}{%- endif -%}{%- endfor %}

Sign up or log in to comment