MLX
Safetensors
dbrx
custom_code
ehartford commited on
Commit
8f7027e
1 Parent(s): c2ba064

add chat_template

Browse files

I am guessing, it needs chat_template in order to handle chat properly

Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -46,6 +46,7 @@
46
  null
47
  ]
48
  },
 
49
  "bos_token": "<|endoftext|>",
50
  "clean_up_tokenization_spaces": true,
51
  "encoding_name": null,
 
46
  null
47
  ]
48
  },
49
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
50
  "bos_token": "<|endoftext|>",
51
  "clean_up_tokenization_spaces": true,
52
  "encoding_name": null,