Update chat_template.jinja
Browse files- chat_template.jinja +6 -1
chat_template.jinja
CHANGED
@@ -1,6 +1,10 @@
|
|
|
|
1 |
{%- set thinking_prompt = 'You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside <think> </think> tags, and then provide your solution or response to the problem.' %}
|
2 |
{%- set standard_prompt = 'You are Hermes, created by Nous Research.' %}
|
3 |
-
{%- if
|
|
|
|
|
|
|
4 |
{%- if not keep_cots is defined %}{% set keep_cots = false %}{% endif %}
|
5 |
{%- if thinking %}{%- set system_prompt = thinking_prompt %}{%- else %}{%- set system_prompt = standard_prompt %}{%- endif %}
|
6 |
{%- if tools %}
|
@@ -74,3 +78,4 @@
|
|
74 |
{%- if add_generation_prompt %}
|
75 |
{{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
|
76 |
{%- endif %}
|
|
|
|
1 |
+
{#- Unsloth template fixes #}
|
2 |
{%- set thinking_prompt = 'You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside <think> </think> tags, and then provide your solution or response to the problem.' %}
|
3 |
{%- set standard_prompt = 'You are Hermes, created by Nous Research.' %}
|
4 |
+
{%- if enable_thinking is defined and enable_thinking is false %}{% set thinking = false %}
|
5 |
+
{%- elif enable_thinking is defined and enable_thinking is true %}{% set thinking = true %}
|
6 |
+
{%- elif not thinking is defined %}{% set thinking = false %}
|
7 |
+
{% endif %}
|
8 |
{%- if not keep_cots is defined %}{% set keep_cots = false %}{% endif %}
|
9 |
{%- if thinking %}{%- set system_prompt = thinking_prompt %}{%- else %}{%- set system_prompt = standard_prompt %}{%- endif %}
|
10 |
{%- if tools %}
|
|
|
78 |
{%- if add_generation_prompt %}
|
79 |
{{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
|
80 |
{%- endif %}
|
81 |
+
{#- Copyright 2025-present Unsloth. Apache 2.0 License. #}
|