zhengr commited on
Commit
b8f7456
1 Parent(s): ecc2725

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -34,7 +34,7 @@
34
  "</s>"
35
  ],
36
  "bos_token": "<s>",
37
- "chat_template": "{% for message in messages -%}{%- if message['role'] == 'user' -%}{{ '### Instruction:\n' + message['content'].strip() + '\n\n### Response:\n' }}{%- elif message['role'] == 'system' -%}{{ message['content'].strip() + '\n\n' }}{%- elif message['role'] == 'assistant' -%}{{ message['content'].strip() + '\n\n' }}{%- endif -%}{%- endfor %}",
38
  "clean_up_tokenization_spaces": false,
39
  "eos_token": "</s>",
40
  "legacy": true,
 
34
  "</s>"
35
  ],
36
  "bos_token": "<s>",
37
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '### Instruction:\n' + message['content'] }}\n{% elif message['role'] == 'system' %}\n{{ '### System:\n' + message['content'] }}\n{% elif message['role'] == 'assistant' %}\n{{ '### Response:\n' + message['content'] }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '### Response:' }}\n{% endif %}\n{% endfor %}",
38
  "clean_up_tokenization_spaces": false,
39
  "eos_token": "</s>",
40
  "legacy": true,