jncraton commited on
Commit
f32167d
·
verified ·
1 Parent(s): b6cf840

Add chat template to tokenizer config

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +6 -1
tokenizer_config.json CHANGED
@@ -36,5 +36,10 @@
36
  "clean_up_tokenization_spaces": false,
37
  "extra_special_tokens": {},
38
  "model_max_length": 1000000000000000019884624838656,
39
- "tokenizer_class": "PreTrainedTokenizer"
 
 
 
 
 
40
  }
 
36
  "clean_up_tokenization_spaces": false,
37
  "extra_special_tokens": {},
38
  "model_max_length": 1000000000000000019884624838656,
39
+ "tokenizer_class": "PreTrainedTokenizer",
40
+ "chat_template": "{% for m in messages %}<|im_start|>{{ m['role'] }}\n{{ m['content'] }}<|im_end|>\n{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n<think>\n{% endif %}",
41
+ "eos_token": "<|im_end|>",
42
+ "bos_token": "<|im_start|>",
43
+ "stop": ["<|im_end|>"],
44
+ "roles": { "user": "user", "assistant": "assistant", "system": "system" }
45
  }