add bos_token to chat template (#10)
Browse files- add {{ bos_token }} to chat template (0138a0bd91e6e5242a086251250ad0dd6a61a84b)
- tidy up bos_token reference in chat template (ee11e78b30428a39e7f0e265fb760185b53da8f3)
Co-authored-by: Alwin Arrasyid <alwint3r@users.noreply.huggingface.co>
- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -45,7 +45,7 @@
|
|
45 |
}
|
46 |
},
|
47 |
"bos_token": "<s>",
|
48 |
-
"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 %}",
|
49 |
"clean_up_tokenization_spaces": false,
|
50 |
"eos_token": "<|im_end|>",
|
51 |
"legacy": true,
|
|
|
45 |
}
|
46 |
},
|
47 |
"bos_token": "<s>",
|
48 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{{ bos_token }}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
49 |
"clean_up_tokenization_spaces": false,
|
50 |
"eos_token": "<|im_end|>",
|
51 |
"legacy": true,
|