Files changed (3) hide show
  1. chat_template.jinja +8 -4
  2. config.json +1 -1
  3. model.q4nx +2 -2
chat_template.jinja CHANGED
@@ -97,7 +97,11 @@
97
  {%- endif %}
98
  {%- endif %}
99
  {%- set reasoning_content = reasoning_content|trim %}
100
- {{- '<|im_start|>' + message.role + '\n' + content }}
 
 
 
 
101
  {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
102
  {%- for tool_call in message.tool_calls %}
103
  {%- if tool_call.function is defined %}
@@ -142,9 +146,9 @@
142
  {%- endfor %}
143
  {%- if add_generation_prompt %}
144
  {{- '<|im_start|>assistant\n' }}
145
- {%- if enable_thinking is defined and enable_thinking is false %}
146
- {{- '<think>\n\n</think>\n\n' }}
147
- {%- else %}
148
  {{- '<think>\n' }}
 
 
149
  {%- endif %}
150
  {%- endif %}
 
97
  {%- endif %}
98
  {%- endif %}
99
  {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
  {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
  {%- for tool_call in message.tool_calls %}
107
  {%- if tool_call.function is defined %}
 
146
  {%- endfor %}
147
  {%- if add_generation_prompt %}
148
  {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is true %}
 
 
150
  {{- '<think>\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n\n</think>\n\n' }}
153
  {%- endif %}
154
  {%- endif %}
config.json CHANGED
@@ -72,7 +72,7 @@
72
  },
73
  "addr_qk": 53248,
74
  "addr_kv": 53536,
75
- "flm_version": "0.9.45",
76
  "vision_model_weight": "vision_weight.q4nx",
77
  "vision_config": {
78
  "vision_mm_engine_xclbin_name": "vision_mm.xclbin",
 
72
  },
73
  "addr_qk": 53248,
74
  "addr_kv": 53536,
75
+ "flm_version": "0.9.38",
76
  "vision_model_weight": "vision_weight.q4nx",
77
  "vision_config": {
78
  "vision_mm_engine_xclbin_name": "vision_mm.xclbin",
model.q4nx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bb4d42950cf8932380c95babaa5844bb7fe2a19b759ea2fa807a55afc4d40a36
3
- size 1109359296
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ac49ab050beac553982960ea63ede199ec807099cd7083c3fc97480dc701788
3
+ size 1164335888