Text Generation
Transformers
PyTorch
Safetensors
gpt2
conversational
text-generation-inference
Inference Endpoints
timpal0l commited on
Commit
5234e8e
1 Parent(s): b031717

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -1,5 +1,6 @@
1
  {
2
  "model_max_length": 2048,
3
  "padding_side": "left",
4
- "truncation_side": "left"
 
5
  }
 
1
  {
2
  "model_max_length": 2048,
3
  "padding_side": "left",
4
+ "truncation_side": "left",
5
+ "chat_template": "{{ eos_token }}{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ 'User: ' + message['content']}}{% else %}{{ 'Bot: ' + message['content']}}{% endif %}{{ message['text'] }}{{ bos_token }}{% endfor %}Bot:"
6
  }