instruction_template: |- | |
{%- for message in messages %} | |
{%- if message['role'] == 'system' -%} | |
{{- message['content'] -}} | |
{%- else -%} | |
{%- if message['role'] == 'user' -%} | |
{{-'[INST] ' + message['content'] + ' [/INST]'-}} | |
{%- else -%} | |
{{-'' + message['content'] + '</s> ' -}} | |
{%- endif -%} | |
{%- endif -%} | |
{%- endfor -%} | |
{%- if add_generation_prompt -%} | |
{{-''-}} | |
{%- endif -%} | |