seungahdev commited on
Commit
c526be0
·
verified ·
1 Parent(s): 0404851

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. chat_template.jinja +11 -9
  2. spec_model.safetensors +3 -0
  3. version.txt +1 -0
chat_template.jinja CHANGED
@@ -37,13 +37,15 @@
37
 
38
  {%- if message.content is string %}
39
  {%- set content = message.content %}
 
 
40
  {%- else %}
41
  {%- set content = '' %}
42
  {%- endif %}
43
 
44
  {%- set reasoning_content = '' %}
45
  {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
46
- {%- set reasoning_content = message.reasoning_content %}
47
  {%- endif %}
48
  {%- if message.role == "assistant" %}
49
  {%- if loop.index0 > ns.last_query_index %}
@@ -90,11 +92,11 @@
90
  {%- endif %}
91
  {%- endfor %}
92
  {%- if add_generation_prompt %}
93
- {%- if (force_reasoning is defined and force_reasoning) or (enable_thinking is defined and enable_thinking) %}
94
- {{- '<|im_start|>assistant/think\n' }}
95
- {%- elif (skip_reasoning is defined and skip_reasoning) or (enable_thinking is defined and enable_thinking is false) %}
96
- {{- '<|im_start|>assistant\n' }}
97
- {%- else %}
98
- {{- '<|im_start|>assistant' }}
99
- {%- endif %}
100
- {%- endif %}
 
37
 
38
  {%- if message.content is string %}
39
  {%- set content = message.content %}
40
+ {%- elif message.content is iterable %}
41
+ {%- set content = message.content | map(attribute='text') | join %}
42
  {%- else %}
43
  {%- set content = '' %}
44
  {%- endif %}
45
 
46
  {%- set reasoning_content = '' %}
47
  {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
48
+ {%- set reasoning_content = message.reasoning_content %}
49
  {%- endif %}
50
  {%- if message.role == "assistant" %}
51
  {%- if loop.index0 > ns.last_query_index %}
 
92
  {%- endif %}
93
  {%- endfor %}
94
  {%- if add_generation_prompt %}
95
+ {%- if (force_reasoning is defined and force_reasoning) or (enable_thinking is defined and enable_thinking) %}
96
+ {{- '<|im_start|>assistant/think\n' }}
97
+ {%- elif (skip_reasoning is defined and skip_reasoning) or (enable_thinking is defined and enable_thinking is false) %}
98
+ {{- '<|im_start|>assistant\n' }}
99
+ {%- else %}
100
+ {{- '<|im_start|>assistant' }}
101
+ {%- endif %}
102
+ {%- endif %}
spec_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73744872fb4fc26da957b7e90b33cfe0b614104f500c9cfc176006d5cc196144
3
+ size 1358954615
version.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 1.0.0