Upload 9 files
Browse files- added_tokens.json +6 -0
- config.json +199 -0
- generation_config.json +14 -0
- model.safetensors +3 -0
- preprocessor_config.json +24 -0
- special_tokens_map.json +20 -0
- tokenizer.json +0 -0
- tokenizer_config.json +53 -0
- vocab.json +0 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<image>": 151646,
|
| 3 |
+
"<|endoftext|>": 151643,
|
| 4 |
+
"<|im_end|>": 151645,
|
| 5 |
+
"<|im_start|>": 151644
|
| 6 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "lmms-lab/llava-onevision-qwen2-0.5b-ov",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"LlavaQwenForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 151643,
|
| 8 |
+
"eos_token_id": 151645,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 896,
|
| 11 |
+
"image_aspect_ratio": "anyres_max_9",
|
| 12 |
+
"image_crop_resolution": null,
|
| 13 |
+
"image_grid_pinpoints": [
|
| 14 |
+
[
|
| 15 |
+
384,
|
| 16 |
+
384
|
| 17 |
+
],
|
| 18 |
+
[
|
| 19 |
+
384,
|
| 20 |
+
768
|
| 21 |
+
],
|
| 22 |
+
[
|
| 23 |
+
384,
|
| 24 |
+
1152
|
| 25 |
+
],
|
| 26 |
+
[
|
| 27 |
+
384,
|
| 28 |
+
1536
|
| 29 |
+
],
|
| 30 |
+
[
|
| 31 |
+
384,
|
| 32 |
+
1920
|
| 33 |
+
],
|
| 34 |
+
[
|
| 35 |
+
384,
|
| 36 |
+
2304
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
768,
|
| 40 |
+
384
|
| 41 |
+
],
|
| 42 |
+
[
|
| 43 |
+
768,
|
| 44 |
+
768
|
| 45 |
+
],
|
| 46 |
+
[
|
| 47 |
+
768,
|
| 48 |
+
1152
|
| 49 |
+
],
|
| 50 |
+
[
|
| 51 |
+
768,
|
| 52 |
+
1536
|
| 53 |
+
],
|
| 54 |
+
[
|
| 55 |
+
768,
|
| 56 |
+
1920
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
768,
|
| 60 |
+
2304
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
1152,
|
| 64 |
+
384
|
| 65 |
+
],
|
| 66 |
+
[
|
| 67 |
+
1152,
|
| 68 |
+
768
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
1152,
|
| 72 |
+
1152
|
| 73 |
+
],
|
| 74 |
+
[
|
| 75 |
+
1152,
|
| 76 |
+
1536
|
| 77 |
+
],
|
| 78 |
+
[
|
| 79 |
+
1152,
|
| 80 |
+
1920
|
| 81 |
+
],
|
| 82 |
+
[
|
| 83 |
+
1152,
|
| 84 |
+
2304
|
| 85 |
+
],
|
| 86 |
+
[
|
| 87 |
+
1536,
|
| 88 |
+
384
|
| 89 |
+
],
|
| 90 |
+
[
|
| 91 |
+
1536,
|
| 92 |
+
768
|
| 93 |
+
],
|
| 94 |
+
[
|
| 95 |
+
1536,
|
| 96 |
+
1152
|
| 97 |
+
],
|
| 98 |
+
[
|
| 99 |
+
1536,
|
| 100 |
+
1536
|
| 101 |
+
],
|
| 102 |
+
[
|
| 103 |
+
1536,
|
| 104 |
+
1920
|
| 105 |
+
],
|
| 106 |
+
[
|
| 107 |
+
1536,
|
| 108 |
+
2304
|
| 109 |
+
],
|
| 110 |
+
[
|
| 111 |
+
1920,
|
| 112 |
+
384
|
| 113 |
+
],
|
| 114 |
+
[
|
| 115 |
+
1920,
|
| 116 |
+
768
|
| 117 |
+
],
|
| 118 |
+
[
|
| 119 |
+
1920,
|
| 120 |
+
1152
|
| 121 |
+
],
|
| 122 |
+
[
|
| 123 |
+
1920,
|
| 124 |
+
1536
|
| 125 |
+
],
|
| 126 |
+
[
|
| 127 |
+
1920,
|
| 128 |
+
1920
|
| 129 |
+
],
|
| 130 |
+
[
|
| 131 |
+
1920,
|
| 132 |
+
2304
|
| 133 |
+
],
|
| 134 |
+
[
|
| 135 |
+
2304,
|
| 136 |
+
384
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
2304,
|
| 140 |
+
768
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
2304,
|
| 144 |
+
1152
|
| 145 |
+
],
|
| 146 |
+
[
|
| 147 |
+
2304,
|
| 148 |
+
1536
|
| 149 |
+
],
|
| 150 |
+
[
|
| 151 |
+
2304,
|
| 152 |
+
1920
|
| 153 |
+
],
|
| 154 |
+
[
|
| 155 |
+
2304,
|
| 156 |
+
2304
|
| 157 |
+
]
|
| 158 |
+
],
|
| 159 |
+
"image_split_resolution": null,
|
| 160 |
+
"image_token_index": 151646,
|
| 161 |
+
"initializer_range": 0.02,
|
| 162 |
+
"intermediate_size": 4864,
|
| 163 |
+
"max_position_embeddings": 32768,
|
| 164 |
+
"max_window_layers": 24,
|
| 165 |
+
"mm_hidden_size": 1152,
|
| 166 |
+
"mm_newline_position": "one_token",
|
| 167 |
+
"mm_patch_merge_type": "spatial_unpad",
|
| 168 |
+
"mm_projector_lr": null,
|
| 169 |
+
"mm_projector_type": "mlp2x_gelu",
|
| 170 |
+
"mm_resampler_type": null,
|
| 171 |
+
"mm_spatial_pool_mode": "bilinear",
|
| 172 |
+
"mm_tunable_parts": "mm_vision_tower,mm_mlp_adapter,mm_language_model",
|
| 173 |
+
"mm_use_im_patch_token": false,
|
| 174 |
+
"mm_use_im_start_end": false,
|
| 175 |
+
"mm_vision_select_feature": "patch",
|
| 176 |
+
"mm_vision_select_layer": -2,
|
| 177 |
+
"mm_vision_tower": "google/siglip-so400m-patch14-384",
|
| 178 |
+
"mm_vision_tower_lr": 2e-06,
|
| 179 |
+
"model_type": "llava_qwen",
|
| 180 |
+
"num_attention_heads": 14,
|
| 181 |
+
"num_hidden_layers": 24,
|
| 182 |
+
"num_key_value_heads": 2,
|
| 183 |
+
"pos_skipping_range": 4096,
|
| 184 |
+
"rms_norm_eps": 1e-06,
|
| 185 |
+
"rope_scaling": null,
|
| 186 |
+
"rope_theta": 1000000.0,
|
| 187 |
+
"sliding_window": null,
|
| 188 |
+
"tie_word_embeddings": true,
|
| 189 |
+
"tokenizer_model_max_length": 32768,
|
| 190 |
+
"tokenizer_padding_side": "right",
|
| 191 |
+
"torch_dtype": "float16",
|
| 192 |
+
"transformers_version": "4.44.0",
|
| 193 |
+
"use_cache": true,
|
| 194 |
+
"use_mm_proj": true,
|
| 195 |
+
"use_pos_skipping": false,
|
| 196 |
+
"use_sliding_window": false,
|
| 197 |
+
"vision_tower_pretrained": null,
|
| 198 |
+
"vocab_size": 151647
|
| 199 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.1,
|
| 10 |
+
"temperature": 0.7,
|
| 11 |
+
"top_k": 20,
|
| 12 |
+
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "4.40.0.dev0"
|
| 14 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f4da607af800e7b610d66b7b24409f4747db7705507c5500aa4f59e0b24758c
|
| 3 |
+
size 1786816728
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "SiglipImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"processor_class": "LlavaProcessor",
|
| 18 |
+
"resample": 3,
|
| 19 |
+
"rescale_factor": 0.00392156862745098,
|
| 20 |
+
"size": {
|
| 21 |
+
"height": 384,
|
| 22 |
+
"width": 384
|
| 23 |
+
}
|
| 24 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>"
|
| 5 |
+
],
|
| 6 |
+
"eos_token": {
|
| 7 |
+
"content": "<|im_end|>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false
|
| 12 |
+
},
|
| 13 |
+
"pad_token": {
|
| 14 |
+
"content": "<|endoftext|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false
|
| 19 |
+
}
|
| 20 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"151643": {
|
| 5 |
+
"content": "<|endoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"151644": {
|
| 13 |
+
"content": "<|im_start|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"151645": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"151646": {
|
| 29 |
+
"content": "<image>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
}
|
| 36 |
+
},
|
| 37 |
+
"additional_special_tokens": [
|
| 38 |
+
"<|im_start|>",
|
| 39 |
+
"<|im_end|>"
|
| 40 |
+
],
|
| 41 |
+
"bos_token": null,
|
| 42 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
| 43 |
+
"clean_up_tokenization_spaces": false,
|
| 44 |
+
"eos_token": "<|im_end|>",
|
| 45 |
+
"errors": "replace",
|
| 46 |
+
"model_max_length": 32768,
|
| 47 |
+
"pad_token": "<|endoftext|>",
|
| 48 |
+
"padding_side": "right",
|
| 49 |
+
"processor_class": "LlavaProcessor",
|
| 50 |
+
"split_special_tokens": false,
|
| 51 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 52 |
+
"unk_token": null
|
| 53 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|