Commit
•
e0b2691
1
Parent(s):
4db0c07
add image as special token
Browse files- tokenizer_config.json +4 -0
tokenizer_config.json
CHANGED
@@ -59,6 +59,10 @@
|
|
59 |
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
60 |
"clean_up_tokenization_spaces": false,
|
61 |
"eos_token": "<|im_end|>",
|
|
|
|
|
|
|
|
|
62 |
"legacy": true,
|
63 |
"model_max_length": 4096,
|
64 |
"pad_token": "<unk>",
|
|
|
59 |
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
60 |
"clean_up_tokenization_spaces": false,
|
61 |
"eos_token": "<|im_end|>",
|
62 |
+
"extra_special_tokens": {
|
63 |
+
"image_token": "<image>"
|
64 |
+
},
|
65 |
+
"image_token": "<image>",
|
66 |
"legacy": true,
|
67 |
"model_max_length": 4096,
|
68 |
"pad_token": "<unk>",
|