QomSSLab commited on
Commit
8aa5904
·
verified ·
1 Parent(s): 9c20a35

Add training logs and README

Browse files
Files changed (1) hide show
  1. checkpoint-246/chat_template.jinja +38 -0
checkpoint-246/chat_template.jinja ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ {%- if add_special_tokens -%}
3
+ {{ bos_token }}
4
+ {%- endif -%}
5
+
6
+ {%- set first_user_prefix = "" -%}
7
+ {%- set loop_messages = messages -%}
8
+ {%- for message in loop_messages -%}
9
+ {%- if (message['role'] == 'tool_call') -%}
10
+ {%- set role = "model" -%}
11
+ {%- elif (message['role'] == 'assistant') -%}
12
+ {%- set role = "model" -%}
13
+ {%- else -%}
14
+ {%- set role = message['role'] -%}
15
+ {%- endif -%}
16
+ {{ '<start_of_turn>' + role + '
17
+ ' + (first_user_prefix if loop.first else "") }}
18
+ {%- if (message.reasoning_content) -%}
19
+ {{- '<think>'+message.reasoning_content+'</think>' }}
20
+ {%- endif -%}
21
+ {%- if (message['role'] == 'tool_call') -%}
22
+ {{- '<tool_call>
23
+ {"name": "' }}
24
+ {{- message.name }}
25
+ {{- '", "arguments": ' }}
26
+ {{- message.content | replace("'", '"') | trim }}
27
+ {{- '}
28
+ </tool_call>' }}
29
+ {%- elif message['content'] is string -%}
30
+ {{ message['content'] | trim }}
31
+ {%- endif -%}
32
+ {{ '<end_of_turn>
33
+ ' }}
34
+ {%- endfor -%}
35
+ {%- if add_generation_prompt -%}
36
+ {{'<start_of_turn>model
37
+ '}}
38
+ {%- endif -%}