Add special tokens for chat

This commit is contained in:
x54-729 committed 2024-02-26 12:22:08 +08:00
1 parent 2d5cd71608
commit ad112bb573
2 files changed
+16

No files matched your search

+8
View File
@@ -1,4 +1,12 @@
{
"additional_special_tokens": [
"<|im_start|>",
"<|im_end|>",
"<|action_start|>",
"<|action_end|>",
"<|interpreter|>",
"<|plugin|>"
],
"bos_token": "<s>",
"eos_token": "</s>",
"pad_token": "</s>",
+8
View File
@@ -86,5 +86,13 @@
"special": true
}
},
"additional_special_tokens": [
"<|im_start|>",
"<|im_end|>",
"<|action_start|>",
"<|action_end|>",
"<|interpreter|>",
"<|plugin|>"
],
"chat_template": "{{ 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 %}"
}