aethernew / tokenizer_config.json
aemmeath's picture
Upload 6 files
4b73758 verified
Raw
History Blame Contribute Delete
830 Bytes
{
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\n' + message['content'] + '<|im_end|>\n' }}{% elif message['role'] == 'assistant' %}{{ '<|im_start|>assistant\n' }}{% if message['thought'] is defined %}{{ '<|thought|>\n' + message['thought'] + '\n<|thought|>\n' }}{% endif %}{{ message['content'] + '<|im_end|>\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n<|thought|>\n' }}{% endif %}",
"add_bos_token": false,
"add_eos_token": false,
"bos_token": null,
"eos_token": "<|im_end|>",
"pad_token": "<|im_end|>",
"model_max_length": 131072,
"tokenizer_class": "Qwen2Tokenizer",
"clean_up_tokenization_spaces": false
}