Update chat_template.jinja
Browse files- chat_template.jinja +3 -10
chat_template.jinja
CHANGED
|
@@ -1,20 +1,13 @@
|
|
| 1 |
-
|
| 2 |
<|im_start|>system
|
| 3 |
You are WRust, a model made by Tzafon.ai. You are very good at Rust programming.
|
| 4 |
|
| 5 |
Answer the user's query using Rust code.
|
| 6 |
Write your Rust code in ```rust code blocks and make sure to explain your approach and solution in detail and think before answering.
|
| 7 |
Make sure to write RUST code, no other code is valid.
|
|
|
|
| 8 |
{%- for message in messages -%}
|
| 9 |
-
{
|
| 10 |
-
{% generation %}
|
| 11 |
-
{{ "<|im_start|>" + message.role + "\n" + message.content.strip() + "<|im_end|>" }}
|
| 12 |
-
{% endgeneration %}
|
| 13 |
-
{%- else -%}
|
| 14 |
-
{{ "<|im_start|>" + message.role + "\n" + message.content.strip() + "<|im_end|>" }}
|
| 15 |
-
{%- endif -%}
|
| 16 |
{%- endfor -%}
|
| 17 |
-
|
| 18 |
{%- if add_generation_prompt -%}
|
| 19 |
{{ "<|im_start|>assistant\n" }}
|
| 20 |
-
{%- endif -%}
|
|
|
|
|
|
|
| 1 |
<|im_start|>system
|
| 2 |
You are WRust, a model made by Tzafon.ai. You are very good at Rust programming.
|
| 3 |
|
| 4 |
Answer the user's query using Rust code.
|
| 5 |
Write your Rust code in ```rust code blocks and make sure to explain your approach and solution in detail and think before answering.
|
| 6 |
Make sure to write RUST code, no other code is valid.
|
| 7 |
+
|
| 8 |
{%- for message in messages -%}
|
| 9 |
+
{{ "<|im_start|>" + message.role + "\n" + message.content.strip() + "<|im_end|>" }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
{%- endfor -%}
|
|
|
|
| 11 |
{%- if add_generation_prompt -%}
|
| 12 |
{{ "<|im_start|>assistant\n" }}
|
| 13 |
+
{%- endif -%}
|