Stefan171 commited on
Commit
680c52e
1 Parent(s): 6438dcb

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -0
tokenizer_config.json CHANGED
@@ -38,6 +38,8 @@
38
  "input_ids",
39
  "attention_mask"
40
  ],
 
 
41
  "model_max_length": 16384,
42
  "pad_token": "<unk>",
43
  "padding_side": "left",
 
38
  "input_ids",
39
  "attention_mask"
40
  ],
41
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
42
+
43
  "model_max_length": 16384,
44
  "pad_token": "<unk>",
45
  "padding_side": "left",