vananh0905 commited on
Commit
2f11978
1 Parent(s): c33e0c4

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -140,7 +140,7 @@
140
  }
141
  },
142
  "bos_token": "<|begin▁of▁sentence|>",
143
- "chat_template": "{{ bos_token }}{% for message in messages %}\n{% if message['from'] == 'human' %}\n{{ '<|user|>\n' + message['value']}}\n{% elif message['from'] == 'system' %}\n{{ '<|system|>\n' + message['value']}}\n{% elif message['from'] == 'gpt' %}\n{{ '<|assistant|>\n' + message['value'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
144
  "clean_up_tokenization_spaces": false,
145
  "eos_token": "<|EOT|>",
146
  "legacy": true,
 
140
  }
141
  },
142
  "bos_token": "<|begin▁of▁sentence|>",
143
+ "chat_template": "{{ bos_token }}{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content']}}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content']}}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
144
  "clean_up_tokenization_spaces": false,
145
  "eos_token": "<|EOT|>",
146
  "legacy": true,