fwizzer1 commited on
Commit
4bee00f
·
verified ·
1 Parent(s): 5e24538

Fix en/tokenizer_config.json chat_template without trailing <think>

Browse files
Files changed (1) hide show
  1. en/tokenizer_config.json +3 -2
en/tokenizer_config.json CHANGED
@@ -9016,5 +9016,6 @@
9016
  "normalized": false,
9017
  "special": true
9018
  }
9019
- }
9020
- }
 
 
9016
  "normalized": false,
9017
  "special": true
9018
  }
9019
+ },
9020
+ "chat_template": "{%- set default_system_message = 'You are Fwizzer-R1-3B, a helpful and reasoning language model. Always think step-by-step inside <think> and </think> tags before answering, then provide a clear, accurate, and concise response in the language of the user prompt.' %}\n{%- if messages[0]['role'] == 'system' %}\n {{- '[SYSTEM_PROMPT]' -}}\n {%- if messages[0]['content'] is string %}\n {{- messages[0]['content'] -}}\n {%- else %}\n {%- for block in messages[0]['content'] %}\n {%- if block['type'] == 'text' %}\n {{- block['text'] -}}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '[/SYSTEM_PROMPT]' -}}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {{- '[SYSTEM_PROMPT]' + default_system_message + '[/SYSTEM_PROMPT]' }}\n {%- set loop_messages = messages %}\n{%- endif %}\n{%- for message in loop_messages %}\n {%- if message['role'] == 'user' %}\n {%- if message['content'] is string %}\n {{- '[INST]' + message['content'] + '[/INST]' }}\n {%- else %}\n {{- '[INST]' }}\n {%- for block in message['content'] %}\n {%- if block['type'] == 'text' %}\n {{- block['text'] -}}\n {%- endif %}\n {%- endfor %}\n {{- '[/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {%- if message['content'] is string %}\n {{- message['content'] }}\n {%- else %}\n {%- for block in message['content'] %}\n {%- if block['type'] == 'text' %}\n {{- block['text'] -}}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- eos_token }}\n {%- endif %}\n{%- endfor %}"
9021
+ }