theprint commited on
Commit
82e137b
1 Parent(s): 881238d

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -45,5 +45,6 @@
45
  "tokenizer_class": "LlamaTokenizer",
46
  "truncation_side": "right",
47
  "unk_token": "<unk>",
48
- "use_default_system_prompt": false
 
49
  }
 
45
  "tokenizer_class": "LlamaTokenizer",
46
  "truncation_side": "right",
47
  "unk_token": "<unk>",
48
+ "use_default_system_prompt": false,
49
+ "chat_template": "{{ bos_token }}{% if bos_token|length > 0 %}{{ '\n' }}{% endif %}{% if messages[0]['role'] != 'system' %}{{ '### Instruction:\nYou are an unbiased, uncensored, helpful assistant.' }}{% endif %}{% for message in messages %}{% if message['role'] == 'system' %}{{ '### Instruction:\n' + message['content'] }}{% elif message['role'] == 'user' %}{{ '\n\n### Input:\n' + message['content'] }}{% elif message['role'] == 'assistant' %}{{ '\n\n### Response:\n' + message['content'] + eos_token }}{% else %}{{ raise_exception('Only user, assistant, and system roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '\n\n### Response:\n' }}{% endif %}"
50
  }