tanquangduong commited on
Commit
71851af
·
verified ·
1 Parent(s): 23f12d0

Upload tokenizer

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -203,7 +203,7 @@
203
  "<|video_pad|>"
204
  ],
205
  "bos_token": null,
206
- "chat_template": null,
207
  "clean_up_tokenization_spaces": false,
208
  "eos_token": "<|endoftext|>",
209
  "errors": "replace",
 
203
  "<|video_pad|>"
204
  ],
205
  "bos_token": null,
206
+ "chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + '\n\n' }}{% set loop_messages = messages[1:] %}{% else %}{{ 'Below are some instructions that describe some tasks. Write responses that appropriately complete each request.\n\n' }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ '### Instruction:\n' + message['content'] + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ '### Response:\n' + message['content'] + eos_token + '\n\n' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '### Response:\n' }}{% endif %}",
207
  "clean_up_tokenization_spaces": false,
208
  "eos_token": "<|endoftext|>",
209
  "errors": "replace",