ff670 commited on
Commit
47b1334
1 Parent(s): e4ba7ab

Upload tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -11020,5 +11020,6 @@
11020
  "sp_model_kwargs": {},
11021
  "tokenizer_class": "LlamaTokenizer",
11022
  "unk_token": null,
11023
- "use_default_system_prompt": false
 
11024
  }
 
11020
  "sp_model_kwargs": {},
11021
  "tokenizer_class": "LlamaTokenizer",
11022
  "unk_token": null,
11023
+ "use_default_system_prompt": false,
11024
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ 'User: ' + message['content'] + '\n' }}{% elif message['role'] == 'assistant' %}{% if loop.last %}{{ 'Assistant: ' + message['content']}}{% else %}{{ 'Assistant: ' + message['content'] + eos_token + '\n' }}{% endif %}{% elif message['role'] == 'system' %}{{ message['content'] + '\n' }}{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ 'Assistant:' }}{% endif %}"
11025
  }