Training done
Browse files- chat_template.json +1 -1
- preprocessor_config.json +26 -2
- processor_config.json +1 -2
- tokenizer.json +0 -0
- tokenizer.model +2 -2
- tokenizer_config.json +8 -3
chat_template.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
{
|
| 2 |
-
"chat_template": "{% for message in messages %}{% if message['role']
|
| 3 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{ '<<SYS>>\n' + message['content'][0]['text'] + '\n<</SYS>>\n\n' }}{% elif message['role'] == 'user' %}{{ '[INST] ' }}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>\n' }}{% endfor %}{# Render all text next #}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] }}{% endfor %}{{' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + message['content'][0]['text'] + '<\\s> '}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}"
|
| 3 |
}
|
preprocessor_config.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"crop_size": {
|
| 3 |
"height": 336,
|
| 4 |
"width": 336
|
|
@@ -6,20 +7,43 @@
|
|
| 6 |
"do_center_crop": true,
|
| 7 |
"do_convert_rgb": true,
|
| 8 |
"do_normalize": true,
|
|
|
|
| 9 |
"do_rescale": true,
|
| 10 |
"do_resize": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"image_mean": [
|
| 12 |
0.48145466,
|
| 13 |
0.4578275,
|
| 14 |
0.40821073
|
| 15 |
],
|
| 16 |
-
"image_processor_type": "
|
| 17 |
"image_std": [
|
| 18 |
0.26862954,
|
| 19 |
0.26130258,
|
| 20 |
0.27577711
|
| 21 |
],
|
| 22 |
-
"processor_class": "
|
| 23 |
"resample": 3,
|
| 24 |
"rescale_factor": 0.00392156862745098,
|
| 25 |
"size": {
|
|
|
|
| 1 |
{
|
| 2 |
+
"aspect_ratio_setting": "anyres",
|
| 3 |
"crop_size": {
|
| 4 |
"height": 336,
|
| 5 |
"width": 336
|
|
|
|
| 7 |
"do_center_crop": true,
|
| 8 |
"do_convert_rgb": true,
|
| 9 |
"do_normalize": true,
|
| 10 |
+
"do_pad": true,
|
| 11 |
"do_rescale": true,
|
| 12 |
"do_resize": true,
|
| 13 |
+
"image_grid_pinpoints": [
|
| 14 |
+
[
|
| 15 |
+
336,
|
| 16 |
+
672
|
| 17 |
+
],
|
| 18 |
+
[
|
| 19 |
+
672,
|
| 20 |
+
336
|
| 21 |
+
],
|
| 22 |
+
[
|
| 23 |
+
672,
|
| 24 |
+
672
|
| 25 |
+
],
|
| 26 |
+
[
|
| 27 |
+
1008,
|
| 28 |
+
336
|
| 29 |
+
],
|
| 30 |
+
[
|
| 31 |
+
336,
|
| 32 |
+
1008
|
| 33 |
+
]
|
| 34 |
+
],
|
| 35 |
"image_mean": [
|
| 36 |
0.48145466,
|
| 37 |
0.4578275,
|
| 38 |
0.40821073
|
| 39 |
],
|
| 40 |
+
"image_processor_type": "LlavaNextImageProcessor",
|
| 41 |
"image_std": [
|
| 42 |
0.26862954,
|
| 43 |
0.26130258,
|
| 44 |
0.27577711
|
| 45 |
],
|
| 46 |
+
"processor_class": "LlavaNextProcessor",
|
| 47 |
"resample": 3,
|
| 48 |
"rescale_factor": 0.00392156862745098,
|
| 49 |
"size": {
|
processor_config.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"chat_template": "{% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>\n' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}",
|
| 3 |
"image_token": "<image>",
|
| 4 |
"patch_size": null,
|
| 5 |
-
"processor_class": "
|
| 6 |
"vision_feature_select_strategy": null
|
| 7 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"image_token": "<image>",
|
| 3 |
"patch_size": null,
|
| 4 |
+
"processor_class": "LlavaNextProcessor",
|
| 5 |
"vision_feature_select_strategy": null
|
| 6 |
}
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.model
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
| 3 |
+
size 493443
|
tokenizer_config.json
CHANGED
|
@@ -44,17 +44,22 @@
|
|
| 44 |
"special": true
|
| 45 |
}
|
| 46 |
},
|
|
|
|
| 47 |
"bos_token": "<s>",
|
|
|
|
| 48 |
"clean_up_tokenization_spaces": false,
|
| 49 |
"eos_token": "</s>",
|
| 50 |
-
"legacy":
|
|
|
|
| 51 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
|
| 52 |
"pad_token": "<pad>",
|
|
|
|
| 53 |
"padding_side": "right",
|
| 54 |
-
"processor_class": "
|
| 55 |
"sp_model_kwargs": {},
|
|
|
|
| 56 |
"tokenizer_class": "LlamaTokenizer",
|
| 57 |
-
"trust_remote_code": false,
|
| 58 |
"unk_token": "<unk>",
|
| 59 |
"use_default_system_prompt": false
|
| 60 |
}
|
|
|
|
| 44 |
"special": true
|
| 45 |
}
|
| 46 |
},
|
| 47 |
+
"additional_special_tokens": [],
|
| 48 |
"bos_token": "<s>",
|
| 49 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
| 50 |
"clean_up_tokenization_spaces": false,
|
| 51 |
"eos_token": "</s>",
|
| 52 |
+
"legacy": true,
|
| 53 |
+
"max_length": null,
|
| 54 |
"model_max_length": 1000000000000000019884624838656,
|
| 55 |
+
"pad_to_multiple_of": null,
|
| 56 |
"pad_token": "<pad>",
|
| 57 |
+
"pad_token_type_id": 0,
|
| 58 |
"padding_side": "right",
|
| 59 |
+
"processor_class": "LlavaNextProcessor",
|
| 60 |
"sp_model_kwargs": {},
|
| 61 |
+
"spaces_between_special_tokens": false,
|
| 62 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
|
| 63 |
"unk_token": "<unk>",
|
| 64 |
"use_default_system_prompt": false
|
| 65 |
}
|