Transformers
Inference Endpoints
loubnabnl HF staff commited on
Commit
eafe294
1 Parent(s): acbcf9b

add chat template

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -158,7 +158,8 @@
158
  "<empty_output>"
159
  ],
160
  "bos_token": "<|endoftext|>",
161
- "clean_up_tokenization_spaces": true,
 
162
  "eos_token": "<|endoftext|>",
163
  "model_max_length": 1000000000000000019884624838656,
164
  "tokenizer_class": "GPT2Tokenizer",
 
158
  "<empty_output>"
159
  ],
160
  "bos_token": "<|endoftext|>",
161
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
162
+ "clean_up_tokenization_spaces": false,
163
  "eos_token": "<|endoftext|>",
164
  "model_max_length": 1000000000000000019884624838656,
165
  "tokenizer_class": "GPT2Tokenizer",