Upload folder using huggingface_hub
Browse files- config.json +0 -14
- tokenizer_config.json +3 -2
config.json
CHANGED
|
@@ -3,14 +3,6 @@
|
|
| 3 |
"_commit_hash": "9d423ea1ae9f893897ee3f7493141073f5afcf22",
|
| 4 |
"_output_attentions": false,
|
| 5 |
"add_cross_attention": false,
|
| 6 |
-
"architectures": [
|
| 7 |
-
"InternVLChatModel"
|
| 8 |
-
],
|
| 9 |
-
"auto_map": {
|
| 10 |
-
"AutoConfig": "configuration_internvl_chat.InternVLChatConfig",
|
| 11 |
-
"AutoModel": "modeling_internvl_chat.InternVLChatModel",
|
| 12 |
-
"AutoModelForCausalLM": "modeling_internvl_chat.InternVLChatModel"
|
| 13 |
-
},
|
| 14 |
"bad_words_ids": null,
|
| 15 |
"begin_suppress_tokens": null,
|
| 16 |
"bos_token_id": null,
|
|
@@ -96,9 +88,6 @@
|
|
| 96 |
"cross_attention_hidden_size": null,
|
| 97 |
"add_cross_attention": false,
|
| 98 |
"tie_encoder_decoder": false,
|
| 99 |
-
"architectures": [
|
| 100 |
-
"Qwen2ForCausalLM"
|
| 101 |
-
],
|
| 102 |
"finetuning_task": null,
|
| 103 |
"id2label": {
|
| 104 |
"0": "LABEL_0",
|
|
@@ -211,9 +200,6 @@
|
|
| 211 |
"cross_attention_hidden_size": null,
|
| 212 |
"add_cross_attention": false,
|
| 213 |
"tie_encoder_decoder": false,
|
| 214 |
-
"architectures": [
|
| 215 |
-
"InternVisionModel"
|
| 216 |
-
],
|
| 217 |
"finetuning_task": null,
|
| 218 |
"id2label": {
|
| 219 |
"0": "LABEL_0",
|
|
|
|
| 3 |
"_commit_hash": "9d423ea1ae9f893897ee3f7493141073f5afcf22",
|
| 4 |
"_output_attentions": false,
|
| 5 |
"add_cross_attention": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"bad_words_ids": null,
|
| 7 |
"begin_suppress_tokens": null,
|
| 8 |
"bos_token_id": null,
|
|
|
|
| 88 |
"cross_attention_hidden_size": null,
|
| 89 |
"add_cross_attention": false,
|
| 90 |
"tie_encoder_decoder": false,
|
|
|
|
|
|
|
|
|
|
| 91 |
"finetuning_task": null,
|
| 92 |
"id2label": {
|
| 93 |
"0": "LABEL_0",
|
|
|
|
| 200 |
"cross_attention_hidden_size": null,
|
| 201 |
"add_cross_attention": false,
|
| 202 |
"tie_encoder_decoder": false,
|
|
|
|
|
|
|
|
|
|
| 203 |
"finetuning_task": null,
|
| 204 |
"id2label": {
|
| 205 |
"0": "LABEL_0",
|
tokenizer_config.json
CHANGED
|
@@ -285,5 +285,6 @@
|
|
| 285 |
"pad_token": "<|endoftext|>",
|
| 286 |
"split_special_tokens": false,
|
| 287 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 288 |
-
"unk_token": null
|
| 289 |
-
}
|
|
|
|
|
|
| 285 |
"pad_token": "<|endoftext|>",
|
| 286 |
"split_special_tokens": false,
|
| 287 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 288 |
+
"unk_token": null,
|
| 289 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n'}}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<img>\n' }}{% elif content['type'] == 'video' %}{{ '<video>\n' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{'<|im_end|>\n'}}{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant\n' }}{% endif %}"
|
| 290 |
+
}
|