Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- added_tokens.json +43 -0
- chat_template.jinja +7 -0
- config.json +102 -0
- image_processing_keye.py +538 -0
- merges.txt +0 -0
- model-00001-of-00005.safetensors +3 -0
- model-00002-of-00005.safetensors +3 -0
- model-00003-of-00005.safetensors +3 -0
- model-00004-of-00005.safetensors +3 -0
- model-00005-of-00005.safetensors +3 -0
- model.safetensors.index.json +939 -0
- preprocessor_config.json +33 -0
- processing_keye.py +391 -0
- processor_config.json +6 -0
- special_tokens_map.json +25 -0
- tokenizer.json +3 -0
- tokenizer_config.json +357 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
added_tokens.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</think>": 151668,
|
| 3 |
+
"</tool_call>": 151658,
|
| 4 |
+
"</tool_response>": 151666,
|
| 5 |
+
"<think>": 151667,
|
| 6 |
+
"<tool_call>": 151657,
|
| 7 |
+
"<tool_response>": 151665,
|
| 8 |
+
"<|box_end|>": 151649,
|
| 9 |
+
"<|box_start|>": 151648,
|
| 10 |
+
"<|clip_time_end|>": 151674,
|
| 11 |
+
"<|clip_time_start|>": 151673,
|
| 12 |
+
"<|endoftext|>": 151643,
|
| 13 |
+
"<|fast_end|>": 151680,
|
| 14 |
+
"<|fast_start|>": 151679,
|
| 15 |
+
"<|fast_video_pad|>": 151678,
|
| 16 |
+
"<|file_sep|>": 151664,
|
| 17 |
+
"<|fim_middle|>": 151660,
|
| 18 |
+
"<|fim_pad|>": 151662,
|
| 19 |
+
"<|fim_prefix|>": 151659,
|
| 20 |
+
"<|fim_suffix|>": 151661,
|
| 21 |
+
"<|frame|>": 151677,
|
| 22 |
+
"<|im_end|>": 151645,
|
| 23 |
+
"<|im_start|>": 151644,
|
| 24 |
+
"<|image_pad|>": 151655,
|
| 25 |
+
"<|mm_pos_end|>": 151683,
|
| 26 |
+
"<|mm_pos_start|>": 151682,
|
| 27 |
+
"<|object_ref_end|>": 151647,
|
| 28 |
+
"<|object_ref_start|>": 151646,
|
| 29 |
+
"<|ocr_text_end|>": 151672,
|
| 30 |
+
"<|ocr_text_start|>": 151671,
|
| 31 |
+
"<|point_end|>": 151670,
|
| 32 |
+
"<|point_start|>": 151669,
|
| 33 |
+
"<|polygon_end|>": 151676,
|
| 34 |
+
"<|polygon_start|>": 151675,
|
| 35 |
+
"<|q_eos|>": 151681,
|
| 36 |
+
"<|quad_end|>": 151651,
|
| 37 |
+
"<|quad_start|>": 151650,
|
| 38 |
+
"<|repo_name|>": 151663,
|
| 39 |
+
"<|video_pad|>": 151656,
|
| 40 |
+
"<|vision_end|>": 151653,
|
| 41 |
+
"<|vision_pad|>": 151654,
|
| 42 |
+
"<|vision_start|>": 151652
|
| 43 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
|
| 2 |
+
You are a helpful assistant.<|im_end|>
|
| 3 |
+
{% endif %}<|im_start|>{{ message['role'] }}
|
| 4 |
+
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
|
| 5 |
+
{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
|
| 6 |
+
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
| 7 |
+
{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_class": "KeyeARModel",
|
| 3 |
+
"qwen_config": {
|
| 4 |
+
"model_class": "UnifiedQwen3Model",
|
| 5 |
+
"vocab_size": 151936,
|
| 6 |
+
"embed_dim": 4096,
|
| 7 |
+
"num_layers": 36,
|
| 8 |
+
"tie_word_embeddings": false,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"num_heads": 32,
|
| 11 |
+
"num_kv_heads": 8,
|
| 12 |
+
"head_dim": 128,
|
| 13 |
+
"attn_dropout": 0.0,
|
| 14 |
+
"attention_function": "flash_attention_2",
|
| 15 |
+
"q_proj_bias": false,
|
| 16 |
+
"k_proj_bias": false,
|
| 17 |
+
"v_proj_bias": false,
|
| 18 |
+
"attention_bias": false,
|
| 19 |
+
"intermediate_dim": 12288,
|
| 20 |
+
"max_seq_len": 40960,
|
| 21 |
+
"rope_base": 1000000.0,
|
| 22 |
+
"rope_impl": "llama",
|
| 23 |
+
"rope_theta": 10000.0,
|
| 24 |
+
"rope_scaling": null,
|
| 25 |
+
"use_sliding_window": false,
|
| 26 |
+
"sliding_window": null,
|
| 27 |
+
"norm_eps": 1e-06,
|
| 28 |
+
"rms_norm_eps": 1e-06,
|
| 29 |
+
"q_norm": true,
|
| 30 |
+
"k_norm": true,
|
| 31 |
+
"eos_token_id": 151645,
|
| 32 |
+
"use_multimodal_rope": false,
|
| 33 |
+
"mrope_section": null,
|
| 34 |
+
"pre_embedding_size": null,
|
| 35 |
+
"pre_embedding_tokens": null,
|
| 36 |
+
"image_token_id": 151655,
|
| 37 |
+
"pad_token_id": null,
|
| 38 |
+
"q_eos_token": 151681,
|
| 39 |
+
"vision_start_token_id": 151652,
|
| 40 |
+
"vision_end_token_id": 151653,
|
| 41 |
+
"output_last_hidden_states_only": false,
|
| 42 |
+
"token_decoder_with_teacher_forcing": true,
|
| 43 |
+
"codebook_size": 65536,
|
| 44 |
+
"n_q_tokens": 8,
|
| 45 |
+
"skip_output_layer": false
|
| 46 |
+
},
|
| 47 |
+
"tokenizer_config": {
|
| 48 |
+
"model_class": "KeyeImageTokenizer",
|
| 49 |
+
"vision_config": {
|
| 50 |
+
"model_class": "KeyeVL1_5VisionModel",
|
| 51 |
+
"image_size": 384,
|
| 52 |
+
"patch_size": 14,
|
| 53 |
+
"num_channels": 3,
|
| 54 |
+
"hidden_size": 1152,
|
| 55 |
+
"num_hidden_layers": 27,
|
| 56 |
+
"num_attention_heads": 16,
|
| 57 |
+
"intermediate_size": 4304,
|
| 58 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 59 |
+
"max_seq_len": 4096,
|
| 60 |
+
"layer_norm_eps": 1e-06,
|
| 61 |
+
"attention_dropout": 0.0,
|
| 62 |
+
"has_learnable_position_embedding": true,
|
| 63 |
+
"use_qk_norm": false,
|
| 64 |
+
"qk_norm_eps": 1e-06,
|
| 65 |
+
"rope_theta": 10000.0,
|
| 66 |
+
"attention_function": "flash_attention_2",
|
| 67 |
+
"output_attentions": false,
|
| 68 |
+
"output_hidden_states": false
|
| 69 |
+
},
|
| 70 |
+
"codebook_size": 65536,
|
| 71 |
+
"embedding_dim": 128,
|
| 72 |
+
"init_embedding_dim": 4096,
|
| 73 |
+
"llm_hidden_size": 4096,
|
| 74 |
+
"n_q_tokens": 8,
|
| 75 |
+
"split_dim": false,
|
| 76 |
+
"split_voc": 8,
|
| 77 |
+
"add_voc_reducer": false,
|
| 78 |
+
"vq_sampling_mode": "argmin",
|
| 79 |
+
"vq_temperature": 1.0,
|
| 80 |
+
"vq_temperature_decay": 0.999,
|
| 81 |
+
"vq_min_temperature": 0.1,
|
| 82 |
+
"pre_llm_align": false,
|
| 83 |
+
"output_dim": 1024,
|
| 84 |
+
"fusion_type": "sum"
|
| 85 |
+
},
|
| 86 |
+
"token_decoder_config": {
|
| 87 |
+
"model_class": "UnifiedTokenDecoder",
|
| 88 |
+
"vocab_size": 65536,
|
| 89 |
+
"max_pos_length": 65537,
|
| 90 |
+
"max_length": 9,
|
| 91 |
+
"d_model": 512,
|
| 92 |
+
"eos_token": 151681,
|
| 93 |
+
"nhead": 4,
|
| 94 |
+
"num_layers": 1,
|
| 95 |
+
"dim_feedforward": 2048,
|
| 96 |
+
"use_gradient_checkpointing": true,
|
| 97 |
+
"input_dim": 4096,
|
| 98 |
+
"reduce": true,
|
| 99 |
+
"attention_function": "eager"
|
| 100 |
+
},
|
| 101 |
+
"__class__": "KeyeARConfig"
|
| 102 |
+
}
|
image_processing_keye.py
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2024 The Qwen team, Alibaba Group and the HuggingFace Inc. team. All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX
|
| 5 |
+
# and OPT implementations in this library. It has been modified from its
|
| 6 |
+
# original forms to accommodate minor architectural differences compared
|
| 7 |
+
# to GPT-NeoX and OPT used by the Meta AI team that trained the model.
|
| 8 |
+
#
|
| 9 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 10 |
+
# you may not use this file except in compliance with the License.
|
| 11 |
+
# You may obtain a copy of the License at
|
| 12 |
+
#
|
| 13 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 14 |
+
#
|
| 15 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 16 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 17 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 18 |
+
# See the License for the specific language governing permissions and
|
| 19 |
+
# limitations under the License.
|
| 20 |
+
"""Image processor class for Qwen2-VL."""
|
| 21 |
+
|
| 22 |
+
import math
|
| 23 |
+
from typing import Dict, List, Optional, Union
|
| 24 |
+
from PIL import Image
|
| 25 |
+
|
| 26 |
+
import numpy as np
|
| 27 |
+
import torch
|
| 28 |
+
from transformers.image_processing_utils import BaseImageProcessor, BatchFeature
|
| 29 |
+
from torchvision.transforms import functional as TF
|
| 30 |
+
from transformers.image_transforms import (
|
| 31 |
+
convert_to_rgb,
|
| 32 |
+
resize,
|
| 33 |
+
to_channel_dimension_format,
|
| 34 |
+
)
|
| 35 |
+
from transformers.image_utils import (
|
| 36 |
+
OPENAI_CLIP_MEAN,
|
| 37 |
+
OPENAI_CLIP_STD,
|
| 38 |
+
ChannelDimension,
|
| 39 |
+
PILImageResampling,
|
| 40 |
+
get_image_size,
|
| 41 |
+
infer_channel_dimension_format,
|
| 42 |
+
is_scaled_image,
|
| 43 |
+
is_valid_image,
|
| 44 |
+
make_list_of_images,
|
| 45 |
+
to_numpy_array,
|
| 46 |
+
valid_images,
|
| 47 |
+
validate_preprocess_arguments,
|
| 48 |
+
)
|
| 49 |
+
from transformers.utils import TensorType, is_vision_available, logging
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
ImageInput = Union[
|
| 53 |
+
"PIL.Image.Image", np.ndarray, "torch.Tensor", list["PIL.Image.Image"], list[np.ndarray], list["torch.Tensor"]
|
| 54 |
+
] # noqa
|
| 55 |
+
|
| 56 |
+
VideoInput = Union[
|
| 57 |
+
list["PIL.Image.Image"],
|
| 58 |
+
"np.ndarray",
|
| 59 |
+
"torch.Tensor",
|
| 60 |
+
list["np.ndarray"],
|
| 61 |
+
list["torch.Tensor"],
|
| 62 |
+
list[list["PIL.Image.Image"]],
|
| 63 |
+
list[list["np.ndarrray"]],
|
| 64 |
+
list[list["torch.Tensor"]],
|
| 65 |
+
] # noqa
|
| 66 |
+
logger = logging.get_logger(__name__)
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
if is_vision_available():
|
| 70 |
+
from PIL import Image
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def make_batched_images(images) -> List[List[ImageInput]]:
|
| 74 |
+
"""
|
| 75 |
+
Accepts images in list or nested list format, and makes a list of images for preprocessing.
|
| 76 |
+
|
| 77 |
+
Args:
|
| 78 |
+
images (`Union[List[List[ImageInput]], List[ImageInput], ImageInput]`):
|
| 79 |
+
The input image.
|
| 80 |
+
|
| 81 |
+
Returns:
|
| 82 |
+
list: A list of images.
|
| 83 |
+
"""
|
| 84 |
+
if isinstance(images, (list, tuple)) and isinstance(images[0], (list, tuple)) and is_valid_image(images[0][0]):
|
| 85 |
+
return [img for img_list in images for img in img_list]
|
| 86 |
+
|
| 87 |
+
elif isinstance(images, (list, tuple)) and is_valid_image(images[0]):
|
| 88 |
+
return images
|
| 89 |
+
|
| 90 |
+
elif is_valid_image(images):
|
| 91 |
+
return [images]
|
| 92 |
+
|
| 93 |
+
raise ValueError(f"Could not make batched images from {images}")
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def adjust_size(size, patch_size):
|
| 97 |
+
num_patches = size // patch_size
|
| 98 |
+
if num_patches % 2 != 0: # 如果是奇数,减1
|
| 99 |
+
num_patches -= 1
|
| 100 |
+
return num_patches * patch_size
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def make_batched_videos(videos) -> List[VideoInput]:
|
| 104 |
+
if isinstance(videos, (list, tuple)) and isinstance(videos[0], (list, tuple)) and is_valid_image(videos[0][0]):
|
| 105 |
+
return videos
|
| 106 |
+
|
| 107 |
+
elif isinstance(videos, (list, tuple)) and is_valid_image(videos[0]):
|
| 108 |
+
if isinstance(videos[0], Image.Image):
|
| 109 |
+
return [videos]
|
| 110 |
+
elif len(videos[0].shape) == 4:
|
| 111 |
+
return [list(video) for video in videos]
|
| 112 |
+
|
| 113 |
+
elif is_valid_image(videos) and len(videos.shape) == 4:
|
| 114 |
+
return [list(videos)]
|
| 115 |
+
|
| 116 |
+
raise ValueError(f"Could not make batched video from {videos}")
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def smart_resize(
|
| 120 |
+
height: int, width: int, factor: int = 28, min_pixels: int = 56 * 56, max_pixels: int = 14 * 14 * 4096
|
| 121 |
+
):
|
| 122 |
+
"""Rescales the image so that the following conditions are met:
|
| 123 |
+
|
| 124 |
+
1. Both dimensions (height and width) are divisible by 'factor'.
|
| 125 |
+
|
| 126 |
+
2. The total number of pixels is within the range ['min_pixels', 'max_pixels'].
|
| 127 |
+
|
| 128 |
+
3. The aspect ratio of the image is maintained as closely as possible.
|
| 129 |
+
|
| 130 |
+
"""
|
| 131 |
+
#if height < factor or width < factor:
|
| 132 |
+
# raise ValueError(f"height:{height} or width:{width} must be larger than factor:{factor}")
|
| 133 |
+
# if int(height < factor//4) + int(width < factor//4):
|
| 134 |
+
# raise ValueError(f"height:{height} or width:{width} must be larger than factor:{factor//4}")
|
| 135 |
+
|
| 136 |
+
if height < factor:
|
| 137 |
+
print(f"smart_resize: height={height} < factor={factor}, reset height=factor")
|
| 138 |
+
width = round((width * factor) / height)
|
| 139 |
+
height = factor
|
| 140 |
+
|
| 141 |
+
if width < factor:
|
| 142 |
+
print(f"smart_resize: width={width} < factor={factor}, reset width=factor")
|
| 143 |
+
height = round((height * factor) / width)
|
| 144 |
+
width = factor
|
| 145 |
+
|
| 146 |
+
if max(height, width) / min(height, width) > 200:
|
| 147 |
+
raise ValueError(
|
| 148 |
+
f"absolute aspect ratio must be smaller than 200, got {max(height, width) / min(height, width)}"
|
| 149 |
+
)
|
| 150 |
+
h_bar = round(height / factor) * factor
|
| 151 |
+
w_bar = round(width / factor) * factor
|
| 152 |
+
if h_bar * w_bar > max_pixels:
|
| 153 |
+
beta = math.sqrt((height * width) / max_pixels)
|
| 154 |
+
h_bar = math.floor(height / beta / factor) * factor
|
| 155 |
+
w_bar = math.floor(width / beta / factor) * factor
|
| 156 |
+
elif h_bar * w_bar < min_pixels:
|
| 157 |
+
beta = math.sqrt(min_pixels / (height * width))
|
| 158 |
+
h_bar = math.ceil(height * beta / factor) * factor
|
| 159 |
+
w_bar = math.ceil(width * beta / factor) * factor
|
| 160 |
+
return h_bar, w_bar
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
class SiglipImageProcessor(BaseImageProcessor):
|
| 164 |
+
r"""
|
| 165 |
+
Constructs a Qwen2-VL image processor that dynamically resizes images based on the original images.
|
| 166 |
+
|
| 167 |
+
Args:
|
| 168 |
+
do_resize (`bool`, *optional*, defaults to `True`):
|
| 169 |
+
Whether to resize the image's (height, width) dimensions.
|
| 170 |
+
resample (`PILImageResampling`, *optional*, defaults to `Resampling.BICUBIC`):
|
| 171 |
+
Resampling filter to use when resizing the image.
|
| 172 |
+
do_rescale (`bool`, *optional*, defaults to `True`):
|
| 173 |
+
Whether to rescale the image by the specified scale `rescale_factor`.
|
| 174 |
+
rescale_factor (`int` or `float`, *optional*, defaults to `1/255`):
|
| 175 |
+
Scale factor to use if rescaling the image.
|
| 176 |
+
do_normalize (`bool`, *optional*, defaults to `True`):
|
| 177 |
+
Whether to normalize the image.
|
| 178 |
+
image_mean (`float` or `List[float]`, *optional*, defaults to `[0.48145466, 0.4578275, 0.40821073]`):
|
| 179 |
+
Mean to use if normalizing the image. This is a float or list of floats for each channel in the image.
|
| 180 |
+
image_std (`float` or `List[float]`, *optional*, defaults to `[0.26862954, 0.26130258, 0.27577711]`):
|
| 181 |
+
Standard deviation to use if normalizing the image. This is a float or list of floats for each channel in the image.
|
| 182 |
+
do_convert_rgb (`bool`, *optional*, defaults to `True`):
|
| 183 |
+
Whether to convert the image to RGB.
|
| 184 |
+
min_pixels (`int`, *optional*, defaults to `56 * 56`):
|
| 185 |
+
The min pixels of the image to resize the image.
|
| 186 |
+
max_pixels (`int`, *optional*, defaults to `28 * 28 * 1280`):
|
| 187 |
+
The max pixels of the image to resize the image.
|
| 188 |
+
patch_size (`int`, *optional*, defaults to 14):
|
| 189 |
+
The spacial patch size of the vision encoder.
|
| 190 |
+
temporal_patch_size (`int`, *optional*, defaults to 2):
|
| 191 |
+
The temporal patch size of the vision encoder.
|
| 192 |
+
merge_size (`int`, *optional*, defaults to 2):
|
| 193 |
+
The merge size of the vision encoder to llm encoder.
|
| 194 |
+
"""
|
| 195 |
+
|
| 196 |
+
model_input_names = ["pixel_values", "image_grid_thw", "pixel_values_videos", "video_grid_thw"]
|
| 197 |
+
|
| 198 |
+
def __init__(
|
| 199 |
+
self,
|
| 200 |
+
do_resize: bool = True,
|
| 201 |
+
resample: PILImageResampling = PILImageResampling.BILINEAR,
|
| 202 |
+
do_rescale: bool = True,
|
| 203 |
+
rescale_factor: Union[int, float] = 1 / 255,
|
| 204 |
+
do_normalize: bool = True,
|
| 205 |
+
image_mean: Optional[Union[float, List[float]]] = None,
|
| 206 |
+
image_std: Optional[Union[float, List[float]]] = None,
|
| 207 |
+
do_convert_rgb: bool = True,
|
| 208 |
+
min_pixels: int = 56 * 56,
|
| 209 |
+
max_pixels: int = 28 * 28 * 1280,
|
| 210 |
+
patch_size: int = 14,
|
| 211 |
+
temporal_patch_size: int = 1,
|
| 212 |
+
merge_size: int = 2,
|
| 213 |
+
**kwargs,
|
| 214 |
+
) -> None:
|
| 215 |
+
super().__init__(**kwargs)
|
| 216 |
+
self.do_resize = do_resize
|
| 217 |
+
self.resample = resample
|
| 218 |
+
self.do_rescale = do_rescale
|
| 219 |
+
self.rescale_factor = rescale_factor
|
| 220 |
+
self.do_normalize = do_normalize
|
| 221 |
+
self.image_mean = image_mean if image_mean is not None else OPENAI_CLIP_MEAN
|
| 222 |
+
self.image_std = image_std if image_std is not None else OPENAI_CLIP_STD
|
| 223 |
+
self.min_pixels = min_pixels
|
| 224 |
+
self.max_pixels = max_pixels
|
| 225 |
+
self.patch_size = patch_size
|
| 226 |
+
self.temporal_patch_size = temporal_patch_size
|
| 227 |
+
self.merge_size = merge_size
|
| 228 |
+
self.size = {"min_pixels": min_pixels, "max_pixels": max_pixels}
|
| 229 |
+
self.do_convert_rgb = do_convert_rgb
|
| 230 |
+
|
| 231 |
+
def mvit_rescale(
|
| 232 |
+
self, image: Image.Image, merge_size: int = 2
|
| 233 |
+
) -> Image.Image:
|
| 234 |
+
try:
|
| 235 |
+
w, h = image.size
|
| 236 |
+
except:
|
| 237 |
+
raise ValueError(str((type(image), image)))
|
| 238 |
+
patch_size = self.patch_size
|
| 239 |
+
|
| 240 |
+
if (w // patch_size) * (h // patch_size) > self.in_token_limit:
|
| 241 |
+
scale = math.sqrt(self.in_token_limit / ((w // patch_size) * (h // patch_size)))
|
| 242 |
+
new_w, new_h = int(w * scale), int(h * scale)
|
| 243 |
+
|
| 244 |
+
image = image.resize((new_w, new_h), Image.Resampling.BILINEAR)
|
| 245 |
+
if self.pad_input:
|
| 246 |
+
new_w, new_h = image.size
|
| 247 |
+
pad_size_h = merge_size * patch_size
|
| 248 |
+
pad_size_w = merge_size * patch_size
|
| 249 |
+
|
| 250 |
+
pad_h = (pad_size_h - new_h % pad_size_h) % pad_size_h
|
| 251 |
+
pad_w = (pad_size_w - new_w % pad_size_w) % pad_size_w
|
| 252 |
+
|
| 253 |
+
image = TF.pad(image, (0, 0, pad_w, pad_h))
|
| 254 |
+
else:
|
| 255 |
+
new_w, new_h = image.size
|
| 256 |
+
new_w = new_w - new_w % patch_size
|
| 257 |
+
new_h = new_h - new_h % patch_size
|
| 258 |
+
|
| 259 |
+
new_w = adjust_size(new_w, patch_size)
|
| 260 |
+
new_h = adjust_size(new_h, patch_size)
|
| 261 |
+
|
| 262 |
+
image = TF.center_crop(image, (new_h, new_w))
|
| 263 |
+
|
| 264 |
+
w, h = image.size
|
| 265 |
+
if w // patch_size >= 512 or h // patch_size >= 512:
|
| 266 |
+
new_h = min(patch_size * 510, h)
|
| 267 |
+
new_w = min(patch_size * 510, w)
|
| 268 |
+
image = TF.center_crop(image, (new_h, new_w))
|
| 269 |
+
#raise ValueError("Exceed pos emb")
|
| 270 |
+
return image
|
| 271 |
+
def _preprocess(
|
| 272 |
+
self,
|
| 273 |
+
images: Union[ImageInput, VideoInput],
|
| 274 |
+
do_resize: bool = None,
|
| 275 |
+
size: Dict[str, int] = None,
|
| 276 |
+
resample: PILImageResampling = None,
|
| 277 |
+
do_rescale: bool = None,
|
| 278 |
+
rescale_factor: float = None,
|
| 279 |
+
do_normalize: bool = None,
|
| 280 |
+
image_mean: Optional[Union[float, List[float]]] = None,
|
| 281 |
+
image_std: Optional[Union[float, List[float]]] = None,
|
| 282 |
+
do_convert_rgb: bool = None,
|
| 283 |
+
data_format: Optional[ChannelDimension] = ChannelDimension.FIRST,
|
| 284 |
+
input_data_format: Optional[Union[str, ChannelDimension]] = None,
|
| 285 |
+
):
|
| 286 |
+
"""
|
| 287 |
+
Preprocess an image or batch of images. Copy of the `preprocess` method from `CLIPImageProcessor`.
|
| 288 |
+
|
| 289 |
+
Args:
|
| 290 |
+
images (`ImageInput`):
|
| 291 |
+
Image or batch of images to preprocess. Expects pixel values ranging from 0 to 255. If pixel values range from 0 to 1, set `do_rescale=False`.
|
| 292 |
+
vision_info (`List[Dict]`, *optional*):
|
| 293 |
+
Optional list of dictionaries containing additional information about vision inputs.
|
| 294 |
+
do_resize (`bool`, *optional*, defaults to `self.do_resize`):
|
| 295 |
+
Whether to resize the image.
|
| 296 |
+
resample (`PILImageResampling`, *optional*, defaults to `self.resample`):
|
| 297 |
+
Resampling filter to use if resizing the image. This can be one of the `PILImageResampling` enums.
|
| 298 |
+
do_rescale (`bool`, *optional*, defaults to `self.do_rescale`):
|
| 299 |
+
Whether to rescale the image.
|
| 300 |
+
rescale_factor (`float`, *optional*, defaults to `self.rescale_factor`):
|
| 301 |
+
Scale factor to use if rescaling the image.
|
| 302 |
+
do_normalize (`bool`, *optional*, defaults to `self.do_normalize`):
|
| 303 |
+
Whether to normalize the image.
|
| 304 |
+
image_mean (`float` or `List[float]`, *optional*, defaults to `self.image_mean`):
|
| 305 |
+
Mean to use if normalizing the image. Can be a float or a list of floats corresponding to the number of channels in the image.
|
| 306 |
+
image_std (`float` or `List[float]`, *optional*, defaults to `self.image_std`):
|
| 307 |
+
Standard deviation to use if normalizing the image. Can be a float or a list of floats corresponding to the number of channels in the image.
|
| 308 |
+
do_convert_rgb (`bool`, *optional*, defaults to `self.do_convert_rgb`):
|
| 309 |
+
Whether to convert the image to RGB.
|
| 310 |
+
data_format (`ChannelDimension`, *optional*, defaults to `ChannelDimension.FIRST`):
|
| 311 |
+
The channel dimension format for the output image. Can be one of:
|
| 312 |
+
- `"channels_first"` or `ChannelDimension.FIRST`: image in (num_channels, height, width) format.
|
| 313 |
+
- `"channels_last"` or `ChannelDimension.LAST`: image in (height, width, num_channels) format.
|
| 314 |
+
- Unset: Use the channel dimension format of the input image.
|
| 315 |
+
input_data_format (`ChannelDimension` or `str`, *optional*):
|
| 316 |
+
The channel dimension format for the input image. Can be one of:
|
| 317 |
+
- `"channels_first"` or `ChannelDimension.FIRST`: image in (num_channels, height, width) format.
|
| 318 |
+
- `"channels_last"` or `ChannelDimension.LAST`: image in (height, width, num_channels) format.
|
| 319 |
+
- `"none"` or `ChannelDimension.NONE`: image in (height, width) format. - `"none"` or `ChannelDimension.NONE`: image in (height, width) format.
|
| 320 |
+
"""
|
| 321 |
+
images = make_list_of_images(images)
|
| 322 |
+
|
| 323 |
+
if do_convert_rgb:
|
| 324 |
+
images = [convert_to_rgb(image) for image in images]
|
| 325 |
+
|
| 326 |
+
# All transformations expect numpy arrays.
|
| 327 |
+
images = [to_numpy_array(image) for image in images]
|
| 328 |
+
|
| 329 |
+
if is_scaled_image(images[0]) and do_rescale:
|
| 330 |
+
logger.warning_once(
|
| 331 |
+
"It looks like you are trying to rescale already rescaled images. If the input"
|
| 332 |
+
" images have pixel values between 0 and 1, set `do_rescale=False` to avoid rescaling them again."
|
| 333 |
+
)
|
| 334 |
+
if input_data_format is None:
|
| 335 |
+
# We assume that all images have the same channel dimension format.
|
| 336 |
+
input_data_format = infer_channel_dimension_format(images[0])
|
| 337 |
+
|
| 338 |
+
height, width = get_image_size(images[0], channel_dim=input_data_format)
|
| 339 |
+
resized_height, resized_width = height, width
|
| 340 |
+
processed_images = []
|
| 341 |
+
for image in images:
|
| 342 |
+
# image = self.mvit_rescale(image, merge_size=self.merge_size)
|
| 343 |
+
if do_resize:
|
| 344 |
+
if size is not None and "height" in size.keys():
|
| 345 |
+
resized_height, resized_width = size["height"], size["width"]
|
| 346 |
+
else:
|
| 347 |
+
resized_height, resized_width = smart_resize(
|
| 348 |
+
height,
|
| 349 |
+
width,
|
| 350 |
+
factor=self.patch_size * self.merge_size,
|
| 351 |
+
min_pixels=self.min_pixels,
|
| 352 |
+
max_pixels=self.max_pixels,
|
| 353 |
+
)
|
| 354 |
+
image = resize(
|
| 355 |
+
image, size=(resized_height, resized_width), resample=resample, input_data_format=input_data_format
|
| 356 |
+
)
|
| 357 |
+
|
| 358 |
+
if do_rescale:
|
| 359 |
+
image = self.rescale(image, scale=rescale_factor, input_data_format=input_data_format)
|
| 360 |
+
|
| 361 |
+
if do_normalize:
|
| 362 |
+
image = self.normalize(
|
| 363 |
+
image=image, mean=image_mean, std=image_std, input_data_format=input_data_format
|
| 364 |
+
)
|
| 365 |
+
|
| 366 |
+
image = to_channel_dimension_format(image, data_format, input_channel_dim=input_data_format)
|
| 367 |
+
processed_images.append(image)
|
| 368 |
+
|
| 369 |
+
patches = np.array(processed_images)
|
| 370 |
+
if data_format == ChannelDimension.LAST:
|
| 371 |
+
patches = patches.transpose(0, 3, 1, 2)
|
| 372 |
+
if patches.shape[0] == 1:
|
| 373 |
+
patches = np.tile(patches, (self.temporal_patch_size, 1, 1, 1))
|
| 374 |
+
init_patches = patches
|
| 375 |
+
channel = patches.shape[1]
|
| 376 |
+
grid_t = patches.shape[0] // self.temporal_patch_size
|
| 377 |
+
grid_h, grid_w = resized_height // self.patch_size, resized_width // self.patch_size
|
| 378 |
+
patches = patches.reshape(
|
| 379 |
+
grid_t,
|
| 380 |
+
self.temporal_patch_size,
|
| 381 |
+
channel,
|
| 382 |
+
grid_h,
|
| 383 |
+
self.patch_size,
|
| 384 |
+
grid_w,
|
| 385 |
+
self.patch_size,
|
| 386 |
+
)
|
| 387 |
+
patches = patches.transpose(0, 3, 5, 2, 1, 4, 6)
|
| 388 |
+
assert self.temporal_patch_size == 1
|
| 389 |
+
flatten_patches = patches.reshape(
|
| 390 |
+
grid_t * grid_h * grid_w, channel, self.patch_size, self.patch_size
|
| 391 |
+
)
|
| 392 |
+
return flatten_patches, (grid_t, grid_h, grid_w)
|
| 393 |
+
|
| 394 |
+
def preprocess(
|
| 395 |
+
self,
|
| 396 |
+
images: ImageInput,
|
| 397 |
+
videos: VideoInput = None,
|
| 398 |
+
do_resize: bool = None,
|
| 399 |
+
size: Dict[str, int] = None,
|
| 400 |
+
resample: PILImageResampling = None,
|
| 401 |
+
do_rescale: bool = None,
|
| 402 |
+
rescale_factor: float = None,
|
| 403 |
+
do_normalize: bool = None,
|
| 404 |
+
image_mean: Optional[Union[float, List[float]]] = None,
|
| 405 |
+
image_std: Optional[Union[float, List[float]]] = None,
|
| 406 |
+
do_convert_rgb: bool = None,
|
| 407 |
+
return_tensors: Optional[Union[str, TensorType]] = None,
|
| 408 |
+
data_format: Optional[ChannelDimension] = ChannelDimension.FIRST,
|
| 409 |
+
input_data_format: Optional[Union[str, ChannelDimension]] = None,
|
| 410 |
+
):
|
| 411 |
+
"""
|
| 412 |
+
Args:
|
| 413 |
+
images (`ImageInput`):
|
| 414 |
+
Image to preprocess. Expects a single or batch of images with pixel values ranging from 0 to 255. If
|
| 415 |
+
passing in images with pixel values between 0 and 1, set `do_rescale=False`.
|
| 416 |
+
videos (`VideoInput`):
|
| 417 |
+
Video to preprocess. Expects a single or batch of videos with pixel values ranging from 0 to 255. If
|
| 418 |
+
passing in videos with pixel values between 0 and 1, set `do_rescale=False`.
|
| 419 |
+
do_resize (`bool`, *optional*, defaults to `self.do_resize`):
|
| 420 |
+
Whether to resize the image.
|
| 421 |
+
size (`Dict[str, int]`, *optional*, defaults to `self.size`):
|
| 422 |
+
Size of the image after resizing. Shortest edge of the image is resized to size["shortest_edge"], with
|
| 423 |
+
the longest edge resized to keep the input aspect ratio.
|
| 424 |
+
resample (`int`, *optional*, defaults to `self.resample`):
|
| 425 |
+
Resampling filter to use if resizing the image. This can be one of the enum `PILImageResampling`. Only
|
| 426 |
+
has an effect if `do_resize` is set to `True`.
|
| 427 |
+
do_rescale (`bool`, *optional*, defaults to `self.do_rescale`):
|
| 428 |
+
Whether to rescale the image.
|
| 429 |
+
rescale_factor (`float`, *optional*, defaults to `self.rescale_factor`):
|
| 430 |
+
Rescale factor to rescale the image by if `do_rescale` is set to `True`.
|
| 431 |
+
do_normalize (`bool`, *optional*, defaults to `self.do_normalize`):
|
| 432 |
+
Whether to normalize the image.
|
| 433 |
+
image_mean (`float` or `List[float]`, *optional*, defaults to `self.image_mean`):
|
| 434 |
+
Image mean to use for normalization. Only has an effect if `do_normalize` is set to `True`.
|
| 435 |
+
image_std (`float` or `List[float]`, *optional*, defaults to `self.image_std`):
|
| 436 |
+
Image standard deviation to use for normalization. Only has an effect if `do_normalize` is set to
|
| 437 |
+
`True`.
|
| 438 |
+
do_convert_rgb (`bool`, *optional*, defaults to `self.do_convert_rgb`):
|
| 439 |
+
Whether to convert the image to RGB.
|
| 440 |
+
return_tensors (`str` or `TensorType`, *optional*):
|
| 441 |
+
The type of tensors to return. Can be one of:
|
| 442 |
+
- Unset: Return a list of `np.ndarray`.
|
| 443 |
+
- `TensorType.TENSORFLOW` or `'tf'`: Return a batch of type `tf.Tensor`.
|
| 444 |
+
- `TensorType.PYTORCH` or `'pt'`: Return a batch of type `torch.Tensor`.
|
| 445 |
+
- `TensorType.NUMPY` or `'np'`: Return a batch of type `np.ndarray`.
|
| 446 |
+
- `TensorType.JAX` or `'jax'`: Return a batch of type `jax.numpy.ndarray`.
|
| 447 |
+
data_format (`ChannelDimension` or `str`, *optional*, defaults to `ChannelDimension.FIRST`):
|
| 448 |
+
The channel dimension format for the output image. Can be one of:
|
| 449 |
+
- `"channels_first"` or `ChannelDimension.FIRST`: image in (num_channels, height, width) format.
|
| 450 |
+
- `"channels_last"` or `ChannelDimension.LAST`: image in (height, width, num_channels) format.
|
| 451 |
+
- Unset: Use the channel dimension format of the input image.
|
| 452 |
+
input_data_format (`ChannelDimension` or `str`, *optional*):
|
| 453 |
+
The channel dimension format for the input image. If unset, the channel dimension format is inferred
|
| 454 |
+
from the input image. Can be one of:
|
| 455 |
+
- `"channels_first"` or `ChannelDimension.FIRST`: image in (num_channels, height, width) format.
|
| 456 |
+
- `"channels_last"` or `ChannelDimension.LAST`: image in (height, width, num_channels) format.
|
| 457 |
+
- `"none"` or `ChannelDimension.NONE`: image in (height, width) format.
|
| 458 |
+
|
| 459 |
+
"""
|
| 460 |
+
do_resize = do_resize if do_resize is not None else self.do_resize
|
| 461 |
+
size = size if size is not None else self.size
|
| 462 |
+
resample = resample if resample is not None else self.resample
|
| 463 |
+
do_rescale = do_rescale if do_rescale is not None else self.do_rescale
|
| 464 |
+
rescale_factor = rescale_factor if rescale_factor is not None else self.rescale_factor
|
| 465 |
+
do_normalize = do_normalize if do_normalize is not None else self.do_normalize
|
| 466 |
+
image_mean = image_mean if image_mean is not None else self.image_mean
|
| 467 |
+
image_std = image_std if image_std is not None else self.image_std
|
| 468 |
+
do_convert_rgb = do_convert_rgb if do_convert_rgb is not None else self.do_convert_rgb
|
| 469 |
+
|
| 470 |
+
if images is not None:
|
| 471 |
+
images = make_batched_images(images)
|
| 472 |
+
if videos is not None:
|
| 473 |
+
videos = make_batched_videos(videos)
|
| 474 |
+
|
| 475 |
+
if images is not None and not valid_images(images):
|
| 476 |
+
raise ValueError(
|
| 477 |
+
"Invalid image type. Must be of type PIL.Image.Image, numpy.ndarray, "
|
| 478 |
+
"torch.Tensor, tf.Tensor or jax.ndarray."
|
| 479 |
+
)
|
| 480 |
+
|
| 481 |
+
validate_preprocess_arguments(
|
| 482 |
+
rescale_factor=rescale_factor,
|
| 483 |
+
do_normalize=do_normalize,
|
| 484 |
+
image_mean=image_mean,
|
| 485 |
+
image_std=image_std,
|
| 486 |
+
do_resize=do_resize,
|
| 487 |
+
size=size,
|
| 488 |
+
resample=resample,
|
| 489 |
+
)
|
| 490 |
+
|
| 491 |
+
if images is not None:
|
| 492 |
+
pixel_values, vision_grid_thws = [], []
|
| 493 |
+
for image in images:
|
| 494 |
+
patches, image_grid_thw = self._preprocess(
|
| 495 |
+
image,
|
| 496 |
+
do_resize=do_resize,
|
| 497 |
+
size = size,
|
| 498 |
+
resample=resample,
|
| 499 |
+
do_rescale=do_rescale,
|
| 500 |
+
rescale_factor=rescale_factor,
|
| 501 |
+
do_normalize=do_normalize,
|
| 502 |
+
image_mean=image_mean,
|
| 503 |
+
image_std=image_std,
|
| 504 |
+
data_format=data_format,
|
| 505 |
+
do_convert_rgb=do_convert_rgb,
|
| 506 |
+
input_data_format=input_data_format,
|
| 507 |
+
)
|
| 508 |
+
pixel_values.extend(patches)
|
| 509 |
+
vision_grid_thws.append(image_grid_thw)
|
| 510 |
+
pixel_values = np.array(pixel_values)
|
| 511 |
+
vision_grid_thws = np.array(vision_grid_thws)
|
| 512 |
+
data = {"pixel_values": pixel_values, "image_grid_thw": vision_grid_thws}
|
| 513 |
+
|
| 514 |
+
if videos is not None:
|
| 515 |
+
pixel_values, vision_grid_thws = [], []
|
| 516 |
+
for images in videos:
|
| 517 |
+
patches, video_grid_thw = self._preprocess(
|
| 518 |
+
images,
|
| 519 |
+
do_resize=do_resize,
|
| 520 |
+
size = size,
|
| 521 |
+
resample=resample,
|
| 522 |
+
do_rescale=do_rescale,
|
| 523 |
+
rescale_factor=rescale_factor,
|
| 524 |
+
do_normalize=do_normalize,
|
| 525 |
+
image_mean=image_mean,
|
| 526 |
+
image_std=image_std,
|
| 527 |
+
data_format=data_format,
|
| 528 |
+
do_convert_rgb=do_convert_rgb,
|
| 529 |
+
input_data_format=input_data_format,
|
| 530 |
+
)
|
| 531 |
+
pixel_values.extend(patches)
|
| 532 |
+
vision_grid_thws.append(video_grid_thw)
|
| 533 |
+
pixel_values = np.array(pixel_values)
|
| 534 |
+
vision_grid_thws = np.array(vision_grid_thws)
|
| 535 |
+
data = {"pixel_values_videos": pixel_values, "video_grid_thw": vision_grid_thws}
|
| 536 |
+
|
| 537 |
+
return BatchFeature(data=data, tensor_type=return_tensors)
|
| 538 |
+
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb83224153d4490234c7399b45634c0718a9cb8b88cb19d249ff295c98a7f06c
|
| 3 |
+
size 5338465192
|
model-00002-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2ed50bc53f931390ad69a8c40ce1e93223e43f75d05ae3639bbdef55638739c
|
| 3 |
+
size 5360574528
|
model-00003-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20a87e78a2e4216952b97b799d9d11b2e1366556d620f689d28f0359a77a02a4
|
| 3 |
+
size 4974687872
|
model-00004-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f35d39f9d2e13d4fde84d15048038c73d476b6acab4da45fc013e42575e8261d
|
| 3 |
+
size 5349379136
|
model-00005-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e6652ec6dd3138d5a8a5deb9098053699bf1a891da54ec216c18294dc8c5bc4
|
| 3 |
+
size 3593236272
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,939 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 24616227552
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"lm_head.weight": "model-00001-of-00005.safetensors",
|
| 7 |
+
"model.model.layers.0.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 8 |
+
"model.model.layers.0.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 9 |
+
"model.model.layers.0.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 10 |
+
"model.model.layers.0.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 11 |
+
"model.model.layers.0.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 12 |
+
"model.model.layers.0.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 13 |
+
"model.model.layers.0.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 14 |
+
"model.model.layers.0.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 15 |
+
"model.model.layers.0.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 16 |
+
"model.model.layers.0.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 17 |
+
"model.model.layers.0.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 18 |
+
"model.model.layers.1.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 19 |
+
"model.model.layers.1.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 20 |
+
"model.model.layers.1.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 21 |
+
"model.model.layers.1.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 22 |
+
"model.model.layers.1.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 23 |
+
"model.model.layers.1.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 24 |
+
"model.model.layers.1.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 25 |
+
"model.model.layers.1.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 26 |
+
"model.model.layers.1.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 27 |
+
"model.model.layers.1.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 28 |
+
"model.model.layers.1.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 29 |
+
"model.model.layers.10.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 30 |
+
"model.model.layers.10.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 31 |
+
"model.model.layers.10.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 32 |
+
"model.model.layers.10.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 33 |
+
"model.model.layers.10.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 34 |
+
"model.model.layers.10.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 35 |
+
"model.model.layers.10.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 36 |
+
"model.model.layers.10.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 37 |
+
"model.model.layers.10.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 38 |
+
"model.model.layers.10.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 39 |
+
"model.model.layers.10.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 40 |
+
"model.model.layers.11.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 41 |
+
"model.model.layers.11.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 42 |
+
"model.model.layers.11.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 43 |
+
"model.model.layers.11.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 44 |
+
"model.model.layers.11.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 45 |
+
"model.model.layers.11.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 46 |
+
"model.model.layers.11.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 47 |
+
"model.model.layers.11.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 48 |
+
"model.model.layers.11.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 49 |
+
"model.model.layers.11.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 50 |
+
"model.model.layers.11.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 51 |
+
"model.model.layers.12.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 52 |
+
"model.model.layers.12.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 53 |
+
"model.model.layers.12.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 54 |
+
"model.model.layers.12.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 55 |
+
"model.model.layers.12.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 56 |
+
"model.model.layers.12.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 57 |
+
"model.model.layers.12.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 58 |
+
"model.model.layers.12.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 59 |
+
"model.model.layers.12.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 60 |
+
"model.model.layers.12.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 61 |
+
"model.model.layers.12.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 62 |
+
"model.model.layers.13.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 63 |
+
"model.model.layers.13.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 64 |
+
"model.model.layers.13.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 65 |
+
"model.model.layers.13.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 66 |
+
"model.model.layers.13.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 67 |
+
"model.model.layers.13.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 68 |
+
"model.model.layers.13.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 69 |
+
"model.model.layers.13.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 70 |
+
"model.model.layers.13.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 71 |
+
"model.model.layers.13.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 72 |
+
"model.model.layers.13.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 73 |
+
"model.model.layers.14.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 74 |
+
"model.model.layers.14.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 75 |
+
"model.model.layers.14.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 76 |
+
"model.model.layers.14.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 77 |
+
"model.model.layers.14.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 78 |
+
"model.model.layers.14.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 79 |
+
"model.model.layers.14.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 80 |
+
"model.model.layers.14.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 81 |
+
"model.model.layers.14.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 82 |
+
"model.model.layers.14.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 83 |
+
"model.model.layers.14.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 84 |
+
"model.model.layers.15.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 85 |
+
"model.model.layers.15.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 86 |
+
"model.model.layers.15.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 87 |
+
"model.model.layers.15.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 88 |
+
"model.model.layers.15.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 89 |
+
"model.model.layers.15.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 90 |
+
"model.model.layers.15.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 91 |
+
"model.model.layers.15.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 92 |
+
"model.model.layers.15.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 93 |
+
"model.model.layers.15.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 94 |
+
"model.model.layers.15.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 95 |
+
"model.model.layers.16.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 96 |
+
"model.model.layers.16.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 97 |
+
"model.model.layers.16.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 98 |
+
"model.model.layers.16.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 99 |
+
"model.model.layers.16.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 100 |
+
"model.model.layers.16.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 101 |
+
"model.model.layers.16.mlp.w1.weight": "model-00001-of-00005.safetensors",
|
| 102 |
+
"model.model.layers.16.mlp.w2.weight": "model-00001-of-00005.safetensors",
|
| 103 |
+
"model.model.layers.16.mlp.w3.weight": "model-00001-of-00005.safetensors",
|
| 104 |
+
"model.model.layers.16.mlp_norm.scale": "model-00001-of-00005.safetensors",
|
| 105 |
+
"model.model.layers.16.sa_norm.scale": "model-00001-of-00005.safetensors",
|
| 106 |
+
"model.model.layers.17.attn.k_norm.scale": "model-00001-of-00005.safetensors",
|
| 107 |
+
"model.model.layers.17.attn.k_proj.weight": "model-00001-of-00005.safetensors",
|
| 108 |
+
"model.model.layers.17.attn.output_proj.weight": "model-00001-of-00005.safetensors",
|
| 109 |
+
"model.model.layers.17.attn.q_norm.scale": "model-00001-of-00005.safetensors",
|
| 110 |
+
"model.model.layers.17.attn.q_proj.weight": "model-00001-of-00005.safetensors",
|
| 111 |
+
"model.model.layers.17.attn.v_proj.weight": "model-00001-of-00005.safetensors",
|
| 112 |
+
"model.model.layers.17.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 113 |
+
"model.model.layers.17.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 114 |
+
"model.model.layers.17.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 115 |
+
"model.model.layers.17.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 116 |
+
"model.model.layers.17.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 117 |
+
"model.model.layers.18.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 118 |
+
"model.model.layers.18.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 119 |
+
"model.model.layers.18.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 120 |
+
"model.model.layers.18.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 121 |
+
"model.model.layers.18.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 122 |
+
"model.model.layers.18.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 123 |
+
"model.model.layers.18.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 124 |
+
"model.model.layers.18.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 125 |
+
"model.model.layers.18.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 126 |
+
"model.model.layers.18.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 127 |
+
"model.model.layers.18.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 128 |
+
"model.model.layers.19.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 129 |
+
"model.model.layers.19.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 130 |
+
"model.model.layers.19.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 131 |
+
"model.model.layers.19.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 132 |
+
"model.model.layers.19.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 133 |
+
"model.model.layers.19.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 134 |
+
"model.model.layers.19.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 135 |
+
"model.model.layers.19.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 136 |
+
"model.model.layers.19.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 137 |
+
"model.model.layers.19.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 138 |
+
"model.model.layers.19.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 139 |
+
"model.model.layers.2.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 140 |
+
"model.model.layers.2.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 141 |
+
"model.model.layers.2.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 142 |
+
"model.model.layers.2.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 143 |
+
"model.model.layers.2.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 144 |
+
"model.model.layers.2.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 145 |
+
"model.model.layers.2.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 146 |
+
"model.model.layers.2.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 147 |
+
"model.model.layers.2.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 148 |
+
"model.model.layers.2.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 149 |
+
"model.model.layers.2.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 150 |
+
"model.model.layers.20.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 151 |
+
"model.model.layers.20.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 152 |
+
"model.model.layers.20.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 153 |
+
"model.model.layers.20.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 154 |
+
"model.model.layers.20.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 155 |
+
"model.model.layers.20.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 156 |
+
"model.model.layers.20.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 157 |
+
"model.model.layers.20.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 158 |
+
"model.model.layers.20.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 159 |
+
"model.model.layers.20.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 160 |
+
"model.model.layers.20.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 161 |
+
"model.model.layers.21.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 162 |
+
"model.model.layers.21.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 163 |
+
"model.model.layers.21.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 164 |
+
"model.model.layers.21.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 165 |
+
"model.model.layers.21.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 166 |
+
"model.model.layers.21.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 167 |
+
"model.model.layers.21.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 168 |
+
"model.model.layers.21.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 169 |
+
"model.model.layers.21.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 170 |
+
"model.model.layers.21.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 171 |
+
"model.model.layers.21.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 172 |
+
"model.model.layers.22.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 173 |
+
"model.model.layers.22.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 174 |
+
"model.model.layers.22.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 175 |
+
"model.model.layers.22.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 176 |
+
"model.model.layers.22.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 177 |
+
"model.model.layers.22.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 178 |
+
"model.model.layers.22.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 179 |
+
"model.model.layers.22.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 180 |
+
"model.model.layers.22.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 181 |
+
"model.model.layers.22.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 182 |
+
"model.model.layers.22.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 183 |
+
"model.model.layers.23.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 184 |
+
"model.model.layers.23.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 185 |
+
"model.model.layers.23.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 186 |
+
"model.model.layers.23.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 187 |
+
"model.model.layers.23.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 188 |
+
"model.model.layers.23.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 189 |
+
"model.model.layers.23.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 190 |
+
"model.model.layers.23.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 191 |
+
"model.model.layers.23.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 192 |
+
"model.model.layers.23.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 193 |
+
"model.model.layers.23.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 194 |
+
"model.model.layers.24.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 195 |
+
"model.model.layers.24.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 196 |
+
"model.model.layers.24.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 197 |
+
"model.model.layers.24.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 198 |
+
"model.model.layers.24.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 199 |
+
"model.model.layers.24.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 200 |
+
"model.model.layers.24.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 201 |
+
"model.model.layers.24.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 202 |
+
"model.model.layers.24.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 203 |
+
"model.model.layers.24.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 204 |
+
"model.model.layers.24.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 205 |
+
"model.model.layers.25.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 206 |
+
"model.model.layers.25.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 207 |
+
"model.model.layers.25.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 208 |
+
"model.model.layers.25.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 209 |
+
"model.model.layers.25.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 210 |
+
"model.model.layers.25.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 211 |
+
"model.model.layers.25.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 212 |
+
"model.model.layers.25.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 213 |
+
"model.model.layers.25.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 214 |
+
"model.model.layers.25.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 215 |
+
"model.model.layers.25.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 216 |
+
"model.model.layers.26.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 217 |
+
"model.model.layers.26.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 218 |
+
"model.model.layers.26.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 219 |
+
"model.model.layers.26.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 220 |
+
"model.model.layers.26.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 221 |
+
"model.model.layers.26.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 222 |
+
"model.model.layers.26.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 223 |
+
"model.model.layers.26.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 224 |
+
"model.model.layers.26.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 225 |
+
"model.model.layers.26.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 226 |
+
"model.model.layers.26.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 227 |
+
"model.model.layers.27.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 228 |
+
"model.model.layers.27.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 229 |
+
"model.model.layers.27.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 230 |
+
"model.model.layers.27.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 231 |
+
"model.model.layers.27.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 232 |
+
"model.model.layers.27.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 233 |
+
"model.model.layers.27.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 234 |
+
"model.model.layers.27.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 235 |
+
"model.model.layers.27.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 236 |
+
"model.model.layers.27.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 237 |
+
"model.model.layers.27.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 238 |
+
"model.model.layers.28.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 239 |
+
"model.model.layers.28.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 240 |
+
"model.model.layers.28.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 241 |
+
"model.model.layers.28.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 242 |
+
"model.model.layers.28.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 243 |
+
"model.model.layers.28.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 244 |
+
"model.model.layers.28.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 245 |
+
"model.model.layers.28.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 246 |
+
"model.model.layers.28.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 247 |
+
"model.model.layers.28.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 248 |
+
"model.model.layers.28.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 249 |
+
"model.model.layers.29.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 250 |
+
"model.model.layers.29.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 251 |
+
"model.model.layers.29.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 252 |
+
"model.model.layers.29.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 253 |
+
"model.model.layers.29.attn.q_proj.weight": "model-00002-of-00005.safetensors",
|
| 254 |
+
"model.model.layers.29.attn.v_proj.weight": "model-00002-of-00005.safetensors",
|
| 255 |
+
"model.model.layers.29.mlp.w1.weight": "model-00002-of-00005.safetensors",
|
| 256 |
+
"model.model.layers.29.mlp.w2.weight": "model-00002-of-00005.safetensors",
|
| 257 |
+
"model.model.layers.29.mlp.w3.weight": "model-00002-of-00005.safetensors",
|
| 258 |
+
"model.model.layers.29.mlp_norm.scale": "model-00002-of-00005.safetensors",
|
| 259 |
+
"model.model.layers.29.sa_norm.scale": "model-00002-of-00005.safetensors",
|
| 260 |
+
"model.model.layers.3.attn.k_norm.scale": "model-00002-of-00005.safetensors",
|
| 261 |
+
"model.model.layers.3.attn.k_proj.weight": "model-00002-of-00005.safetensors",
|
| 262 |
+
"model.model.layers.3.attn.output_proj.weight": "model-00002-of-00005.safetensors",
|
| 263 |
+
"model.model.layers.3.attn.q_norm.scale": "model-00002-of-00005.safetensors",
|
| 264 |
+
"model.model.layers.3.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 265 |
+
"model.model.layers.3.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 266 |
+
"model.model.layers.3.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 267 |
+
"model.model.layers.3.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 268 |
+
"model.model.layers.3.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 269 |
+
"model.model.layers.3.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 270 |
+
"model.model.layers.3.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 271 |
+
"model.model.layers.30.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 272 |
+
"model.model.layers.30.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 273 |
+
"model.model.layers.30.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 274 |
+
"model.model.layers.30.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 275 |
+
"model.model.layers.30.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 276 |
+
"model.model.layers.30.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 277 |
+
"model.model.layers.30.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 278 |
+
"model.model.layers.30.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 279 |
+
"model.model.layers.30.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 280 |
+
"model.model.layers.30.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 281 |
+
"model.model.layers.30.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 282 |
+
"model.model.layers.31.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 283 |
+
"model.model.layers.31.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 284 |
+
"model.model.layers.31.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 285 |
+
"model.model.layers.31.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 286 |
+
"model.model.layers.31.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 287 |
+
"model.model.layers.31.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 288 |
+
"model.model.layers.31.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 289 |
+
"model.model.layers.31.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 290 |
+
"model.model.layers.31.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 291 |
+
"model.model.layers.31.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 292 |
+
"model.model.layers.31.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 293 |
+
"model.model.layers.32.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 294 |
+
"model.model.layers.32.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 295 |
+
"model.model.layers.32.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 296 |
+
"model.model.layers.32.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 297 |
+
"model.model.layers.32.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 298 |
+
"model.model.layers.32.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 299 |
+
"model.model.layers.32.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 300 |
+
"model.model.layers.32.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 301 |
+
"model.model.layers.32.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 302 |
+
"model.model.layers.32.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 303 |
+
"model.model.layers.32.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 304 |
+
"model.model.layers.33.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 305 |
+
"model.model.layers.33.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 306 |
+
"model.model.layers.33.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 307 |
+
"model.model.layers.33.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 308 |
+
"model.model.layers.33.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 309 |
+
"model.model.layers.33.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 310 |
+
"model.model.layers.33.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 311 |
+
"model.model.layers.33.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 312 |
+
"model.model.layers.33.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 313 |
+
"model.model.layers.33.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 314 |
+
"model.model.layers.33.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 315 |
+
"model.model.layers.34.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 316 |
+
"model.model.layers.34.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 317 |
+
"model.model.layers.34.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 318 |
+
"model.model.layers.34.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 319 |
+
"model.model.layers.34.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 320 |
+
"model.model.layers.34.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 321 |
+
"model.model.layers.34.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 322 |
+
"model.model.layers.34.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 323 |
+
"model.model.layers.34.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 324 |
+
"model.model.layers.34.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 325 |
+
"model.model.layers.34.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 326 |
+
"model.model.layers.35.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 327 |
+
"model.model.layers.35.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 328 |
+
"model.model.layers.35.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 329 |
+
"model.model.layers.35.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 330 |
+
"model.model.layers.35.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 331 |
+
"model.model.layers.35.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 332 |
+
"model.model.layers.35.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 333 |
+
"model.model.layers.35.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 334 |
+
"model.model.layers.35.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 335 |
+
"model.model.layers.35.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 336 |
+
"model.model.layers.35.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 337 |
+
"model.model.layers.4.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 338 |
+
"model.model.layers.4.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 339 |
+
"model.model.layers.4.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 340 |
+
"model.model.layers.4.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 341 |
+
"model.model.layers.4.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 342 |
+
"model.model.layers.4.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 343 |
+
"model.model.layers.4.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 344 |
+
"model.model.layers.4.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 345 |
+
"model.model.layers.4.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 346 |
+
"model.model.layers.4.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 347 |
+
"model.model.layers.4.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 348 |
+
"model.model.layers.5.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 349 |
+
"model.model.layers.5.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 350 |
+
"model.model.layers.5.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 351 |
+
"model.model.layers.5.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 352 |
+
"model.model.layers.5.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 353 |
+
"model.model.layers.5.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 354 |
+
"model.model.layers.5.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 355 |
+
"model.model.layers.5.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 356 |
+
"model.model.layers.5.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 357 |
+
"model.model.layers.5.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 358 |
+
"model.model.layers.5.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 359 |
+
"model.model.layers.6.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 360 |
+
"model.model.layers.6.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 361 |
+
"model.model.layers.6.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 362 |
+
"model.model.layers.6.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 363 |
+
"model.model.layers.6.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 364 |
+
"model.model.layers.6.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 365 |
+
"model.model.layers.6.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 366 |
+
"model.model.layers.6.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 367 |
+
"model.model.layers.6.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 368 |
+
"model.model.layers.6.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 369 |
+
"model.model.layers.6.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 370 |
+
"model.model.layers.7.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 371 |
+
"model.model.layers.7.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 372 |
+
"model.model.layers.7.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 373 |
+
"model.model.layers.7.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 374 |
+
"model.model.layers.7.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 375 |
+
"model.model.layers.7.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 376 |
+
"model.model.layers.7.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 377 |
+
"model.model.layers.7.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 378 |
+
"model.model.layers.7.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 379 |
+
"model.model.layers.7.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 380 |
+
"model.model.layers.7.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 381 |
+
"model.model.layers.8.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 382 |
+
"model.model.layers.8.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 383 |
+
"model.model.layers.8.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 384 |
+
"model.model.layers.8.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 385 |
+
"model.model.layers.8.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 386 |
+
"model.model.layers.8.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 387 |
+
"model.model.layers.8.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 388 |
+
"model.model.layers.8.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 389 |
+
"model.model.layers.8.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 390 |
+
"model.model.layers.8.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 391 |
+
"model.model.layers.8.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 392 |
+
"model.model.layers.9.attn.k_norm.scale": "model-00003-of-00005.safetensors",
|
| 393 |
+
"model.model.layers.9.attn.k_proj.weight": "model-00003-of-00005.safetensors",
|
| 394 |
+
"model.model.layers.9.attn.output_proj.weight": "model-00003-of-00005.safetensors",
|
| 395 |
+
"model.model.layers.9.attn.q_norm.scale": "model-00003-of-00005.safetensors",
|
| 396 |
+
"model.model.layers.9.attn.q_proj.weight": "model-00003-of-00005.safetensors",
|
| 397 |
+
"model.model.layers.9.attn.v_proj.weight": "model-00003-of-00005.safetensors",
|
| 398 |
+
"model.model.layers.9.mlp.w1.weight": "model-00003-of-00005.safetensors",
|
| 399 |
+
"model.model.layers.9.mlp.w2.weight": "model-00003-of-00005.safetensors",
|
| 400 |
+
"model.model.layers.9.mlp.w3.weight": "model-00003-of-00005.safetensors",
|
| 401 |
+
"model.model.layers.9.mlp_norm.scale": "model-00003-of-00005.safetensors",
|
| 402 |
+
"model.model.layers.9.sa_norm.scale": "model-00003-of-00005.safetensors",
|
| 403 |
+
"model.model.norm.scale": "model-00003-of-00005.safetensors",
|
| 404 |
+
"model.model.output.weight": "model-00004-of-00005.safetensors",
|
| 405 |
+
"model.model.tok_embeddings.embed_tokens.weight": "model-00004-of-00005.safetensors",
|
| 406 |
+
"model.model.token_head.final_norm.bias": "model-00004-of-00005.safetensors",
|
| 407 |
+
"model.model.token_head.final_norm.weight": "model-00004-of-00005.safetensors",
|
| 408 |
+
"model.model.token_head.input_linear.bias": "model-00004-of-00005.safetensors",
|
| 409 |
+
"model.model.token_head.input_linear.weight": "model-00004-of-00005.safetensors",
|
| 410 |
+
"model.model.token_head.output_linear.bias": "model-00004-of-00005.safetensors",
|
| 411 |
+
"model.model.token_head.output_linear.weight": "model-00004-of-00005.safetensors",
|
| 412 |
+
"model.model.token_head.position_embedding.weight": "model-00004-of-00005.safetensors",
|
| 413 |
+
"model.model.token_head.transformer.layers.0.attn.k_proj.bias": "model-00004-of-00005.safetensors",
|
| 414 |
+
"model.model.token_head.transformer.layers.0.attn.k_proj.weight": "model-00004-of-00005.safetensors",
|
| 415 |
+
"model.model.token_head.transformer.layers.0.attn.output_proj.bias": "model-00004-of-00005.safetensors",
|
| 416 |
+
"model.model.token_head.transformer.layers.0.attn.output_proj.weight": "model-00004-of-00005.safetensors",
|
| 417 |
+
"model.model.token_head.transformer.layers.0.attn.q_proj.bias": "model-00004-of-00005.safetensors",
|
| 418 |
+
"model.model.token_head.transformer.layers.0.attn.q_proj.weight": "model-00004-of-00005.safetensors",
|
| 419 |
+
"model.model.token_head.transformer.layers.0.attn.v_proj.bias": "model-00004-of-00005.safetensors",
|
| 420 |
+
"model.model.token_head.transformer.layers.0.attn.v_proj.weight": "model-00004-of-00005.safetensors",
|
| 421 |
+
"model.model.token_head.transformer.layers.0.mlp.w1.weight": "model-00004-of-00005.safetensors",
|
| 422 |
+
"model.model.token_head.transformer.layers.0.mlp.w2.weight": "model-00004-of-00005.safetensors",
|
| 423 |
+
"model.model.token_head.transformer.layers.0.mlp.w3.weight": "model-00004-of-00005.safetensors",
|
| 424 |
+
"model.model.token_head.transformer.layers.0.mlp_norm.bias": "model-00004-of-00005.safetensors",
|
| 425 |
+
"model.model.token_head.transformer.layers.0.mlp_norm.weight": "model-00004-of-00005.safetensors",
|
| 426 |
+
"model.model.token_head.transformer.layers.0.sa_norm.bias": "model-00004-of-00005.safetensors",
|
| 427 |
+
"model.model.token_head.transformer.layers.0.sa_norm.weight": "model-00004-of-00005.safetensors",
|
| 428 |
+
"visual_tokenizer.encoder.bias": "model-00004-of-00005.safetensors",
|
| 429 |
+
"visual_tokenizer.encoder.weight": "model-00004-of-00005.safetensors",
|
| 430 |
+
"visual_tokenizer.mlp_AR.linear_1.bias": "model-00004-of-00005.safetensors",
|
| 431 |
+
"visual_tokenizer.mlp_AR.linear_1.weight": "model-00004-of-00005.safetensors",
|
| 432 |
+
"visual_tokenizer.mlp_AR.linear_2.bias": "model-00004-of-00005.safetensors",
|
| 433 |
+
"visual_tokenizer.mlp_AR.linear_2.weight": "model-00004-of-00005.safetensors",
|
| 434 |
+
"visual_tokenizer.mlp_AR.pre_norm.bias": "model-00004-of-00005.safetensors",
|
| 435 |
+
"visual_tokenizer.mlp_AR.pre_norm.weight": "model-00004-of-00005.safetensors",
|
| 436 |
+
"visual_tokenizer.quantizer.0.embedding.weight": "model-00004-of-00005.safetensors",
|
| 437 |
+
"visual_tokenizer.quantizer.0.embedding_proj.bias": "model-00004-of-00005.safetensors",
|
| 438 |
+
"visual_tokenizer.quantizer.0.embedding_proj.weight": "model-00004-of-00005.safetensors",
|
| 439 |
+
"visual_tokenizer.quantizer.0.q_norm.bias": "model-00004-of-00005.safetensors",
|
| 440 |
+
"visual_tokenizer.quantizer.0.q_norm.weight": "model-00004-of-00005.safetensors",
|
| 441 |
+
"visual_tokenizer.quantizer.0.z_norm.bias": "model-00004-of-00005.safetensors",
|
| 442 |
+
"visual_tokenizer.quantizer.0.z_norm.weight": "model-00004-of-00005.safetensors",
|
| 443 |
+
"visual_tokenizer.quantizer.1.embedding.weight": "model-00004-of-00005.safetensors",
|
| 444 |
+
"visual_tokenizer.quantizer.1.embedding_proj.bias": "model-00004-of-00005.safetensors",
|
| 445 |
+
"visual_tokenizer.quantizer.1.embedding_proj.weight": "model-00004-of-00005.safetensors",
|
| 446 |
+
"visual_tokenizer.quantizer.1.q_norm.bias": "model-00004-of-00005.safetensors",
|
| 447 |
+
"visual_tokenizer.quantizer.1.q_norm.weight": "model-00004-of-00005.safetensors",
|
| 448 |
+
"visual_tokenizer.quantizer.1.z_norm.bias": "model-00004-of-00005.safetensors",
|
| 449 |
+
"visual_tokenizer.quantizer.1.z_norm.weight": "model-00004-of-00005.safetensors",
|
| 450 |
+
"visual_tokenizer.quantizer.2.embedding.weight": "model-00004-of-00005.safetensors",
|
| 451 |
+
"visual_tokenizer.quantizer.2.embedding_proj.bias": "model-00004-of-00005.safetensors",
|
| 452 |
+
"visual_tokenizer.quantizer.2.embedding_proj.weight": "model-00004-of-00005.safetensors",
|
| 453 |
+
"visual_tokenizer.quantizer.2.q_norm.bias": "model-00004-of-00005.safetensors",
|
| 454 |
+
"visual_tokenizer.quantizer.2.q_norm.weight": "model-00004-of-00005.safetensors",
|
| 455 |
+
"visual_tokenizer.quantizer.2.z_norm.bias": "model-00004-of-00005.safetensors",
|
| 456 |
+
"visual_tokenizer.quantizer.2.z_norm.weight": "model-00004-of-00005.safetensors",
|
| 457 |
+
"visual_tokenizer.quantizer.3.embedding.weight": "model-00005-of-00005.safetensors",
|
| 458 |
+
"visual_tokenizer.quantizer.3.embedding_proj.bias": "model-00005-of-00005.safetensors",
|
| 459 |
+
"visual_tokenizer.quantizer.3.embedding_proj.weight": "model-00005-of-00005.safetensors",
|
| 460 |
+
"visual_tokenizer.quantizer.3.q_norm.bias": "model-00005-of-00005.safetensors",
|
| 461 |
+
"visual_tokenizer.quantizer.3.q_norm.weight": "model-00005-of-00005.safetensors",
|
| 462 |
+
"visual_tokenizer.quantizer.3.z_norm.bias": "model-00005-of-00005.safetensors",
|
| 463 |
+
"visual_tokenizer.quantizer.3.z_norm.weight": "model-00005-of-00005.safetensors",
|
| 464 |
+
"visual_tokenizer.quantizer.4.embedding.weight": "model-00005-of-00005.safetensors",
|
| 465 |
+
"visual_tokenizer.quantizer.4.embedding_proj.bias": "model-00005-of-00005.safetensors",
|
| 466 |
+
"visual_tokenizer.quantizer.4.embedding_proj.weight": "model-00005-of-00005.safetensors",
|
| 467 |
+
"visual_tokenizer.quantizer.4.q_norm.bias": "model-00005-of-00005.safetensors",
|
| 468 |
+
"visual_tokenizer.quantizer.4.q_norm.weight": "model-00005-of-00005.safetensors",
|
| 469 |
+
"visual_tokenizer.quantizer.4.z_norm.bias": "model-00005-of-00005.safetensors",
|
| 470 |
+
"visual_tokenizer.quantizer.4.z_norm.weight": "model-00005-of-00005.safetensors",
|
| 471 |
+
"visual_tokenizer.quantizer.5.embedding.weight": "model-00005-of-00005.safetensors",
|
| 472 |
+
"visual_tokenizer.quantizer.5.embedding_proj.bias": "model-00005-of-00005.safetensors",
|
| 473 |
+
"visual_tokenizer.quantizer.5.embedding_proj.weight": "model-00005-of-00005.safetensors",
|
| 474 |
+
"visual_tokenizer.quantizer.5.q_norm.bias": "model-00005-of-00005.safetensors",
|
| 475 |
+
"visual_tokenizer.quantizer.5.q_norm.weight": "model-00005-of-00005.safetensors",
|
| 476 |
+
"visual_tokenizer.quantizer.5.z_norm.bias": "model-00005-of-00005.safetensors",
|
| 477 |
+
"visual_tokenizer.quantizer.5.z_norm.weight": "model-00005-of-00005.safetensors",
|
| 478 |
+
"visual_tokenizer.quantizer.6.embedding.weight": "model-00005-of-00005.safetensors",
|
| 479 |
+
"visual_tokenizer.quantizer.6.embedding_proj.bias": "model-00005-of-00005.safetensors",
|
| 480 |
+
"visual_tokenizer.quantizer.6.embedding_proj.weight": "model-00005-of-00005.safetensors",
|
| 481 |
+
"visual_tokenizer.quantizer.6.q_norm.bias": "model-00005-of-00005.safetensors",
|
| 482 |
+
"visual_tokenizer.quantizer.6.q_norm.weight": "model-00005-of-00005.safetensors",
|
| 483 |
+
"visual_tokenizer.quantizer.6.z_norm.bias": "model-00005-of-00005.safetensors",
|
| 484 |
+
"visual_tokenizer.quantizer.6.z_norm.weight": "model-00005-of-00005.safetensors",
|
| 485 |
+
"visual_tokenizer.quantizer.7.embedding.weight": "model-00005-of-00005.safetensors",
|
| 486 |
+
"visual_tokenizer.quantizer.7.embedding_proj.bias": "model-00005-of-00005.safetensors",
|
| 487 |
+
"visual_tokenizer.quantizer.7.embedding_proj.weight": "model-00005-of-00005.safetensors",
|
| 488 |
+
"visual_tokenizer.quantizer.7.q_norm.bias": "model-00005-of-00005.safetensors",
|
| 489 |
+
"visual_tokenizer.quantizer.7.q_norm.weight": "model-00005-of-00005.safetensors",
|
| 490 |
+
"visual_tokenizer.quantizer.7.z_norm.bias": "model-00005-of-00005.safetensors",
|
| 491 |
+
"visual_tokenizer.quantizer.7.z_norm.weight": "model-00005-of-00005.safetensors",
|
| 492 |
+
"visual_tokenizer.up_projectors.0.weight": "model-00005-of-00005.safetensors",
|
| 493 |
+
"visual_tokenizer.up_projectors.1.weight": "model-00005-of-00005.safetensors",
|
| 494 |
+
"visual_tokenizer.up_projectors.2.weight": "model-00005-of-00005.safetensors",
|
| 495 |
+
"visual_tokenizer.up_projectors.3.weight": "model-00005-of-00005.safetensors",
|
| 496 |
+
"visual_tokenizer.up_projectors.4.weight": "model-00005-of-00005.safetensors",
|
| 497 |
+
"visual_tokenizer.up_projectors.5.weight": "model-00005-of-00005.safetensors",
|
| 498 |
+
"visual_tokenizer.up_projectors.6.weight": "model-00005-of-00005.safetensors",
|
| 499 |
+
"visual_tokenizer.up_projectors.7.weight": "model-00005-of-00005.safetensors",
|
| 500 |
+
"visual_tokenizer.visual.embeddings.packing_position_embedding.weight": "model-00005-of-00005.safetensors",
|
| 501 |
+
"visual_tokenizer.visual.embeddings.patch_embedding.bias": "model-00005-of-00005.safetensors",
|
| 502 |
+
"visual_tokenizer.visual.embeddings.patch_embedding.weight": "model-00005-of-00005.safetensors",
|
| 503 |
+
"visual_tokenizer.visual.embeddings.position_embedding.weight": "model-00005-of-00005.safetensors",
|
| 504 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 505 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 506 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 507 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 508 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 509 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 510 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 511 |
+
"visual_tokenizer.visual.encoder.layers.0.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 512 |
+
"visual_tokenizer.visual.encoder.layers.0.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 513 |
+
"visual_tokenizer.visual.encoder.layers.0.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 514 |
+
"visual_tokenizer.visual.encoder.layers.0.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 515 |
+
"visual_tokenizer.visual.encoder.layers.0.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 516 |
+
"visual_tokenizer.visual.encoder.layers.0.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 517 |
+
"visual_tokenizer.visual.encoder.layers.0.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 518 |
+
"visual_tokenizer.visual.encoder.layers.0.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 519 |
+
"visual_tokenizer.visual.encoder.layers.0.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 520 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 521 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 522 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 523 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 524 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 525 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 526 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 527 |
+
"visual_tokenizer.visual.encoder.layers.1.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 528 |
+
"visual_tokenizer.visual.encoder.layers.1.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 529 |
+
"visual_tokenizer.visual.encoder.layers.1.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 530 |
+
"visual_tokenizer.visual.encoder.layers.1.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 531 |
+
"visual_tokenizer.visual.encoder.layers.1.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 532 |
+
"visual_tokenizer.visual.encoder.layers.1.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 533 |
+
"visual_tokenizer.visual.encoder.layers.1.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 534 |
+
"visual_tokenizer.visual.encoder.layers.1.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 535 |
+
"visual_tokenizer.visual.encoder.layers.1.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 536 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 537 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 538 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 539 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 540 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 541 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 542 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 543 |
+
"visual_tokenizer.visual.encoder.layers.10.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 544 |
+
"visual_tokenizer.visual.encoder.layers.10.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 545 |
+
"visual_tokenizer.visual.encoder.layers.10.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 546 |
+
"visual_tokenizer.visual.encoder.layers.10.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 547 |
+
"visual_tokenizer.visual.encoder.layers.10.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 548 |
+
"visual_tokenizer.visual.encoder.layers.10.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 549 |
+
"visual_tokenizer.visual.encoder.layers.10.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 550 |
+
"visual_tokenizer.visual.encoder.layers.10.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 551 |
+
"visual_tokenizer.visual.encoder.layers.10.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 552 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 553 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 554 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 555 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 556 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 557 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 558 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 559 |
+
"visual_tokenizer.visual.encoder.layers.11.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 560 |
+
"visual_tokenizer.visual.encoder.layers.11.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 561 |
+
"visual_tokenizer.visual.encoder.layers.11.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 562 |
+
"visual_tokenizer.visual.encoder.layers.11.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 563 |
+
"visual_tokenizer.visual.encoder.layers.11.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 564 |
+
"visual_tokenizer.visual.encoder.layers.11.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 565 |
+
"visual_tokenizer.visual.encoder.layers.11.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 566 |
+
"visual_tokenizer.visual.encoder.layers.11.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 567 |
+
"visual_tokenizer.visual.encoder.layers.11.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 568 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 569 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 570 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 571 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 572 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 573 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 574 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 575 |
+
"visual_tokenizer.visual.encoder.layers.12.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 576 |
+
"visual_tokenizer.visual.encoder.layers.12.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 577 |
+
"visual_tokenizer.visual.encoder.layers.12.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 578 |
+
"visual_tokenizer.visual.encoder.layers.12.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 579 |
+
"visual_tokenizer.visual.encoder.layers.12.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 580 |
+
"visual_tokenizer.visual.encoder.layers.12.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 581 |
+
"visual_tokenizer.visual.encoder.layers.12.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 582 |
+
"visual_tokenizer.visual.encoder.layers.12.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 583 |
+
"visual_tokenizer.visual.encoder.layers.12.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 584 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 585 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 586 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 587 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 588 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 589 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 590 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 591 |
+
"visual_tokenizer.visual.encoder.layers.13.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 592 |
+
"visual_tokenizer.visual.encoder.layers.13.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 593 |
+
"visual_tokenizer.visual.encoder.layers.13.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 594 |
+
"visual_tokenizer.visual.encoder.layers.13.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 595 |
+
"visual_tokenizer.visual.encoder.layers.13.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 596 |
+
"visual_tokenizer.visual.encoder.layers.13.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 597 |
+
"visual_tokenizer.visual.encoder.layers.13.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 598 |
+
"visual_tokenizer.visual.encoder.layers.13.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 599 |
+
"visual_tokenizer.visual.encoder.layers.13.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 600 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 601 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 602 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 603 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 604 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 605 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 606 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 607 |
+
"visual_tokenizer.visual.encoder.layers.14.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 608 |
+
"visual_tokenizer.visual.encoder.layers.14.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 609 |
+
"visual_tokenizer.visual.encoder.layers.14.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 610 |
+
"visual_tokenizer.visual.encoder.layers.14.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 611 |
+
"visual_tokenizer.visual.encoder.layers.14.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 612 |
+
"visual_tokenizer.visual.encoder.layers.14.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 613 |
+
"visual_tokenizer.visual.encoder.layers.14.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 614 |
+
"visual_tokenizer.visual.encoder.layers.14.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 615 |
+
"visual_tokenizer.visual.encoder.layers.14.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 616 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 617 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 618 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 619 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 620 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 621 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 622 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 623 |
+
"visual_tokenizer.visual.encoder.layers.15.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 624 |
+
"visual_tokenizer.visual.encoder.layers.15.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 625 |
+
"visual_tokenizer.visual.encoder.layers.15.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 626 |
+
"visual_tokenizer.visual.encoder.layers.15.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 627 |
+
"visual_tokenizer.visual.encoder.layers.15.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 628 |
+
"visual_tokenizer.visual.encoder.layers.15.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 629 |
+
"visual_tokenizer.visual.encoder.layers.15.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 630 |
+
"visual_tokenizer.visual.encoder.layers.15.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 631 |
+
"visual_tokenizer.visual.encoder.layers.15.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 632 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 633 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 634 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 635 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 636 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 637 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 638 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 639 |
+
"visual_tokenizer.visual.encoder.layers.16.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 640 |
+
"visual_tokenizer.visual.encoder.layers.16.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 641 |
+
"visual_tokenizer.visual.encoder.layers.16.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 642 |
+
"visual_tokenizer.visual.encoder.layers.16.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 643 |
+
"visual_tokenizer.visual.encoder.layers.16.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 644 |
+
"visual_tokenizer.visual.encoder.layers.16.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 645 |
+
"visual_tokenizer.visual.encoder.layers.16.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 646 |
+
"visual_tokenizer.visual.encoder.layers.16.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 647 |
+
"visual_tokenizer.visual.encoder.layers.16.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 648 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 649 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 650 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 651 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 652 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 653 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 654 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 655 |
+
"visual_tokenizer.visual.encoder.layers.17.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 656 |
+
"visual_tokenizer.visual.encoder.layers.17.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 657 |
+
"visual_tokenizer.visual.encoder.layers.17.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 658 |
+
"visual_tokenizer.visual.encoder.layers.17.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 659 |
+
"visual_tokenizer.visual.encoder.layers.17.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 660 |
+
"visual_tokenizer.visual.encoder.layers.17.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 661 |
+
"visual_tokenizer.visual.encoder.layers.17.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 662 |
+
"visual_tokenizer.visual.encoder.layers.17.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 663 |
+
"visual_tokenizer.visual.encoder.layers.17.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 664 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 665 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 666 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 667 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 668 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 669 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 670 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 671 |
+
"visual_tokenizer.visual.encoder.layers.18.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 672 |
+
"visual_tokenizer.visual.encoder.layers.18.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 673 |
+
"visual_tokenizer.visual.encoder.layers.18.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 674 |
+
"visual_tokenizer.visual.encoder.layers.18.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 675 |
+
"visual_tokenizer.visual.encoder.layers.18.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 676 |
+
"visual_tokenizer.visual.encoder.layers.18.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 677 |
+
"visual_tokenizer.visual.encoder.layers.18.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 678 |
+
"visual_tokenizer.visual.encoder.layers.18.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 679 |
+
"visual_tokenizer.visual.encoder.layers.18.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 680 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 681 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 682 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 683 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 684 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 685 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 686 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 687 |
+
"visual_tokenizer.visual.encoder.layers.19.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 688 |
+
"visual_tokenizer.visual.encoder.layers.19.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 689 |
+
"visual_tokenizer.visual.encoder.layers.19.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 690 |
+
"visual_tokenizer.visual.encoder.layers.19.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 691 |
+
"visual_tokenizer.visual.encoder.layers.19.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 692 |
+
"visual_tokenizer.visual.encoder.layers.19.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 693 |
+
"visual_tokenizer.visual.encoder.layers.19.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 694 |
+
"visual_tokenizer.visual.encoder.layers.19.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 695 |
+
"visual_tokenizer.visual.encoder.layers.19.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 696 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 697 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 698 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 699 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 700 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 701 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 702 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 703 |
+
"visual_tokenizer.visual.encoder.layers.2.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 704 |
+
"visual_tokenizer.visual.encoder.layers.2.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 705 |
+
"visual_tokenizer.visual.encoder.layers.2.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 706 |
+
"visual_tokenizer.visual.encoder.layers.2.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 707 |
+
"visual_tokenizer.visual.encoder.layers.2.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 708 |
+
"visual_tokenizer.visual.encoder.layers.2.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 709 |
+
"visual_tokenizer.visual.encoder.layers.2.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 710 |
+
"visual_tokenizer.visual.encoder.layers.2.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 711 |
+
"visual_tokenizer.visual.encoder.layers.2.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 712 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 713 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 714 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 715 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 716 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 717 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 718 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 719 |
+
"visual_tokenizer.visual.encoder.layers.20.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 720 |
+
"visual_tokenizer.visual.encoder.layers.20.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 721 |
+
"visual_tokenizer.visual.encoder.layers.20.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 722 |
+
"visual_tokenizer.visual.encoder.layers.20.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 723 |
+
"visual_tokenizer.visual.encoder.layers.20.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 724 |
+
"visual_tokenizer.visual.encoder.layers.20.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 725 |
+
"visual_tokenizer.visual.encoder.layers.20.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 726 |
+
"visual_tokenizer.visual.encoder.layers.20.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 727 |
+
"visual_tokenizer.visual.encoder.layers.20.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 728 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 729 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 730 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 731 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 732 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 733 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 734 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 735 |
+
"visual_tokenizer.visual.encoder.layers.21.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 736 |
+
"visual_tokenizer.visual.encoder.layers.21.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 737 |
+
"visual_tokenizer.visual.encoder.layers.21.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 738 |
+
"visual_tokenizer.visual.encoder.layers.21.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 739 |
+
"visual_tokenizer.visual.encoder.layers.21.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 740 |
+
"visual_tokenizer.visual.encoder.layers.21.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 741 |
+
"visual_tokenizer.visual.encoder.layers.21.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 742 |
+
"visual_tokenizer.visual.encoder.layers.21.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 743 |
+
"visual_tokenizer.visual.encoder.layers.21.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 744 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 745 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 746 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 747 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 748 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 749 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 750 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 751 |
+
"visual_tokenizer.visual.encoder.layers.22.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 752 |
+
"visual_tokenizer.visual.encoder.layers.22.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 753 |
+
"visual_tokenizer.visual.encoder.layers.22.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 754 |
+
"visual_tokenizer.visual.encoder.layers.22.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 755 |
+
"visual_tokenizer.visual.encoder.layers.22.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 756 |
+
"visual_tokenizer.visual.encoder.layers.22.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 757 |
+
"visual_tokenizer.visual.encoder.layers.22.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 758 |
+
"visual_tokenizer.visual.encoder.layers.22.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 759 |
+
"visual_tokenizer.visual.encoder.layers.22.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 760 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 761 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 762 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 763 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 764 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 765 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 766 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 767 |
+
"visual_tokenizer.visual.encoder.layers.23.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 768 |
+
"visual_tokenizer.visual.encoder.layers.23.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 769 |
+
"visual_tokenizer.visual.encoder.layers.23.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 770 |
+
"visual_tokenizer.visual.encoder.layers.23.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 771 |
+
"visual_tokenizer.visual.encoder.layers.23.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 772 |
+
"visual_tokenizer.visual.encoder.layers.23.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 773 |
+
"visual_tokenizer.visual.encoder.layers.23.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 774 |
+
"visual_tokenizer.visual.encoder.layers.23.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 775 |
+
"visual_tokenizer.visual.encoder.layers.23.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 776 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 777 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 778 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 779 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 780 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 781 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 782 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 783 |
+
"visual_tokenizer.visual.encoder.layers.24.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 784 |
+
"visual_tokenizer.visual.encoder.layers.24.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 785 |
+
"visual_tokenizer.visual.encoder.layers.24.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 786 |
+
"visual_tokenizer.visual.encoder.layers.24.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 787 |
+
"visual_tokenizer.visual.encoder.layers.24.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 788 |
+
"visual_tokenizer.visual.encoder.layers.24.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 789 |
+
"visual_tokenizer.visual.encoder.layers.24.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 790 |
+
"visual_tokenizer.visual.encoder.layers.24.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 791 |
+
"visual_tokenizer.visual.encoder.layers.24.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 792 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 793 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 794 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 795 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 796 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 797 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 798 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 799 |
+
"visual_tokenizer.visual.encoder.layers.25.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 800 |
+
"visual_tokenizer.visual.encoder.layers.25.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 801 |
+
"visual_tokenizer.visual.encoder.layers.25.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 802 |
+
"visual_tokenizer.visual.encoder.layers.25.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 803 |
+
"visual_tokenizer.visual.encoder.layers.25.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 804 |
+
"visual_tokenizer.visual.encoder.layers.25.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 805 |
+
"visual_tokenizer.visual.encoder.layers.25.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 806 |
+
"visual_tokenizer.visual.encoder.layers.25.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 807 |
+
"visual_tokenizer.visual.encoder.layers.25.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 808 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 809 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 810 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 811 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 812 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 813 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 814 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 815 |
+
"visual_tokenizer.visual.encoder.layers.26.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 816 |
+
"visual_tokenizer.visual.encoder.layers.26.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 817 |
+
"visual_tokenizer.visual.encoder.layers.26.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 818 |
+
"visual_tokenizer.visual.encoder.layers.26.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 819 |
+
"visual_tokenizer.visual.encoder.layers.26.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 820 |
+
"visual_tokenizer.visual.encoder.layers.26.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 821 |
+
"visual_tokenizer.visual.encoder.layers.26.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 822 |
+
"visual_tokenizer.visual.encoder.layers.26.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 823 |
+
"visual_tokenizer.visual.encoder.layers.26.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 824 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 825 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 826 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 827 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 828 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 829 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 830 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 831 |
+
"visual_tokenizer.visual.encoder.layers.3.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 832 |
+
"visual_tokenizer.visual.encoder.layers.3.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 833 |
+
"visual_tokenizer.visual.encoder.layers.3.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 834 |
+
"visual_tokenizer.visual.encoder.layers.3.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 835 |
+
"visual_tokenizer.visual.encoder.layers.3.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 836 |
+
"visual_tokenizer.visual.encoder.layers.3.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 837 |
+
"visual_tokenizer.visual.encoder.layers.3.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 838 |
+
"visual_tokenizer.visual.encoder.layers.3.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 839 |
+
"visual_tokenizer.visual.encoder.layers.3.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 840 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 841 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 842 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 843 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 844 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 845 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 846 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 847 |
+
"visual_tokenizer.visual.encoder.layers.4.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 848 |
+
"visual_tokenizer.visual.encoder.layers.4.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 849 |
+
"visual_tokenizer.visual.encoder.layers.4.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 850 |
+
"visual_tokenizer.visual.encoder.layers.4.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 851 |
+
"visual_tokenizer.visual.encoder.layers.4.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 852 |
+
"visual_tokenizer.visual.encoder.layers.4.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 853 |
+
"visual_tokenizer.visual.encoder.layers.4.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 854 |
+
"visual_tokenizer.visual.encoder.layers.4.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 855 |
+
"visual_tokenizer.visual.encoder.layers.4.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 856 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 857 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 858 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 859 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 860 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 861 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 862 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 863 |
+
"visual_tokenizer.visual.encoder.layers.5.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 864 |
+
"visual_tokenizer.visual.encoder.layers.5.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 865 |
+
"visual_tokenizer.visual.encoder.layers.5.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 866 |
+
"visual_tokenizer.visual.encoder.layers.5.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 867 |
+
"visual_tokenizer.visual.encoder.layers.5.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 868 |
+
"visual_tokenizer.visual.encoder.layers.5.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 869 |
+
"visual_tokenizer.visual.encoder.layers.5.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 870 |
+
"visual_tokenizer.visual.encoder.layers.5.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 871 |
+
"visual_tokenizer.visual.encoder.layers.5.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 872 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 873 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 874 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 875 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 876 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 877 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 878 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 879 |
+
"visual_tokenizer.visual.encoder.layers.6.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 880 |
+
"visual_tokenizer.visual.encoder.layers.6.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 881 |
+
"visual_tokenizer.visual.encoder.layers.6.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 882 |
+
"visual_tokenizer.visual.encoder.layers.6.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 883 |
+
"visual_tokenizer.visual.encoder.layers.6.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 884 |
+
"visual_tokenizer.visual.encoder.layers.6.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 885 |
+
"visual_tokenizer.visual.encoder.layers.6.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 886 |
+
"visual_tokenizer.visual.encoder.layers.6.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 887 |
+
"visual_tokenizer.visual.encoder.layers.6.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 888 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 889 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 890 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 891 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 892 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 893 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 894 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 895 |
+
"visual_tokenizer.visual.encoder.layers.7.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 896 |
+
"visual_tokenizer.visual.encoder.layers.7.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 897 |
+
"visual_tokenizer.visual.encoder.layers.7.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 898 |
+
"visual_tokenizer.visual.encoder.layers.7.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 899 |
+
"visual_tokenizer.visual.encoder.layers.7.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 900 |
+
"visual_tokenizer.visual.encoder.layers.7.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 901 |
+
"visual_tokenizer.visual.encoder.layers.7.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 902 |
+
"visual_tokenizer.visual.encoder.layers.7.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 903 |
+
"visual_tokenizer.visual.encoder.layers.7.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 904 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 905 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 906 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 907 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 908 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 909 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 910 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 911 |
+
"visual_tokenizer.visual.encoder.layers.8.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 912 |
+
"visual_tokenizer.visual.encoder.layers.8.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 913 |
+
"visual_tokenizer.visual.encoder.layers.8.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 914 |
+
"visual_tokenizer.visual.encoder.layers.8.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 915 |
+
"visual_tokenizer.visual.encoder.layers.8.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 916 |
+
"visual_tokenizer.visual.encoder.layers.8.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 917 |
+
"visual_tokenizer.visual.encoder.layers.8.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 918 |
+
"visual_tokenizer.visual.encoder.layers.8.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 919 |
+
"visual_tokenizer.visual.encoder.layers.8.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 920 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.k_proj.bias": "model-00005-of-00005.safetensors",
|
| 921 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.k_proj.weight": "model-00005-of-00005.safetensors",
|
| 922 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.output_proj.bias": "model-00005-of-00005.safetensors",
|
| 923 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.output_proj.weight": "model-00005-of-00005.safetensors",
|
| 924 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.q_proj.bias": "model-00005-of-00005.safetensors",
|
| 925 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.q_proj.weight": "model-00005-of-00005.safetensors",
|
| 926 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.v_proj.bias": "model-00005-of-00005.safetensors",
|
| 927 |
+
"visual_tokenizer.visual.encoder.layers.9.attn.v_proj.weight": "model-00005-of-00005.safetensors",
|
| 928 |
+
"visual_tokenizer.visual.encoder.layers.9.mlp.w1.bias": "model-00005-of-00005.safetensors",
|
| 929 |
+
"visual_tokenizer.visual.encoder.layers.9.mlp.w1.weight": "model-00005-of-00005.safetensors",
|
| 930 |
+
"visual_tokenizer.visual.encoder.layers.9.mlp.w2.bias": "model-00005-of-00005.safetensors",
|
| 931 |
+
"visual_tokenizer.visual.encoder.layers.9.mlp.w2.weight": "model-00005-of-00005.safetensors",
|
| 932 |
+
"visual_tokenizer.visual.encoder.layers.9.mlp_norm.bias": "model-00005-of-00005.safetensors",
|
| 933 |
+
"visual_tokenizer.visual.encoder.layers.9.mlp_norm.weight": "model-00005-of-00005.safetensors",
|
| 934 |
+
"visual_tokenizer.visual.encoder.layers.9.sa_norm.bias": "model-00005-of-00005.safetensors",
|
| 935 |
+
"visual_tokenizer.visual.encoder.layers.9.sa_norm.weight": "model-00005-of-00005.safetensors",
|
| 936 |
+
"visual_tokenizer.visual.ln_post.bias": "model-00005-of-00005.safetensors",
|
| 937 |
+
"visual_tokenizer.visual.ln_post.weight": "model-00005-of-00005.safetensors"
|
| 938 |
+
}
|
| 939 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"auto_map": {
|
| 3 |
+
"AutoImageProcessor": "image_processing_keye.SiglipImageProcessor",
|
| 4 |
+
"AutoProcessor": "processing_keye.KeyeProcessor"
|
| 5 |
+
},
|
| 6 |
+
"do_convert_rgb": true,
|
| 7 |
+
"do_normalize": true,
|
| 8 |
+
"do_rescale": true,
|
| 9 |
+
"do_resize": true,
|
| 10 |
+
"image_mean": [
|
| 11 |
+
0.5,
|
| 12 |
+
0.5,
|
| 13 |
+
0.5
|
| 14 |
+
],
|
| 15 |
+
"image_processor_type": "SiglipImageProcessor",
|
| 16 |
+
"image_std": [
|
| 17 |
+
0.5,
|
| 18 |
+
0.5,
|
| 19 |
+
0.5
|
| 20 |
+
],
|
| 21 |
+
"max_pixels": 16056320,
|
| 22 |
+
"merge_size": 2,
|
| 23 |
+
"min_pixels": 3136,
|
| 24 |
+
"patch_size": 14,
|
| 25 |
+
"processor_class": "KeyeProcessor",
|
| 26 |
+
"resample": 2,
|
| 27 |
+
"rescale_factor": 0.00392156862745098,
|
| 28 |
+
"size": {
|
| 29 |
+
"max_pixels": 16056320,
|
| 30 |
+
"min_pixels": 3136
|
| 31 |
+
},
|
| 32 |
+
"temporal_patch_size": 1
|
| 33 |
+
}
|
processing_keye.py
ADDED
|
@@ -0,0 +1,391 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
|
| 3 |
+
# This file was automatically generated from src/transformers/models/Keye/modular_Keye.py.
|
| 4 |
+
# Do NOT edit this file manually as any edits will be overwritten by the generation of
|
| 5 |
+
# the file from the modular. If any change should be done, please apply the change to the
|
| 6 |
+
# modular_Keye.py file directly. One of our CI enforces this.
|
| 7 |
+
# 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
|
| 8 |
+
# coding=utf-8
|
| 9 |
+
# Copyright 2025 The Qwen Team and The HuggingFace Inc. team. All rights reserved.
|
| 10 |
+
#
|
| 11 |
+
# This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX
|
| 12 |
+
# and OPT implementations in this library. It has been modified from its
|
| 13 |
+
# original forms to accommodate minor architectural differences compared
|
| 14 |
+
# to GPT-NeoX and OPT used by the Meta AI team that trained the model.
|
| 15 |
+
#
|
| 16 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 17 |
+
# you may not use this file except in compliance with the License.
|
| 18 |
+
# You may obtain a copy of the License at
|
| 19 |
+
#
|
| 20 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 21 |
+
#
|
| 22 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 23 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 24 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 25 |
+
# See the License for the specific language governing permissions and
|
| 26 |
+
# limitations under the License.
|
| 27 |
+
from typing import List, Union
|
| 28 |
+
import numpy as np
|
| 29 |
+
from transformers.feature_extraction_utils import BatchFeature
|
| 30 |
+
#from transformers.image_utils import ImageInput, VideoInput
|
| 31 |
+
from transformers.processing_utils import ProcessingKwargs, ProcessorMixin, Unpack, VideosKwargs
|
| 32 |
+
from transformers.tokenization_utils_base import PreTokenizedInput, TextInput
|
| 33 |
+
from .image_processing_keye import SiglipImageProcessor
|
| 34 |
+
import torch
|
| 35 |
+
from itertools import chain
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
ImageInput = Union[
|
| 39 |
+
"PIL.Image.Image", np.ndarray, "torch.Tensor", list["PIL.Image.Image"], list[np.ndarray], list["torch.Tensor"]
|
| 40 |
+
] # noqa
|
| 41 |
+
|
| 42 |
+
VideoInput = Union[
|
| 43 |
+
list["PIL.Image.Image"],
|
| 44 |
+
"np.ndarray",
|
| 45 |
+
"torch.Tensor",
|
| 46 |
+
list["np.ndarray"],
|
| 47 |
+
list["torch.Tensor"],
|
| 48 |
+
list[list["PIL.Image.Image"]],
|
| 49 |
+
list[list["np.ndarrray"]],
|
| 50 |
+
list[list["torch.Tensor"]],
|
| 51 |
+
] # noqa
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
class KeyeVideosProcessorKwargs(VideosKwargs, total=False):
|
| 55 |
+
fps: Union[List[float], float]
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
class KeyeProcessorKwargs(ProcessingKwargs, total=False):
|
| 59 |
+
videos_kwargs: KeyeVideosProcessorKwargs
|
| 60 |
+
_defaults = {
|
| 61 |
+
"text_kwargs": {
|
| 62 |
+
"padding": False,
|
| 63 |
+
},
|
| 64 |
+
"videos_kwargs": {"fps": 2.0},
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
class KeyeProcessor(ProcessorMixin):
|
| 69 |
+
r"""
|
| 70 |
+
[`KeyeProcessor`] offers all the functionalities of [`SiglipImageProcessor`] and [`Qwen2TokenizerFast`]. See the
|
| 71 |
+
[`~KeyeProcessor.__call__`] and [`~KeyeProcessor.decode`] for more information.
|
| 72 |
+
Args:
|
| 73 |
+
image_processor ([`SiglipImageProcessor`], *optional*):
|
| 74 |
+
The image processor is a required input.
|
| 75 |
+
tokenizer ([`Qwen2TokenizerFast`], *optional*):
|
| 76 |
+
The tokenizer is a required input.
|
| 77 |
+
chat_template (`str`, *optional*): A Jinja template which will be used to convert lists of messages
|
| 78 |
+
in a chat into a tokenizable string.
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
attributes = ["image_processor", "tokenizer"]
|
| 82 |
+
valid_kwargs = ["chat_template","image_std", "min_pixels", "image_mean", "merge_size", "image_processor_type", "temporal_patch_size", "patch_size", "max_pixels"]
|
| 83 |
+
|
| 84 |
+
image_processor_class = "AutoImageProcessor"
|
| 85 |
+
tokenizer_class = ("Qwen2Tokenizer", "Qwen2TokenizerFast")
|
| 86 |
+
|
| 87 |
+
def __init__(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs):
|
| 88 |
+
self.image_token = "<|image_pad|>" if not hasattr(tokenizer, "image_token") else tokenizer.image_token
|
| 89 |
+
self.vision_start_token = "<|vision_start|>" if not hasattr(tokenizer, "vision_start_token") else tokenizer.vision_start_token
|
| 90 |
+
self.video_token = "<|video_pad|>" if not hasattr(tokenizer, "video_token") else tokenizer.video_token
|
| 91 |
+
self.frame_token = "<|frame|>" if not hasattr(tokenizer, "frame_token") else tokenizer.frame_token
|
| 92 |
+
self.fast_video_token = "<|fast_video_pad|>" if not hasattr(tokenizer, "fast_video_token") else tokenizer.fast_video_token
|
| 93 |
+
self.fast_start = "<|fast_start|>" if not hasattr(tokenizer, "fast_start") else tokenizer.fast_start
|
| 94 |
+
self.fast_end = "<|fast_end|>" if not hasattr(tokenizer, "fast_end") else tokenizer.fast_end
|
| 95 |
+
self.image_info_tag = "<|image_info|>" if not hasattr(tokenizer, "image_info_tag") else tokenizer.image_info_tag
|
| 96 |
+
super().__init__(image_processor, tokenizer, chat_template=chat_template)
|
| 97 |
+
|
| 98 |
+
# self.fast_patch_size = 16
|
| 99 |
+
# self.fast_image_processor = SiglipImageProcessor(patch_size=self.fast_patch_size)
|
| 100 |
+
self.slowfast = True
|
| 101 |
+
|
| 102 |
+
def __call__(
|
| 103 |
+
self,
|
| 104 |
+
images: ImageInput = None,
|
| 105 |
+
text: Union[TextInput, PreTokenizedInput, List[TextInput], List[PreTokenizedInput]] = None,
|
| 106 |
+
videos: VideoInput = None,
|
| 107 |
+
get_resolution_from_cropped_image_size = None,
|
| 108 |
+
**kwargs: Unpack[KeyeProcessorKwargs],
|
| 109 |
+
) -> BatchFeature:
|
| 110 |
+
"""
|
| 111 |
+
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
|
| 112 |
+
and `kwargs` arguments to Qwen2TokenizerFast's [`~Qwen2TokenizerFast.__call__`] if `text` is not `None` to encode
|
| 113 |
+
the text. To prepare the vision inputs, this method forwards the `vision_infos` and `kwrags` arguments to
|
| 114 |
+
SiglipImageProcessor's [`~SiglipImageProcessor.__call__`] if `vision_infos` is not `None`.
|
| 115 |
+
|
| 116 |
+
Args:
|
| 117 |
+
images (`PIL.Image.Image`, `np.ndarray`, `torch.Tensor`, `List[PIL.Image.Image]`, `List[np.ndarray]`, `List[torch.Tensor]`):
|
| 118 |
+
The image or batch of images to be prepared. Each image can be a PIL image, NumPy array or PyTorch
|
| 119 |
+
tensor. Both channels-first and channels-last formats are supported.
|
| 120 |
+
text (`str`, `List[str]`, `List[List[str]]`):
|
| 121 |
+
The sequence or batch of sequences to be encoded. Each sequence can be a string or a list of strings
|
| 122 |
+
(pretokenized string). If the sequences are provided as list of strings (pretokenized), you must set
|
| 123 |
+
`is_split_into_words=True` (to lift the ambiguity with a batch of sequences).
|
| 124 |
+
videos (`np.ndarray`, `torch.Tensor`, `List[np.ndarray]`, `List[torch.Tensor]`):
|
| 125 |
+
The image or batch of videos to be prepared. Each video can be a 4D NumPy array or PyTorch
|
| 126 |
+
tensor, or a nested list of 3D frames. Both channels-first and channels-last formats are supported.
|
| 127 |
+
return_tensors (`str` or [`~utils.TensorType`], *optional*):
|
| 128 |
+
If set, will return tensors of a particular framework. Acceptable values are:
|
| 129 |
+
- `'tf'`: Return TensorFlow `tf.constant` objects.
|
| 130 |
+
- `'pt'`: Return PyTorch `torch.Tensor` objects.
|
| 131 |
+
- `'np'`: Return NumPy `np.ndarray` objects.
|
| 132 |
+
- `'jax'`: Return JAX `jnp.ndarray` objects.
|
| 133 |
+
|
| 134 |
+
Returns:
|
| 135 |
+
[`BatchFeature`]: A [`BatchFeature`] with the following fields:
|
| 136 |
+
|
| 137 |
+
- **input_ids** -- List of token ids to be fed to a model. Returned when `text` is not `None`.
|
| 138 |
+
- **attention_mask** -- List of indices specifying which tokens should be attended to by the model (when
|
| 139 |
+
`return_attention_mask=True` or if *"attention_mask"* is in `self.model_input_names` and if `text` is not
|
| 140 |
+
`None`).
|
| 141 |
+
- **pixel_values** -- Pixel values to be fed to a model. Returned when `images` is not `None`.
|
| 142 |
+
- **pixel_values_videos** -- Pixel values of videos to be fed to a model. Returned when `videos` is not `None`.
|
| 143 |
+
- **image_grid_thw** -- List of image 3D grid in LLM. Returned when `images` is not `None`.
|
| 144 |
+
- **video_grid_thw** -- List of video 3D grid in LLM. Returned when `videos` is not `None`.
|
| 145 |
+
- **second_per_grid_ts** -- List of video seconds per time grid. Returned when `videos` is not `None`.
|
| 146 |
+
"""
|
| 147 |
+
output_kwargs = self._merge_kwargs(
|
| 148 |
+
KeyeProcessorKwargs,
|
| 149 |
+
tokenizer_init_kwargs=self.tokenizer.init_kwargs,
|
| 150 |
+
**kwargs,
|
| 151 |
+
)
|
| 152 |
+
if images is not None:
|
| 153 |
+
slow_images = images
|
| 154 |
+
image_inputs = self.image_processor(images=slow_images, return_tensors="pt")
|
| 155 |
+
image_inputs['pixel_values'] = image_inputs['pixel_values']
|
| 156 |
+
image_grid_thw = image_inputs["image_grid_thw"]
|
| 157 |
+
else:
|
| 158 |
+
image_inputs = {}
|
| 159 |
+
image_grid_thw = None
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
if videos is not None:
|
| 163 |
+
#TODO: add video processing
|
| 164 |
+
all_slow_videos = []
|
| 165 |
+
all_fast_videos = []
|
| 166 |
+
# 这个是因为视频会划分为多张图片,需要在这个地方提前统计好token量,后面就不清楚界限在哪了
|
| 167 |
+
slow_videos_token_nums = [[] for i in range(len(videos))]
|
| 168 |
+
fast_videos_token_nums = [[] for i in range(len(videos))]
|
| 169 |
+
all_position = []
|
| 170 |
+
|
| 171 |
+
for current_index, current_video in enumerate(videos):
|
| 172 |
+
if len(current_video) == 4: # slow_frames, fast_frames, time_position, slow_fast_order, 这里需要注意的是fast_frames,有可能和slow的长度不等,需要靠slow_fast_order来进行识别
|
| 173 |
+
slow_frames, fast_frames, time_position, slow_fast_order = current_video[0], current_video[1], current_video[2], current_video[3]
|
| 174 |
+
all_position.append((time_position, slow_fast_order))
|
| 175 |
+
####### slow part #########
|
| 176 |
+
if slow_frames is not None:
|
| 177 |
+
slow_videos_inputs = self.image_processor(images=None, videos=slow_frames, **output_kwargs["images_kwargs"])
|
| 178 |
+
slow_video_grid_thw = slow_videos_inputs["video_grid_thw"]
|
| 179 |
+
all_slow_videos.append(slow_videos_inputs)
|
| 180 |
+
slow_videos_token_nums[current_index] = slow_video_grid_thw.prod(dim=1).tolist() # 当前这个视频的所有token数
|
| 181 |
+
else:
|
| 182 |
+
all_slow_videos.append(None) # 这样的话,slow_fast_order都是1了,这里应该不会用到的
|
| 183 |
+
slow_videos_token_nums[current_index] = None # 如果全为fast?但目前不存在这种情况
|
| 184 |
+
###########################
|
| 185 |
+
|
| 186 |
+
####### fast part #########
|
| 187 |
+
if self.slowfast:
|
| 188 |
+
if fast_frames is not None:
|
| 189 |
+
fast_videos_inputs = self.image_processor(images=None, videos=fast_frames, **output_kwargs["images_kwargs"])
|
| 190 |
+
fast_video_grid_thw = fast_videos_inputs["video_grid_thw"]
|
| 191 |
+
all_fast_videos.append(fast_videos_inputs)
|
| 192 |
+
fast_videos_token_nums[current_index] = fast_video_grid_thw.prod(dim=1).tolist() # 当前这个视频的fast的所有token数
|
| 193 |
+
else:
|
| 194 |
+
all_fast_videos.append(None) # 如果全为slow
|
| 195 |
+
fast_videos_token_nums[current_index] = None
|
| 196 |
+
###########################
|
| 197 |
+
else:
|
| 198 |
+
slow_frames, fast_frames, slow_fast_order = current_video[0], current_video[1], current_video[2]
|
| 199 |
+
if kwargs.get("image_video_pad", False):
|
| 200 |
+
fast_frames = slow_frames
|
| 201 |
+
slow_fast_order += [1]
|
| 202 |
+
|
| 203 |
+
all_position.append((None, slow_fast_order))
|
| 204 |
+
####### slow part #########
|
| 205 |
+
if slow_frames is not None:
|
| 206 |
+
for each_image in slow_frames:
|
| 207 |
+
if kwargs.get("image_video_pad", False):
|
| 208 |
+
slow_videos_inputs = self.image_processor.preprocess(images=None, videos=[each_image], size = {"height": 28, "width": 28}, **output_kwargs["images_kwargs"])
|
| 209 |
+
else:
|
| 210 |
+
slow_videos_inputs = self.image_processor(images=None, videos=[each_image], **output_kwargs["images_kwargs"])
|
| 211 |
+
slow_video_grid_thw = slow_videos_inputs["video_grid_thw"]
|
| 212 |
+
|
| 213 |
+
all_slow_videos.append(slow_videos_inputs)
|
| 214 |
+
slow_videos_token_nums[current_index].append(slow_video_grid_thw.prod(dim=1).item()) # 这里因为没在前面split开,所以要这么写
|
| 215 |
+
###########################
|
| 216 |
+
else:
|
| 217 |
+
all_slow_videos.append(None) # 这样的话,slow_fast_order都是1了,这里应该不会用到的
|
| 218 |
+
slow_videos_token_nums[current_index] = None # 如果全为fast?但目前不存在这种情况
|
| 219 |
+
|
| 220 |
+
####### fast part #########
|
| 221 |
+
if self.slowfast:
|
| 222 |
+
if fast_frames is not None:
|
| 223 |
+
for each_image in fast_frames:
|
| 224 |
+
if kwargs.get("image_video_pad", False):
|
| 225 |
+
fast_videos_inputs = self.image_processor.preprocess(images=None, videos=[each_image], size = {"height": 28, "width": 28}, **output_kwargs["images_kwargs"])
|
| 226 |
+
else:
|
| 227 |
+
fast_videos_inputs = self.image_processor.preprocess(images=None, videos=[each_image], **output_kwargs["images_kwargs"])
|
| 228 |
+
fast_video_grid_thw = fast_videos_inputs["video_grid_thw"]
|
| 229 |
+
|
| 230 |
+
all_fast_videos.append(fast_videos_inputs)
|
| 231 |
+
fast_videos_token_nums[current_index].append(fast_video_grid_thw.prod(dim=1).item())
|
| 232 |
+
else:
|
| 233 |
+
all_fast_videos.append(None)
|
| 234 |
+
fast_videos_token_nums[current_index] = None
|
| 235 |
+
###########################
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
# todo: zdj debug 多次concat速度会慢很多
|
| 239 |
+
slow_pixel_values_videos_list = [single_slow_video["pixel_values_videos"] for single_slow_video in all_slow_videos if single_slow_video is not None]
|
| 240 |
+
slow_video_grid_thw_list = [single_slow_video["video_grid_thw"] for single_slow_video in all_slow_videos if single_slow_video is not None]
|
| 241 |
+
|
| 242 |
+
total_slow_pixel_values_videos = torch.concat(slow_pixel_values_videos_list, dim=0)
|
| 243 |
+
total_slow_video_grid_thw = torch.concat(slow_video_grid_thw_list, dim=0)
|
| 244 |
+
# todo: zdj debug end
|
| 245 |
+
|
| 246 |
+
if len(total_slow_pixel_values_videos):
|
| 247 |
+
videos_inputs = {
|
| 248 |
+
"pixel_values_videos": total_slow_pixel_values_videos,
|
| 249 |
+
"video_grid_thw": total_slow_video_grid_thw,
|
| 250 |
+
}
|
| 251 |
+
video_grid_thw = videos_inputs["video_grid_thw"]
|
| 252 |
+
else:
|
| 253 |
+
videos_inputs = {}
|
| 254 |
+
video_grid_thw = None
|
| 255 |
+
|
| 256 |
+
if self.slowfast:
|
| 257 |
+
# todo: zdj debug 多次concat速度会慢很多
|
| 258 |
+
fast_pixel_values_videos_list = [single_fast_video["pixel_values_videos"] for single_fast_video in all_fast_videos if single_fast_video is not None]
|
| 259 |
+
fast_video_grid_thw_list = [single_fast_video["video_grid_thw"] for single_fast_video in all_fast_videos if single_fast_video is not None]
|
| 260 |
+
# fast_second_per_grid_ts = torch.tensor(list(chain(*fast_second_per_grid_ts_list)))
|
| 261 |
+
|
| 262 |
+
if len(fast_pixel_values_videos_list):
|
| 263 |
+
videos_inputs["fast_pixel_values_videos"] = torch.concat(fast_pixel_values_videos_list, dim=0)
|
| 264 |
+
videos_inputs["fast_video_grid_thw"] = torch.concat(fast_video_grid_thw_list, dim=0)
|
| 265 |
+
fast_video_grid_thw = videos_inputs["fast_video_grid_thw"]
|
| 266 |
+
else:
|
| 267 |
+
fast_video_grid_thw = None
|
| 268 |
+
|
| 269 |
+
# todo: zdj debug end
|
| 270 |
+
else:
|
| 271 |
+
videos_inputs = {}
|
| 272 |
+
video_grid_thw = None
|
| 273 |
+
fast_video_grid_thw = None
|
| 274 |
+
|
| 275 |
+
|
| 276 |
+
if not isinstance(text, list):
|
| 277 |
+
text = [text]
|
| 278 |
+
|
| 279 |
+
if image_grid_thw is not None:
|
| 280 |
+
index = 0
|
| 281 |
+
for i in range(len(text)):
|
| 282 |
+
while self.image_token in text[i]:
|
| 283 |
+
image_downsample_ratio = self.image_processor.merge_size * self.image_processor.patch_size
|
| 284 |
+
|
| 285 |
+
_, h_merged, w_merged = image_grid_thw[index]// self.image_processor.merge_size
|
| 286 |
+
image_place_holder_tempale = f"{image_downsample_ratio*h_merged.item()},{image_downsample_ratio*w_merged.item()}"
|
| 287 |
+
if get_resolution_from_cropped_image_size is not None:
|
| 288 |
+
raise NotImplementedError
|
| 289 |
+
|
| 290 |
+
image_place_holder_tempale = ""
|
| 291 |
+
|
| 292 |
+
for i_h in range(h_merged.item()):
|
| 293 |
+
image_place_holder_tempale += "<|mm_pos_start|>" + f"{i_h},{w_merged}" + "<|mm_pos_end|>" + "<|placeholder|>" * w_merged
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
text[i] = text[i].replace(
|
| 297 |
+
self.image_token,
|
| 298 |
+
image_place_holder_tempale,
|
| 299 |
+
1,
|
| 300 |
+
)
|
| 301 |
+
index += 1
|
| 302 |
+
text[i] = text[i].replace("<|placeholder|>", self.image_token)
|
| 303 |
+
# text[0].count("<|placeholder|>")
|
| 304 |
+
|
| 305 |
+
if video_grid_thw is not None or fast_video_grid_thw is not None:
|
| 306 |
+
index = 0
|
| 307 |
+
for i in range(len(text)):
|
| 308 |
+
while self.video_token in text[i]:
|
| 309 |
+
video_place_holder_tempale = ""
|
| 310 |
+
slow_index = 0
|
| 311 |
+
fast_index = 0
|
| 312 |
+
for j in range(len(all_position[index][1])):
|
| 313 |
+
if all_position[index][0] is not None: # 如果有时间戳
|
| 314 |
+
video_place_holder_tempale += self.frame_token + format(all_position[index][0][j], ".1f")
|
| 315 |
+
else:
|
| 316 |
+
video_place_holder_tempale += self.frame_token
|
| 317 |
+
|
| 318 |
+
if all_position[index][1][j] == 0: # 当前帧是slow?
|
| 319 |
+
video_place_holder_tempale += "<|placeholder|>" * (slow_videos_token_nums[index][slow_index]//self.image_processor.merge_size//self.image_processor.merge_size)
|
| 320 |
+
slow_index += 1
|
| 321 |
+
elif all_position[index][1][j] == 1: # 当前帧是fast?
|
| 322 |
+
video_place_holder_tempale += self.fast_start + "<|fast_placeholder|>" * (fast_videos_token_nums[index][fast_index]//self.image_processor.merge_size//self.image_processor.merge_size) + self.fast_end
|
| 323 |
+
fast_index += 1
|
| 324 |
+
text[i] = text[i].replace(
|
| 325 |
+
self.video_token,
|
| 326 |
+
video_place_holder_tempale,
|
| 327 |
+
1,
|
| 328 |
+
)
|
| 329 |
+
index += 1
|
| 330 |
+
# self.tokenizer.decode(191678)
|
| 331 |
+
# self.tokenizer.encode("<|fast_video_pad|>")
|
| 332 |
+
text[i] = text[i].replace("<|placeholder|>", self.video_token)
|
| 333 |
+
text[i] = text[i].replace("<|fast_placeholder|>", self.fast_video_token)
|
| 334 |
+
# text[0].count(self.video_token)
|
| 335 |
+
text_inputs = self.tokenizer(text, **output_kwargs["text_kwargs"])
|
| 336 |
+
|
| 337 |
+
return BatchFeature(data={**text_inputs, **image_inputs, **videos_inputs})
|
| 338 |
+
|
| 339 |
+
def batch_decode(self, *args, **kwargs):
|
| 340 |
+
"""
|
| 341 |
+
This method forwards all its arguments to Qwen2TokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please
|
| 342 |
+
refer to the docstring of this method for more information.
|
| 343 |
+
"""
|
| 344 |
+
return self.tokenizer.batch_decode(*args, **kwargs)
|
| 345 |
+
|
| 346 |
+
def decode(self, *args, **kwargs):
|
| 347 |
+
"""
|
| 348 |
+
This method forwards all its arguments to Qwen2TokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to
|
| 349 |
+
the docstring of this method for more information.
|
| 350 |
+
"""
|
| 351 |
+
return self.tokenizer.decode(*args, **kwargs)
|
| 352 |
+
|
| 353 |
+
def post_process_image_text_to_text(
|
| 354 |
+
self, generated_outputs, skip_special_tokens=True, clean_up_tokenization_spaces=False, **kwargs
|
| 355 |
+
):
|
| 356 |
+
"""
|
| 357 |
+
Post-process the output of the model to decode the text.
|
| 358 |
+
|
| 359 |
+
Args:
|
| 360 |
+
generated_outputs (`torch.Tensor` or `np.ndarray`):
|
| 361 |
+
The output of the model `generate` function. The output is expected to be a tensor of shape `(batch_size, sequence_length)`
|
| 362 |
+
or `(sequence_length,)`.
|
| 363 |
+
skip_special_tokens (`bool`, *optional*, defaults to `True`):
|
| 364 |
+
Whether or not to remove special tokens in the output. Argument passed to the tokenizer's `batch_decode` method.
|
| 365 |
+
Clean_up_tokenization_spaces (`bool`, *optional*, defaults to `False`):
|
| 366 |
+
Whether or not to clean up the tokenization spaces. Argument passed to the tokenizer's `batch_decode` method.
|
| 367 |
+
**kwargs:
|
| 368 |
+
Additional arguments to be passed to the tokenizer's `batch_decode method`.
|
| 369 |
+
|
| 370 |
+
Returns:
|
| 371 |
+
`List[str]`: The decoded text.
|
| 372 |
+
"""
|
| 373 |
+
return self.tokenizer.batch_decode(
|
| 374 |
+
generated_outputs,
|
| 375 |
+
skip_special_tokens=skip_special_tokens,
|
| 376 |
+
clean_up_tokenization_spaces=clean_up_tokenization_spaces,
|
| 377 |
+
**kwargs,
|
| 378 |
+
)
|
| 379 |
+
|
| 380 |
+
@property
|
| 381 |
+
def model_input_names(self):
|
| 382 |
+
tokenizer_input_names = self.tokenizer.model_input_names
|
| 383 |
+
image_processor_input_names = self.image_processor.model_input_names
|
| 384 |
+
names_from_processor = list(dict.fromkeys(tokenizer_input_names + image_processor_input_names))
|
| 385 |
+
return names_from_processor + ["second_per_grid_ts"]
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
__all__ = ["KeyeProcessor", "KeyeProcessor_moonvit", "KeyeProcessor"]
|
| 390 |
+
|
| 391 |
+
|
processor_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"auto_map": {
|
| 3 |
+
"AutoProcessor": "processing_keye.KeyeProcessor"
|
| 4 |
+
},
|
| 5 |
+
"processor_class": "KeyeProcessor"
|
| 6 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|vision_start|>",
|
| 6 |
+
"<|vision_end|>",
|
| 7 |
+
"<|vision_pad|>",
|
| 8 |
+
"<|image_pad|>",
|
| 9 |
+
"<|video_pad|>"
|
| 10 |
+
],
|
| 11 |
+
"eos_token": {
|
| 12 |
+
"content": "<|im_end|>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false
|
| 17 |
+
},
|
| 18 |
+
"pad_token": {
|
| 19 |
+
"content": "<|endoftext|>",
|
| 20 |
+
"lstrip": false,
|
| 21 |
+
"normalized": false,
|
| 22 |
+
"rstrip": false,
|
| 23 |
+
"single_word": false
|
| 24 |
+
}
|
| 25 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03fa0e33a395d9d2f682ab62d137f0332be852db8bbddf188ef233bb9d8e7f59
|
| 3 |
+
size 11425552
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": false
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": false
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": false
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": false
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": false
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": false
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
+
},
|
| 213 |
+
"151669": {
|
| 214 |
+
"content": "<|point_start|>",
|
| 215 |
+
"lstrip": false,
|
| 216 |
+
"normalized": false,
|
| 217 |
+
"rstrip": false,
|
| 218 |
+
"single_word": false,
|
| 219 |
+
"special": false
|
| 220 |
+
},
|
| 221 |
+
"151670": {
|
| 222 |
+
"content": "<|point_end|>",
|
| 223 |
+
"lstrip": false,
|
| 224 |
+
"normalized": false,
|
| 225 |
+
"rstrip": false,
|
| 226 |
+
"single_word": false,
|
| 227 |
+
"special": false
|
| 228 |
+
},
|
| 229 |
+
"151671": {
|
| 230 |
+
"content": "<|ocr_text_start|>",
|
| 231 |
+
"lstrip": false,
|
| 232 |
+
"normalized": false,
|
| 233 |
+
"rstrip": false,
|
| 234 |
+
"single_word": false,
|
| 235 |
+
"special": false
|
| 236 |
+
},
|
| 237 |
+
"151672": {
|
| 238 |
+
"content": "<|ocr_text_end|>",
|
| 239 |
+
"lstrip": false,
|
| 240 |
+
"normalized": false,
|
| 241 |
+
"rstrip": false,
|
| 242 |
+
"single_word": false,
|
| 243 |
+
"special": false
|
| 244 |
+
},
|
| 245 |
+
"151673": {
|
| 246 |
+
"content": "<|clip_time_start|>",
|
| 247 |
+
"lstrip": false,
|
| 248 |
+
"normalized": false,
|
| 249 |
+
"rstrip": false,
|
| 250 |
+
"single_word": false,
|
| 251 |
+
"special": false
|
| 252 |
+
},
|
| 253 |
+
"151674": {
|
| 254 |
+
"content": "<|clip_time_end|>",
|
| 255 |
+
"lstrip": false,
|
| 256 |
+
"normalized": false,
|
| 257 |
+
"rstrip": false,
|
| 258 |
+
"single_word": false,
|
| 259 |
+
"special": false
|
| 260 |
+
},
|
| 261 |
+
"151675": {
|
| 262 |
+
"content": "<|polygon_start|>",
|
| 263 |
+
"lstrip": false,
|
| 264 |
+
"normalized": false,
|
| 265 |
+
"rstrip": false,
|
| 266 |
+
"single_word": false,
|
| 267 |
+
"special": false
|
| 268 |
+
},
|
| 269 |
+
"151676": {
|
| 270 |
+
"content": "<|polygon_end|>",
|
| 271 |
+
"lstrip": false,
|
| 272 |
+
"normalized": false,
|
| 273 |
+
"rstrip": false,
|
| 274 |
+
"single_word": false,
|
| 275 |
+
"special": false
|
| 276 |
+
},
|
| 277 |
+
"151677": {
|
| 278 |
+
"content": "<|frame|>",
|
| 279 |
+
"lstrip": false,
|
| 280 |
+
"normalized": false,
|
| 281 |
+
"rstrip": false,
|
| 282 |
+
"single_word": false,
|
| 283 |
+
"special": false
|
| 284 |
+
},
|
| 285 |
+
"151678": {
|
| 286 |
+
"content": "<|fast_video_pad|>",
|
| 287 |
+
"lstrip": false,
|
| 288 |
+
"normalized": false,
|
| 289 |
+
"rstrip": false,
|
| 290 |
+
"single_word": false,
|
| 291 |
+
"special": false
|
| 292 |
+
},
|
| 293 |
+
"151679": {
|
| 294 |
+
"content": "<|fast_start|>",
|
| 295 |
+
"lstrip": false,
|
| 296 |
+
"normalized": false,
|
| 297 |
+
"rstrip": false,
|
| 298 |
+
"single_word": false,
|
| 299 |
+
"special": false
|
| 300 |
+
},
|
| 301 |
+
"151680": {
|
| 302 |
+
"content": "<|fast_end|>",
|
| 303 |
+
"lstrip": false,
|
| 304 |
+
"normalized": false,
|
| 305 |
+
"rstrip": false,
|
| 306 |
+
"single_word": false,
|
| 307 |
+
"special": false
|
| 308 |
+
},
|
| 309 |
+
"151681": {
|
| 310 |
+
"content": "<|q_eos|>",
|
| 311 |
+
"lstrip": false,
|
| 312 |
+
"normalized": false,
|
| 313 |
+
"rstrip": false,
|
| 314 |
+
"single_word": false,
|
| 315 |
+
"special": false
|
| 316 |
+
},
|
| 317 |
+
"151682": {
|
| 318 |
+
"content": "<|mm_pos_start|>",
|
| 319 |
+
"lstrip": false,
|
| 320 |
+
"normalized": false,
|
| 321 |
+
"rstrip": false,
|
| 322 |
+
"single_word": false,
|
| 323 |
+
"special": false
|
| 324 |
+
},
|
| 325 |
+
"151683": {
|
| 326 |
+
"content": "<|mm_pos_end|>",
|
| 327 |
+
"lstrip": false,
|
| 328 |
+
"normalized": false,
|
| 329 |
+
"rstrip": false,
|
| 330 |
+
"single_word": false,
|
| 331 |
+
"special": false
|
| 332 |
+
}
|
| 333 |
+
},
|
| 334 |
+
"additional_special_tokens": [
|
| 335 |
+
"<|im_start|>",
|
| 336 |
+
"<|im_end|>",
|
| 337 |
+
"<|vision_start|>",
|
| 338 |
+
"<|vision_end|>",
|
| 339 |
+
"<|vision_pad|>",
|
| 340 |
+
"<|image_pad|>",
|
| 341 |
+
"<|video_pad|>"
|
| 342 |
+
],
|
| 343 |
+
"auto_map": {
|
| 344 |
+
"AutoProcessor": "processing_keye.KeyeProcessor"
|
| 345 |
+
},
|
| 346 |
+
"bos_token": null,
|
| 347 |
+
"clean_up_tokenization_spaces": false,
|
| 348 |
+
"eos_token": "<|im_end|>",
|
| 349 |
+
"errors": "replace",
|
| 350 |
+
"extra_special_tokens": {},
|
| 351 |
+
"model_max_length": 131072,
|
| 352 |
+
"pad_token": "<|endoftext|>",
|
| 353 |
+
"processor_class": "KeyeProcessor",
|
| 354 |
+
"split_special_tokens": false,
|
| 355 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 356 |
+
"unk_token": null
|
| 357 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|