2023-12-12 15:23:14 -05:00
|
|
|
instruction_template: |-
|
|
|
|
{%- for message in messages %}
|
|
|
|
{%- if message['role'] == 'system' -%}
|
2023-12-15 09:58:29 -05:00
|
|
|
{{- message['content'] -}}
|
2023-12-12 15:23:14 -05:00
|
|
|
{%- else -%}
|
|
|
|
{%- if message['role'] == 'user' -%}
|
2024-01-09 19:12:54 -05:00
|
|
|
{{-' [INST] ' + message['content'].rstrip() + ' [/INST] '-}}
|
2023-12-12 15:23:14 -05:00
|
|
|
{%- else -%}
|
2024-01-09 19:12:54 -05:00
|
|
|
{{-'' + message['content'] + '</s>' -}}
|
2023-12-12 15:23:14 -05:00
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- if add_generation_prompt -%}
|
|
|
|
{{-''-}}
|
2024-01-09 19:12:54 -05:00
|
|
|
{%- endif -%}
|