dqnguyen commited on
Commit
5b1d456
1 Parent(s): b8d1868

Adjust chat_template

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -8,5 +8,5 @@
8
  "padding_side": "right",
9
  "tokenizer_class": "BloomTokenizer",
10
  "unk_token": "<unk>",
11
- "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{% if message['role'] == 'user' %}{{ '### Câu hỏi: ' + message['content'].strip() }}{% elif message['role'] == 'assistant' %}{{ '\n### Trả lời: ' + message['content'] + eos_token }}{% endif %}{% if loop.last %}{% if message['role'] == 'user' and add_generation_prompt %}{{ '\n### Trả lời:' }}{% endif %}{% endif %}{% endfor %}"
12
  }
 
8
  "padding_side": "right",
9
  "tokenizer_class": "BloomTokenizer",
10
  "unk_token": "<unk>",
11
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{% if message['role'] == 'user' and loop.first %}{{ '### Câu hỏi: ' + message['content'].strip() }}{% elif message['role'] == 'user' %}{{ '\n### Câu hỏi: ' + message['content'].strip() }}{% elif message['role'] == 'assistant' %}{{ '\n### Trả lời: ' + message['content'] + eos_token }}{% endif %}{% if loop.last %}{% if message['role'] == 'user' and add_generation_prompt %}{{ '\n### Trả lời:' }}{% endif %}{% endif %}{% endfor %}"
12
  }