Text Generation
Transformers.js
ONNX
English
gpt_neox
conversational
Felladrin commited on
Commit
209a077
1 Parent(s): d992c85

Add `chat_template` to `tokenizer_config.json`

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -203,6 +203,7 @@
203
  }
204
  },
205
  "bos_token": "<|endoftext|>",
 
206
  "clean_up_tokenization_spaces": true,
207
  "eos_token": "<|endoftext|>",
208
  "model_max_length": 1000000000000000019884624838656,
 
203
  }
204
  },
205
  "bos_token": "<|endoftext|>",
206
+ "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 %}",
207
  "clean_up_tokenization_spaces": true,
208
  "eos_token": "<|endoftext|>",
209
  "model_max_length": 1000000000000000019884624838656,