Saad381 commited on
Commit
221641d
·
verified ·
1 Parent(s): ca2cac5

Delete chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +0 -26
chat_template.jinja DELETED
@@ -1,26 +0,0 @@
1
- {% if not add_generation_prompt is defined %}
2
- {% set add_generation_prompt = false %}
3
- {% endif %}
4
- {%- set ns = namespace(found=false) -%}
5
- {%- for message in messages -%}
6
- {%- if message['role'] == 'system' -%}
7
- {%- set ns.found = true -%}
8
- {%- endif -%}
9
- {%- endfor -%}
10
- {{bos_token}}{%- if not ns.found -%}
11
- {{'You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer\n'}}
12
- {%- endif %}
13
- {%- for message in messages %}
14
- {%- if message['role'] == 'system' %}
15
- {{ message['content'] }}
16
- {%- else %}
17
- {%- if message['role'] == 'user' %}
18
- {{'### Instruction:\n' + message['content'] + '\n'}}
19
- {%- else %}
20
- {{'### Response:\n' + message['content'] + '\n<|EOT|>\n'}}
21
- {%- endif %}
22
- {%- endif %}
23
- {%- endfor %}
24
- {% if add_generation_prompt %}
25
- {{'### Response:'}}
26
- {% endif %}