lunahr commited on
Commit
0304897
·
verified ·
1 Parent(s): 382cf26

turns out we need to add [|endofturn|] by ourselves

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -3211,7 +3211,7 @@
3211
  "PI:USER"
3212
  ],
3213
  "bos_token": "[BOS]",
3214
- "chat_template": "{% for message in messages %}{% if loop.first and message['role'] != 'system' %}[|system|][|endofturn|]{% endif %}[|{{ message['role'] }}|]{{ message['content'] }}[|endofturn|]{% endfor %}{% if add_generation_prompt %}[|assistant|]{% endif %}{%- if add_reasoning_prompt %}[|reasoning|]{% endif %}",
3215
  "clean_up_tokenization_spaces": true,
3216
  "eos_token": "[|endofturn|]",
3217
  "extra_special_tokens": {},
 
3211
  "PI:USER"
3212
  ],
3213
  "bos_token": "[BOS]",
3214
+ "chat_template": "{% for message in messages %}{% if loop.first and message['role'] != 'system' %}{{ '[|system|][|endofturn|]\n' }}{% endif %}{{ '[|' + message['role'] + '|]' + message['content'] }}{% if message['role'] == 'user' %}{{ '\n' }}{% else %}{{ '[|endofturn|]\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '[|assistant|][|endofturn|]' }}{% endif %}{% if add_reasoning_prompt %}{{ '[|reasoning|][|endofturn|]' }}{% endif %}",
3215
  "clean_up_tokenization_spaces": true,
3216
  "eos_token": "[|endofturn|]",
3217
  "extra_special_tokens": {},