qnguyen3 commited on
Commit
9ed2afd
1 Parent(s): 6cd074a

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -44,6 +44,7 @@
44
  "bos_token": "<s>",
45
  "clean_up_tokenization_spaces": false,
46
  "eos_token": "<|im_end|>",
 
47
  "legacy": false,
48
  "model_max_length": 1000000000000000019884624838656,
49
  "pad_token": "</s>",
 
44
  "bos_token": "<s>",
45
  "clean_up_tokenization_spaces": false,
46
  "eos_token": "<|im_end|>",
47
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system\\n' + system_message + '<|im_end|>\\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\\n' + content + '<|im_end|>\\n<|im_start|>assistant\\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\\n' }}{% endif %}{% endfor %}",
48
  "legacy": false,
49
  "model_max_length": 1000000000000000019884624838656,
50
  "pad_token": "</s>",