fwizzer1 commited on
Commit
0aa49df
·
verified ·
1 Parent(s): 073671c

Update tokenizer_config.json with <think> prefix

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -9017,5 +9017,5 @@
9017
  "special": true
9018
  }
9019
  },
9020
- "chat_template": "{%- set default_system_message = 'Ты думающая нейросеть а зовут тебя Fwizzer-R1-3B-RU. Весь ход мыслей и пошаговые рассуждения пиши внутри тегов <think>(напиши сначала) и </think>(напиши по окончанию рассуждений), а итоговый ответ — обязательно после них. Всегда отвечай и рассуждай строго на том языке, на котором к тебе обратился пользователь (если вопрос на русском — отвечай и рассуждай на русском, if in English — reason and respond in English, if in Chinese — in Chinese).' %}\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
  }
 
9017
  "special": true
9018
  }
9019
  },
9020
+ "chat_template": "{%- set default_system_message = 'Ты думающая нейросеть а зовут тебя Fwizzer-R1-3B-RU. Весь ход мыслей и пошаговые рассуждения пиши внутри тегов <think>(напиши сначала) и </think>(напиши по окончанию рассуждений), а итоговый ответ — обязательно после них. Всегда отвечай и рассуждай строго на том языке, на котором к тебе обратился пользователь (если вопрос на русском — отвечай и рассуждай на русском, if in English — reason and respond in English, if in Chinese — in Chinese).' %}\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 %}\n{{- '<think>\\n' }}"
9021
  }