Safetensors
llama
vananh0905 commited on
Commit
80287d7
1 Parent(s): 2f11978

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -2
tokenizer_config.json CHANGED
@@ -140,8 +140,7 @@
140
  }
141
  },
142
  "bos_token": "<|begin▁of▁sentence|>",
143
- "chat_template": "{{ bos_token }}{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content']}}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content']}}\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 %}",
144
- "clean_up_tokenization_spaces": false,
145
  "eos_token": "<|EOT|>",
146
  "legacy": true,
147
  "model_max_length": 4096,
 
140
  }
141
  },
142
  "bos_token": "<|begin▁of▁sentence|>",
143
+ "chat_template": "{% for message in messages %}\n{% if message['from'] == 'human' %}\n{{ '<|user|>\n' + message['value'] + eos_token }}\n{% elif message['from'] == 'system' %}\n{{ '<|system|>\n' + message['value'] + eos_token }}\n{% elif message['from'] == 'gpt' %}\n{{ '<|assistant|>\n' + message['value'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}", "clean_up_tokenization_spaces": false,
 
144
  "eos_token": "<|EOT|>",
145
  "legacy": true,
146
  "model_max_length": 4096,