Spaces:
Runtime error
Runtime error
Download instruction-templates/Koala.yaml from xsigus24/text-generation-webui: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/xsigus24/text-generation-webui/resolve/main/instruction-templates/Koala.yaml
- Command line
-
hf download hf://spaces/xsigus24/text-generation-webui/instruction-templates/Koala.yaml
-
curl -L -o Koala.yaml https://huggingface.co/spaces/xsigus24/text-generation-webui/resolve/main/instruction-templates/Koala.yaml
772 Bytes
| instruction_template: |- | |
| {%- set found_item = false -%} | |
| {%- for message in messages -%} | |
| {%- if message['role'] == 'system' -%} | |
| {%- set found_item = true -%} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {%- if not found_item -%} | |
| {{- '' + 'BEGINNING OF CONVERSATION:' + ' ' -}} | |
| {%- endif %} | |
| {%- for message in messages %} | |
| {%- if message['role'] == 'system' -%} | |
| {{- '' + message['content'] + ' ' -}} | |
| {%- else -%} | |
| {%- if message['role'] == 'user' -%} | |
| {{-'USER: ' + message['content'] + ' '-}} | |
| {%- else -%} | |
| {{-'GPT:' + message['content'] + '</s>' -}} | |
| {%- endif -%} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {%- if add_generation_prompt -%} | |
| {{-'GPT:'-}} | |
| {%- endif -%} | |