somehumanperson1
commited on
Commit
•
7d4d6fa
1
Parent(s):
ffbdf76
Update defaults/MODEL_PROMPT_TEMPLATE
Browse files
defaults/MODEL_PROMPT_TEMPLATE
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
|
|
1 |
+
{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}
|