fix: update chat_template to ChatML (#6)
Browse files- fix: update chat_template to ChatML (8ee12c5450d1a4fa2d8db44f744a9e2d29fe6004)
Co-authored-by: Giorgi Andriadze <[email protected]>
- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -37,7 +37,7 @@
|
|
37 |
}
|
38 |
},
|
39 |
"bos_token": "<|startoftext|>",
|
40 |
-
"chat_template": "{% if
|
41 |
"clean_up_tokenization_spaces": false,
|
42 |
"eos_token": "<|im_end|>",
|
43 |
"legacy": true,
|
|
|
37 |
}
|
38 |
},
|
39 |
"bos_token": "<|startoftext|>",
|
40 |
+
"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 %}",
|
41 |
"clean_up_tokenization_spaces": false,
|
42 |
"eos_token": "<|im_end|>",
|
43 |
"legacy": true,
|