Add special tokens for chat
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"additional_special_tokens": [
|
||||||
|
"<|im_start|>",
|
||||||
|
"<|im_end|>",
|
||||||
|
"<|action_start|>",
|
||||||
|
"<|action_end|>",
|
||||||
|
"<|interpreter|>",
|
||||||
|
"<|plugin|>"
|
||||||
|
],
|
||||||
"bos_token": "<s>",
|
"bos_token": "<s>",
|
||||||
"eos_token": "</s>",
|
"eos_token": "</s>",
|
||||||
"pad_token": "</s>",
|
"pad_token": "</s>",
|
||||||
|
|||||||
@@ -86,5 +86,13 @@
|
|||||||
"special": true
|
"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 %}"
|
"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 %}"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user