wannaphong commited on
Commit
b7510f8
1 Parent(s): 6bddd64

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -29,7 +29,7 @@
29
  },
30
  "additional_special_tokens": [],
31
  "bos_token": "<s>",
32
- "chat_template": tokenizer.chat_template="{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|User|>\n'+message['content'].strip()+bos_token}}{% elif message['role'] == 'assistant' %}{{ '<|Assistant|>\n' + message['content']+ eos_token }}{% endif %}{% if not loop.last %}{{ '\n' }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '\n<|Assistant|>' }}\n{% endif %}{% endfor %}",
33
  "clean_up_tokenization_spaces": false,
34
  "eos_token": "</s>",
35
  "legacy": true,
 
29
  },
30
  "additional_special_tokens": [],
31
  "bos_token": "<s>",
32
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|User|>\n'+message['content'].strip()+eos_token}}{% elif message['role'] == 'assistant' %}{{ '<|Assistant|>\n' + message['content']+ eos_token }}{% endif %}{% if not loop.last %}{{ '\n' }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '\n<|Assistant|>' }}\n{% endif %}{% endfor %}",
33
  "clean_up_tokenization_spaces": false,
34
  "eos_token": "</s>",
35
  "legacy": true,