mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
15 lines
484 B
YAML
15 lines
484 B
YAML
instruction_template: |-
|
|
{%- for message in messages %}
|
|
{%- if message['role'] == 'system' -%}
|
|
{{- message['content'] -}}
|
|
{%- else -%}
|
|
{%- if message['role'] == 'user' -%}
|
|
{{-' [INST] ' + message['content'].rstrip() + ' [/INST] '-}}
|
|
{%- else -%}
|
|
{{-'' + message['content'] + '</s>' -}}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
{%- if add_generation_prompt -%}
|
|
{{-''-}}
|
|
{%- endif -%} |