AlexL0701 commited on
Commit
98e5065
·
verified ·
1 Parent(s): 42bea7a

Add chat_template for /chat/completions

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -226,7 +226,8 @@
226
  "<|image_pad|>",
227
  "<|video_pad|>"
228
  ],
229
- "bos_token": null,
 
230
  "clean_up_tokenization_spaces": false,
231
  "eos_token": "<|im_end|>",
232
  "errors": "replace",
 
226
  "<|image_pad|>",
227
  "<|video_pad|>"
228
  ],
229
+ "bos_token": "<|endoftext|>",
230
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\\n' + message['content'] + '<|im_end|>\\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\\n' }}{% endif %}",
231
  "clean_up_tokenization_spaces": false,
232
  "eos_token": "<|im_end|>",
233
  "errors": "replace",