Upload folder using huggingface_hub
Browse files- .gitattributes +6 -0
- assets/neg_1.jpeg +3 -0
- assets/neg_2.jpeg +3 -0
- assets/positive_1.jpeg +3 -0
- assets/positive_2.jpeg +3 -0
- assets/query_1.png +3 -0
- assets/query_2.png +3 -0
- config.json +50 -0
- generation_config.json +13 -0
- merges.txt +0 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- model.safetensors.index.json +736 -0
- modeling_qwen2vl_for_embedding.py +164 -0
- preprocessor_config.json +19 -0
- tokenizer.json +0 -0
- tokenizer_config.json +129 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,9 @@ 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 |
+
assets/neg_1.jpeg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
assets/neg_2.jpeg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
assets/positive_1.jpeg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
assets/positive_2.jpeg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
assets/query_1.png filter=lfs diff=lfs merge=lfs -text
|
41 |
+
assets/query_2.png filter=lfs diff=lfs merge=lfs -text
|
assets/neg_1.jpeg
ADDED
![]() |
Git LFS Details
|
assets/neg_2.jpeg
ADDED
![]() |
Git LFS Details
|
assets/positive_1.jpeg
ADDED
![]() |
Git LFS Details
|
assets/positive_2.jpeg
ADDED
![]() |
Git LFS Details
|
assets/query_1.png
ADDED
![]() |
Git LFS Details
|
assets/query_2.png
ADDED
![]() |
Git LFS Details
|
config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Qwen2VLForConditionalGeneration"
|
4 |
+
],
|
5 |
+
"auto_map": {
|
6 |
+
"AutoModel": "modeling_qwen2vl_for_embedding.Qwen2VLForEmbedding"
|
7 |
+
},
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bos_token_id": 151643,
|
10 |
+
"eos_token_id": 151645,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 1536,
|
13 |
+
"image_token_id": 151655,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 8960,
|
16 |
+
"max_position_embeddings": 32768,
|
17 |
+
"max_window_layers": 28,
|
18 |
+
"model_type": "qwen2_vl",
|
19 |
+
"num_attention_heads": 12,
|
20 |
+
"num_hidden_layers": 28,
|
21 |
+
"num_key_value_heads": 2,
|
22 |
+
"rms_norm_eps": 1e-06,
|
23 |
+
"rope_scaling": {
|
24 |
+
"mrope_section": [
|
25 |
+
16,
|
26 |
+
24,
|
27 |
+
24
|
28 |
+
],
|
29 |
+
"rope_type": "default",
|
30 |
+
"type": "default"
|
31 |
+
},
|
32 |
+
"rope_theta": 1000000.0,
|
33 |
+
"sliding_window": 32768,
|
34 |
+
"tie_word_embeddings": true,
|
35 |
+
"torch_dtype": "float16",
|
36 |
+
"transformers_version": "4.45.2",
|
37 |
+
"use_cache": true,
|
38 |
+
"use_sliding_window": false,
|
39 |
+
"video_token_id": 151656,
|
40 |
+
"vision_config": {
|
41 |
+
"hidden_size": 1536,
|
42 |
+
"in_chans": 3,
|
43 |
+
"model_type": "qwen2_vl",
|
44 |
+
"spatial_patch_size": 14
|
45 |
+
},
|
46 |
+
"vision_end_token_id": 151653,
|
47 |
+
"vision_start_token_id": 151652,
|
48 |
+
"vision_token_id": 151654,
|
49 |
+
"vocab_size": 151936
|
50 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 151643,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
151645,
|
6 |
+
151643
|
7 |
+
],
|
8 |
+
"pad_token_id": 151643,
|
9 |
+
"temperature": 0.01,
|
10 |
+
"top_k": 1,
|
11 |
+
"top_p": 0.001,
|
12 |
+
"transformers_version": "4.45.2"
|
13 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model-00001-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:95c4ede4b0d96a2b43f843410c45fc975783085920b905c358b6a25e903af83a
|
3 |
+
size 1995539504
|
model-00002-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8433fb9079a5de6c73f1b0ae98598a948d78a0a828428c8752a57213c0a97232
|
3 |
+
size 1993062176
|
model-00003-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f6d04211aee4bf2e9815af5b9354c85156c9d7bc72bbeaeea1b27ab3faff36c5
|
3 |
+
size 429447968
|
model.safetensors.index.json
ADDED
@@ -0,0 +1,736 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"metadata": {
|
3 |
+
"total_size": 4417971200
|
4 |
+
},
|
5 |
+
"weight_map": {
|
6 |
+
"model.embed_tokens.weight": "model-00001-of-00003.safetensors",
|
7 |
+
"model.layers.0.input_layernorm.weight": "model-00001-of-00003.safetensors",
|
8 |
+
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
9 |
+
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
10 |
+
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
11 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00003.safetensors",
|
12 |
+
"model.layers.0.self_attn.k_proj.bias": "model-00001-of-00003.safetensors",
|
13 |
+
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00003.safetensors",
|
14 |
+
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00003.safetensors",
|
15 |
+
"model.layers.0.self_attn.q_proj.bias": "model-00001-of-00003.safetensors",
|
16 |
+
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00003.safetensors",
|
17 |
+
"model.layers.0.self_attn.v_proj.bias": "model-00001-of-00003.safetensors",
|
18 |
+
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00003.safetensors",
|
19 |
+
"model.layers.1.input_layernorm.weight": "model-00001-of-00003.safetensors",
|
20 |
+
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
21 |
+
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
22 |
+
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
23 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00003.safetensors",
|
24 |
+
"model.layers.1.self_attn.k_proj.bias": "model-00001-of-00003.safetensors",
|
25 |
+
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00003.safetensors",
|
26 |
+
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00003.safetensors",
|
27 |
+
"model.layers.1.self_attn.q_proj.bias": "model-00001-of-00003.safetensors",
|
28 |
+
"model.layers.1.self_attn.q_proj.weight": "model-00001-of-00003.safetensors",
|
29 |
+
"model.layers.1.self_attn.v_proj.bias": "model-00001-of-00003.safetensors",
|
30 |
+
"model.layers.1.self_attn.v_proj.weight": "model-00001-of-00003.safetensors",
|
31 |
+
"model.layers.10.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
32 |
+
"model.layers.10.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
33 |
+
"model.layers.10.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
34 |
+
"model.layers.10.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
35 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
36 |
+
"model.layers.10.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
37 |
+
"model.layers.10.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
38 |
+
"model.layers.10.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
39 |
+
"model.layers.10.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
40 |
+
"model.layers.10.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
41 |
+
"model.layers.10.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
42 |
+
"model.layers.10.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
43 |
+
"model.layers.11.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
44 |
+
"model.layers.11.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
45 |
+
"model.layers.11.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
46 |
+
"model.layers.11.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
47 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
48 |
+
"model.layers.11.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
49 |
+
"model.layers.11.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
50 |
+
"model.layers.11.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
51 |
+
"model.layers.11.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
52 |
+
"model.layers.11.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
53 |
+
"model.layers.11.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
54 |
+
"model.layers.11.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
55 |
+
"model.layers.12.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
56 |
+
"model.layers.12.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
57 |
+
"model.layers.12.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
58 |
+
"model.layers.12.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
59 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
60 |
+
"model.layers.12.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
61 |
+
"model.layers.12.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
62 |
+
"model.layers.12.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
63 |
+
"model.layers.12.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
64 |
+
"model.layers.12.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
65 |
+
"model.layers.12.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
66 |
+
"model.layers.12.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
67 |
+
"model.layers.13.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
68 |
+
"model.layers.13.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
69 |
+
"model.layers.13.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
70 |
+
"model.layers.13.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
71 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
72 |
+
"model.layers.13.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
73 |
+
"model.layers.13.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
74 |
+
"model.layers.13.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
75 |
+
"model.layers.13.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
76 |
+
"model.layers.13.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
77 |
+
"model.layers.13.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
78 |
+
"model.layers.13.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
79 |
+
"model.layers.14.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
80 |
+
"model.layers.14.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
81 |
+
"model.layers.14.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
82 |
+
"model.layers.14.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
83 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
84 |
+
"model.layers.14.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
85 |
+
"model.layers.14.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
86 |
+
"model.layers.14.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
87 |
+
"model.layers.14.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
88 |
+
"model.layers.14.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
89 |
+
"model.layers.14.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
90 |
+
"model.layers.14.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
91 |
+
"model.layers.15.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
92 |
+
"model.layers.15.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
93 |
+
"model.layers.15.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
94 |
+
"model.layers.15.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
95 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
96 |
+
"model.layers.15.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
97 |
+
"model.layers.15.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
98 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
99 |
+
"model.layers.15.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
100 |
+
"model.layers.15.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
101 |
+
"model.layers.15.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
102 |
+
"model.layers.15.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
103 |
+
"model.layers.16.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
104 |
+
"model.layers.16.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
105 |
+
"model.layers.16.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
106 |
+
"model.layers.16.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
107 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
108 |
+
"model.layers.16.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
109 |
+
"model.layers.16.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
110 |
+
"model.layers.16.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
111 |
+
"model.layers.16.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
112 |
+
"model.layers.16.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
113 |
+
"model.layers.16.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
114 |
+
"model.layers.16.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
115 |
+
"model.layers.17.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
116 |
+
"model.layers.17.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
117 |
+
"model.layers.17.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
118 |
+
"model.layers.17.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
119 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
120 |
+
"model.layers.17.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
121 |
+
"model.layers.17.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
122 |
+
"model.layers.17.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
123 |
+
"model.layers.17.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
124 |
+
"model.layers.17.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
125 |
+
"model.layers.17.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
126 |
+
"model.layers.17.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
127 |
+
"model.layers.18.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
128 |
+
"model.layers.18.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
129 |
+
"model.layers.18.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
130 |
+
"model.layers.18.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
131 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
132 |
+
"model.layers.18.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
133 |
+
"model.layers.18.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
134 |
+
"model.layers.18.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
135 |
+
"model.layers.18.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
136 |
+
"model.layers.18.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
137 |
+
"model.layers.18.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
138 |
+
"model.layers.18.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
139 |
+
"model.layers.19.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
140 |
+
"model.layers.19.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
141 |
+
"model.layers.19.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
142 |
+
"model.layers.19.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
143 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
144 |
+
"model.layers.19.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
145 |
+
"model.layers.19.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
146 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
147 |
+
"model.layers.19.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
148 |
+
"model.layers.19.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
149 |
+
"model.layers.19.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
150 |
+
"model.layers.19.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
151 |
+
"model.layers.2.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
152 |
+
"model.layers.2.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
153 |
+
"model.layers.2.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
154 |
+
"model.layers.2.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
155 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
156 |
+
"model.layers.2.self_attn.k_proj.bias": "model-00001-of-00003.safetensors",
|
157 |
+
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00003.safetensors",
|
158 |
+
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00003.safetensors",
|
159 |
+
"model.layers.2.self_attn.q_proj.bias": "model-00001-of-00003.safetensors",
|
160 |
+
"model.layers.2.self_attn.q_proj.weight": "model-00001-of-00003.safetensors",
|
161 |
+
"model.layers.2.self_attn.v_proj.bias": "model-00001-of-00003.safetensors",
|
162 |
+
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00003.safetensors",
|
163 |
+
"model.layers.20.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
164 |
+
"model.layers.20.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
165 |
+
"model.layers.20.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
166 |
+
"model.layers.20.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
167 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
168 |
+
"model.layers.20.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
169 |
+
"model.layers.20.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
170 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
171 |
+
"model.layers.20.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
172 |
+
"model.layers.20.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
173 |
+
"model.layers.20.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
174 |
+
"model.layers.20.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
175 |
+
"model.layers.21.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
176 |
+
"model.layers.21.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
177 |
+
"model.layers.21.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
178 |
+
"model.layers.21.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
179 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
180 |
+
"model.layers.21.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
181 |
+
"model.layers.21.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
182 |
+
"model.layers.21.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
183 |
+
"model.layers.21.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
184 |
+
"model.layers.21.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
185 |
+
"model.layers.21.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
186 |
+
"model.layers.21.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
187 |
+
"model.layers.22.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
188 |
+
"model.layers.22.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
189 |
+
"model.layers.22.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
190 |
+
"model.layers.22.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
191 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
192 |
+
"model.layers.22.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
193 |
+
"model.layers.22.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
194 |
+
"model.layers.22.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
195 |
+
"model.layers.22.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
196 |
+
"model.layers.22.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
197 |
+
"model.layers.22.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
198 |
+
"model.layers.22.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
199 |
+
"model.layers.23.input_layernorm.weight": "model-00003-of-00003.safetensors",
|
200 |
+
"model.layers.23.mlp.down_proj.weight": "model-00003-of-00003.safetensors",
|
201 |
+
"model.layers.23.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
202 |
+
"model.layers.23.mlp.up_proj.weight": "model-00003-of-00003.safetensors",
|
203 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00003-of-00003.safetensors",
|
204 |
+
"model.layers.23.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
205 |
+
"model.layers.23.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
206 |
+
"model.layers.23.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
207 |
+
"model.layers.23.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
208 |
+
"model.layers.23.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
209 |
+
"model.layers.23.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
210 |
+
"model.layers.23.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
211 |
+
"model.layers.24.input_layernorm.weight": "model-00003-of-00003.safetensors",
|
212 |
+
"model.layers.24.mlp.down_proj.weight": "model-00003-of-00003.safetensors",
|
213 |
+
"model.layers.24.mlp.gate_proj.weight": "model-00003-of-00003.safetensors",
|
214 |
+
"model.layers.24.mlp.up_proj.weight": "model-00003-of-00003.safetensors",
|
215 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00003-of-00003.safetensors",
|
216 |
+
"model.layers.24.self_attn.k_proj.bias": "model-00003-of-00003.safetensors",
|
217 |
+
"model.layers.24.self_attn.k_proj.weight": "model-00003-of-00003.safetensors",
|
218 |
+
"model.layers.24.self_attn.o_proj.weight": "model-00003-of-00003.safetensors",
|
219 |
+
"model.layers.24.self_attn.q_proj.bias": "model-00003-of-00003.safetensors",
|
220 |
+
"model.layers.24.self_attn.q_proj.weight": "model-00003-of-00003.safetensors",
|
221 |
+
"model.layers.24.self_attn.v_proj.bias": "model-00003-of-00003.safetensors",
|
222 |
+
"model.layers.24.self_attn.v_proj.weight": "model-00003-of-00003.safetensors",
|
223 |
+
"model.layers.25.input_layernorm.weight": "model-00003-of-00003.safetensors",
|
224 |
+
"model.layers.25.mlp.down_proj.weight": "model-00003-of-00003.safetensors",
|
225 |
+
"model.layers.25.mlp.gate_proj.weight": "model-00003-of-00003.safetensors",
|
226 |
+
"model.layers.25.mlp.up_proj.weight": "model-00003-of-00003.safetensors",
|
227 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00003-of-00003.safetensors",
|
228 |
+
"model.layers.25.self_attn.k_proj.bias": "model-00003-of-00003.safetensors",
|
229 |
+
"model.layers.25.self_attn.k_proj.weight": "model-00003-of-00003.safetensors",
|
230 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00003-of-00003.safetensors",
|
231 |
+
"model.layers.25.self_attn.q_proj.bias": "model-00003-of-00003.safetensors",
|
232 |
+
"model.layers.25.self_attn.q_proj.weight": "model-00003-of-00003.safetensors",
|
233 |
+
"model.layers.25.self_attn.v_proj.bias": "model-00003-of-00003.safetensors",
|
234 |
+
"model.layers.25.self_attn.v_proj.weight": "model-00003-of-00003.safetensors",
|
235 |
+
"model.layers.26.input_layernorm.weight": "model-00003-of-00003.safetensors",
|
236 |
+
"model.layers.26.mlp.down_proj.weight": "model-00003-of-00003.safetensors",
|
237 |
+
"model.layers.26.mlp.gate_proj.weight": "model-00003-of-00003.safetensors",
|
238 |
+
"model.layers.26.mlp.up_proj.weight": "model-00003-of-00003.safetensors",
|
239 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00003-of-00003.safetensors",
|
240 |
+
"model.layers.26.self_attn.k_proj.bias": "model-00003-of-00003.safetensors",
|
241 |
+
"model.layers.26.self_attn.k_proj.weight": "model-00003-of-00003.safetensors",
|
242 |
+
"model.layers.26.self_attn.o_proj.weight": "model-00003-of-00003.safetensors",
|
243 |
+
"model.layers.26.self_attn.q_proj.bias": "model-00003-of-00003.safetensors",
|
244 |
+
"model.layers.26.self_attn.q_proj.weight": "model-00003-of-00003.safetensors",
|
245 |
+
"model.layers.26.self_attn.v_proj.bias": "model-00003-of-00003.safetensors",
|
246 |
+
"model.layers.26.self_attn.v_proj.weight": "model-00003-of-00003.safetensors",
|
247 |
+
"model.layers.27.input_layernorm.weight": "model-00003-of-00003.safetensors",
|
248 |
+
"model.layers.27.mlp.down_proj.weight": "model-00003-of-00003.safetensors",
|
249 |
+
"model.layers.27.mlp.gate_proj.weight": "model-00003-of-00003.safetensors",
|
250 |
+
"model.layers.27.mlp.up_proj.weight": "model-00003-of-00003.safetensors",
|
251 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00003-of-00003.safetensors",
|
252 |
+
"model.layers.27.self_attn.k_proj.bias": "model-00003-of-00003.safetensors",
|
253 |
+
"model.layers.27.self_attn.k_proj.weight": "model-00003-of-00003.safetensors",
|
254 |
+
"model.layers.27.self_attn.o_proj.weight": "model-00003-of-00003.safetensors",
|
255 |
+
"model.layers.27.self_attn.q_proj.bias": "model-00003-of-00003.safetensors",
|
256 |
+
"model.layers.27.self_attn.q_proj.weight": "model-00003-of-00003.safetensors",
|
257 |
+
"model.layers.27.self_attn.v_proj.bias": "model-00003-of-00003.safetensors",
|
258 |
+
"model.layers.27.self_attn.v_proj.weight": "model-00003-of-00003.safetensors",
|
259 |
+
"model.layers.3.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
260 |
+
"model.layers.3.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
261 |
+
"model.layers.3.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
262 |
+
"model.layers.3.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
263 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
264 |
+
"model.layers.3.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
265 |
+
"model.layers.3.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
266 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
267 |
+
"model.layers.3.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
268 |
+
"model.layers.3.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
269 |
+
"model.layers.3.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
270 |
+
"model.layers.3.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
271 |
+
"model.layers.4.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
272 |
+
"model.layers.4.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
273 |
+
"model.layers.4.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
274 |
+
"model.layers.4.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
275 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
276 |
+
"model.layers.4.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
277 |
+
"model.layers.4.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
278 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
279 |
+
"model.layers.4.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
280 |
+
"model.layers.4.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
281 |
+
"model.layers.4.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
282 |
+
"model.layers.4.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
283 |
+
"model.layers.5.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
284 |
+
"model.layers.5.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
285 |
+
"model.layers.5.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
286 |
+
"model.layers.5.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
287 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
288 |
+
"model.layers.5.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
289 |
+
"model.layers.5.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
290 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
291 |
+
"model.layers.5.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
292 |
+
"model.layers.5.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
293 |
+
"model.layers.5.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
294 |
+
"model.layers.5.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
295 |
+
"model.layers.6.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
296 |
+
"model.layers.6.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
297 |
+
"model.layers.6.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
298 |
+
"model.layers.6.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
299 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
300 |
+
"model.layers.6.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
301 |
+
"model.layers.6.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
302 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
303 |
+
"model.layers.6.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
304 |
+
"model.layers.6.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
305 |
+
"model.layers.6.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
306 |
+
"model.layers.6.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
307 |
+
"model.layers.7.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
308 |
+
"model.layers.7.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
309 |
+
"model.layers.7.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
310 |
+
"model.layers.7.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
311 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
312 |
+
"model.layers.7.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
313 |
+
"model.layers.7.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
314 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
315 |
+
"model.layers.7.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
316 |
+
"model.layers.7.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
317 |
+
"model.layers.7.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
318 |
+
"model.layers.7.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
319 |
+
"model.layers.8.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
320 |
+
"model.layers.8.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
321 |
+
"model.layers.8.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
322 |
+
"model.layers.8.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
323 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
324 |
+
"model.layers.8.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
325 |
+
"model.layers.8.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
326 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
327 |
+
"model.layers.8.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
328 |
+
"model.layers.8.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
329 |
+
"model.layers.8.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
330 |
+
"model.layers.8.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
331 |
+
"model.layers.9.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
332 |
+
"model.layers.9.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
333 |
+
"model.layers.9.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
334 |
+
"model.layers.9.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
335 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
336 |
+
"model.layers.9.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
337 |
+
"model.layers.9.self_attn.k_proj.weight": "model-00002-of-00003.safetensors",
|
338 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00002-of-00003.safetensors",
|
339 |
+
"model.layers.9.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
340 |
+
"model.layers.9.self_attn.q_proj.weight": "model-00002-of-00003.safetensors",
|
341 |
+
"model.layers.9.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
342 |
+
"model.layers.9.self_attn.v_proj.weight": "model-00002-of-00003.safetensors",
|
343 |
+
"model.norm.weight": "model-00003-of-00003.safetensors",
|
344 |
+
"visual.blocks.0.attn.proj.bias": "model-00001-of-00003.safetensors",
|
345 |
+
"visual.blocks.0.attn.proj.weight": "model-00001-of-00003.safetensors",
|
346 |
+
"visual.blocks.0.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
347 |
+
"visual.blocks.0.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
348 |
+
"visual.blocks.0.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
349 |
+
"visual.blocks.0.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
350 |
+
"visual.blocks.0.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
351 |
+
"visual.blocks.0.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
352 |
+
"visual.blocks.0.norm1.bias": "model-00001-of-00003.safetensors",
|
353 |
+
"visual.blocks.0.norm1.weight": "model-00001-of-00003.safetensors",
|
354 |
+
"visual.blocks.0.norm2.bias": "model-00001-of-00003.safetensors",
|
355 |
+
"visual.blocks.0.norm2.weight": "model-00001-of-00003.safetensors",
|
356 |
+
"visual.blocks.1.attn.proj.bias": "model-00001-of-00003.safetensors",
|
357 |
+
"visual.blocks.1.attn.proj.weight": "model-00001-of-00003.safetensors",
|
358 |
+
"visual.blocks.1.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
359 |
+
"visual.blocks.1.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
360 |
+
"visual.blocks.1.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
361 |
+
"visual.blocks.1.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
362 |
+
"visual.blocks.1.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
363 |
+
"visual.blocks.1.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
364 |
+
"visual.blocks.1.norm1.bias": "model-00001-of-00003.safetensors",
|
365 |
+
"visual.blocks.1.norm1.weight": "model-00001-of-00003.safetensors",
|
366 |
+
"visual.blocks.1.norm2.bias": "model-00001-of-00003.safetensors",
|
367 |
+
"visual.blocks.1.norm2.weight": "model-00001-of-00003.safetensors",
|
368 |
+
"visual.blocks.10.attn.proj.bias": "model-00001-of-00003.safetensors",
|
369 |
+
"visual.blocks.10.attn.proj.weight": "model-00001-of-00003.safetensors",
|
370 |
+
"visual.blocks.10.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
371 |
+
"visual.blocks.10.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
372 |
+
"visual.blocks.10.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
373 |
+
"visual.blocks.10.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
374 |
+
"visual.blocks.10.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
375 |
+
"visual.blocks.10.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
376 |
+
"visual.blocks.10.norm1.bias": "model-00001-of-00003.safetensors",
|
377 |
+
"visual.blocks.10.norm1.weight": "model-00001-of-00003.safetensors",
|
378 |
+
"visual.blocks.10.norm2.bias": "model-00001-of-00003.safetensors",
|
379 |
+
"visual.blocks.10.norm2.weight": "model-00001-of-00003.safetensors",
|
380 |
+
"visual.blocks.11.attn.proj.bias": "model-00001-of-00003.safetensors",
|
381 |
+
"visual.blocks.11.attn.proj.weight": "model-00001-of-00003.safetensors",
|
382 |
+
"visual.blocks.11.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
383 |
+
"visual.blocks.11.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
384 |
+
"visual.blocks.11.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
385 |
+
"visual.blocks.11.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
386 |
+
"visual.blocks.11.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
387 |
+
"visual.blocks.11.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
388 |
+
"visual.blocks.11.norm1.bias": "model-00001-of-00003.safetensors",
|
389 |
+
"visual.blocks.11.norm1.weight": "model-00001-of-00003.safetensors",
|
390 |
+
"visual.blocks.11.norm2.bias": "model-00001-of-00003.safetensors",
|
391 |
+
"visual.blocks.11.norm2.weight": "model-00001-of-00003.safetensors",
|
392 |
+
"visual.blocks.12.attn.proj.bias": "model-00001-of-00003.safetensors",
|
393 |
+
"visual.blocks.12.attn.proj.weight": "model-00001-of-00003.safetensors",
|
394 |
+
"visual.blocks.12.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
395 |
+
"visual.blocks.12.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
396 |
+
"visual.blocks.12.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
397 |
+
"visual.blocks.12.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
398 |
+
"visual.blocks.12.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
399 |
+
"visual.blocks.12.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
400 |
+
"visual.blocks.12.norm1.bias": "model-00001-of-00003.safetensors",
|
401 |
+
"visual.blocks.12.norm1.weight": "model-00001-of-00003.safetensors",
|
402 |
+
"visual.blocks.12.norm2.bias": "model-00001-of-00003.safetensors",
|
403 |
+
"visual.blocks.12.norm2.weight": "model-00001-of-00003.safetensors",
|
404 |
+
"visual.blocks.13.attn.proj.bias": "model-00001-of-00003.safetensors",
|
405 |
+
"visual.blocks.13.attn.proj.weight": "model-00001-of-00003.safetensors",
|
406 |
+
"visual.blocks.13.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
407 |
+
"visual.blocks.13.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
408 |
+
"visual.blocks.13.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
409 |
+
"visual.blocks.13.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
410 |
+
"visual.blocks.13.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
411 |
+
"visual.blocks.13.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
412 |
+
"visual.blocks.13.norm1.bias": "model-00001-of-00003.safetensors",
|
413 |
+
"visual.blocks.13.norm1.weight": "model-00001-of-00003.safetensors",
|
414 |
+
"visual.blocks.13.norm2.bias": "model-00001-of-00003.safetensors",
|
415 |
+
"visual.blocks.13.norm2.weight": "model-00001-of-00003.safetensors",
|
416 |
+
"visual.blocks.14.attn.proj.bias": "model-00001-of-00003.safetensors",
|
417 |
+
"visual.blocks.14.attn.proj.weight": "model-00001-of-00003.safetensors",
|
418 |
+
"visual.blocks.14.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
419 |
+
"visual.blocks.14.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
420 |
+
"visual.blocks.14.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
421 |
+
"visual.blocks.14.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
422 |
+
"visual.blocks.14.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
423 |
+
"visual.blocks.14.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
424 |
+
"visual.blocks.14.norm1.bias": "model-00001-of-00003.safetensors",
|
425 |
+
"visual.blocks.14.norm1.weight": "model-00001-of-00003.safetensors",
|
426 |
+
"visual.blocks.14.norm2.bias": "model-00001-of-00003.safetensors",
|
427 |
+
"visual.blocks.14.norm2.weight": "model-00001-of-00003.safetensors",
|
428 |
+
"visual.blocks.15.attn.proj.bias": "model-00001-of-00003.safetensors",
|
429 |
+
"visual.blocks.15.attn.proj.weight": "model-00001-of-00003.safetensors",
|
430 |
+
"visual.blocks.15.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
431 |
+
"visual.blocks.15.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
432 |
+
"visual.blocks.15.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
433 |
+
"visual.blocks.15.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
434 |
+
"visual.blocks.15.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
435 |
+
"visual.blocks.15.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
436 |
+
"visual.blocks.15.norm1.bias": "model-00001-of-00003.safetensors",
|
437 |
+
"visual.blocks.15.norm1.weight": "model-00001-of-00003.safetensors",
|
438 |
+
"visual.blocks.15.norm2.bias": "model-00001-of-00003.safetensors",
|
439 |
+
"visual.blocks.15.norm2.weight": "model-00001-of-00003.safetensors",
|
440 |
+
"visual.blocks.16.attn.proj.bias": "model-00001-of-00003.safetensors",
|
441 |
+
"visual.blocks.16.attn.proj.weight": "model-00001-of-00003.safetensors",
|
442 |
+
"visual.blocks.16.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
443 |
+
"visual.blocks.16.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
444 |
+
"visual.blocks.16.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
445 |
+
"visual.blocks.16.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
446 |
+
"visual.blocks.16.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
447 |
+
"visual.blocks.16.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
448 |
+
"visual.blocks.16.norm1.bias": "model-00001-of-00003.safetensors",
|
449 |
+
"visual.blocks.16.norm1.weight": "model-00001-of-00003.safetensors",
|
450 |
+
"visual.blocks.16.norm2.bias": "model-00001-of-00003.safetensors",
|
451 |
+
"visual.blocks.16.norm2.weight": "model-00001-of-00003.safetensors",
|
452 |
+
"visual.blocks.17.attn.proj.bias": "model-00001-of-00003.safetensors",
|
453 |
+
"visual.blocks.17.attn.proj.weight": "model-00001-of-00003.safetensors",
|
454 |
+
"visual.blocks.17.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
455 |
+
"visual.blocks.17.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
456 |
+
"visual.blocks.17.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
457 |
+
"visual.blocks.17.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
458 |
+
"visual.blocks.17.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
459 |
+
"visual.blocks.17.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
460 |
+
"visual.blocks.17.norm1.bias": "model-00001-of-00003.safetensors",
|
461 |
+
"visual.blocks.17.norm1.weight": "model-00001-of-00003.safetensors",
|
462 |
+
"visual.blocks.17.norm2.bias": "model-00001-of-00003.safetensors",
|
463 |
+
"visual.blocks.17.norm2.weight": "model-00001-of-00003.safetensors",
|
464 |
+
"visual.blocks.18.attn.proj.bias": "model-00001-of-00003.safetensors",
|
465 |
+
"visual.blocks.18.attn.proj.weight": "model-00001-of-00003.safetensors",
|
466 |
+
"visual.blocks.18.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
467 |
+
"visual.blocks.18.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
468 |
+
"visual.blocks.18.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
469 |
+
"visual.blocks.18.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
470 |
+
"visual.blocks.18.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
471 |
+
"visual.blocks.18.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
472 |
+
"visual.blocks.18.norm1.bias": "model-00001-of-00003.safetensors",
|
473 |
+
"visual.blocks.18.norm1.weight": "model-00001-of-00003.safetensors",
|
474 |
+
"visual.blocks.18.norm2.bias": "model-00001-of-00003.safetensors",
|
475 |
+
"visual.blocks.18.norm2.weight": "model-00001-of-00003.safetensors",
|
476 |
+
"visual.blocks.19.attn.proj.bias": "model-00001-of-00003.safetensors",
|
477 |
+
"visual.blocks.19.attn.proj.weight": "model-00001-of-00003.safetensors",
|
478 |
+
"visual.blocks.19.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
479 |
+
"visual.blocks.19.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
480 |
+
"visual.blocks.19.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
481 |
+
"visual.blocks.19.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
482 |
+
"visual.blocks.19.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
483 |
+
"visual.blocks.19.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
484 |
+
"visual.blocks.19.norm1.bias": "model-00001-of-00003.safetensors",
|
485 |
+
"visual.blocks.19.norm1.weight": "model-00001-of-00003.safetensors",
|
486 |
+
"visual.blocks.19.norm2.bias": "model-00001-of-00003.safetensors",
|
487 |
+
"visual.blocks.19.norm2.weight": "model-00001-of-00003.safetensors",
|
488 |
+
"visual.blocks.2.attn.proj.bias": "model-00001-of-00003.safetensors",
|
489 |
+
"visual.blocks.2.attn.proj.weight": "model-00001-of-00003.safetensors",
|
490 |
+
"visual.blocks.2.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
491 |
+
"visual.blocks.2.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
492 |
+
"visual.blocks.2.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
493 |
+
"visual.blocks.2.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
494 |
+
"visual.blocks.2.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
495 |
+
"visual.blocks.2.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
496 |
+
"visual.blocks.2.norm1.bias": "model-00001-of-00003.safetensors",
|
497 |
+
"visual.blocks.2.norm1.weight": "model-00001-of-00003.safetensors",
|
498 |
+
"visual.blocks.2.norm2.bias": "model-00001-of-00003.safetensors",
|
499 |
+
"visual.blocks.2.norm2.weight": "model-00001-of-00003.safetensors",
|
500 |
+
"visual.blocks.20.attn.proj.bias": "model-00001-of-00003.safetensors",
|
501 |
+
"visual.blocks.20.attn.proj.weight": "model-00001-of-00003.safetensors",
|
502 |
+
"visual.blocks.20.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
503 |
+
"visual.blocks.20.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
504 |
+
"visual.blocks.20.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
505 |
+
"visual.blocks.20.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
506 |
+
"visual.blocks.20.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
507 |
+
"visual.blocks.20.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
508 |
+
"visual.blocks.20.norm1.bias": "model-00001-of-00003.safetensors",
|
509 |
+
"visual.blocks.20.norm1.weight": "model-00001-of-00003.safetensors",
|
510 |
+
"visual.blocks.20.norm2.bias": "model-00001-of-00003.safetensors",
|
511 |
+
"visual.blocks.20.norm2.weight": "model-00001-of-00003.safetensors",
|
512 |
+
"visual.blocks.21.attn.proj.bias": "model-00001-of-00003.safetensors",
|
513 |
+
"visual.blocks.21.attn.proj.weight": "model-00001-of-00003.safetensors",
|
514 |
+
"visual.blocks.21.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
515 |
+
"visual.blocks.21.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
516 |
+
"visual.blocks.21.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
517 |
+
"visual.blocks.21.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
518 |
+
"visual.blocks.21.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
519 |
+
"visual.blocks.21.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
520 |
+
"visual.blocks.21.norm1.bias": "model-00001-of-00003.safetensors",
|
521 |
+
"visual.blocks.21.norm1.weight": "model-00001-of-00003.safetensors",
|
522 |
+
"visual.blocks.21.norm2.bias": "model-00001-of-00003.safetensors",
|
523 |
+
"visual.blocks.21.norm2.weight": "model-00001-of-00003.safetensors",
|
524 |
+
"visual.blocks.22.attn.proj.bias": "model-00001-of-00003.safetensors",
|
525 |
+
"visual.blocks.22.attn.proj.weight": "model-00001-of-00003.safetensors",
|
526 |
+
"visual.blocks.22.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
527 |
+
"visual.blocks.22.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
528 |
+
"visual.blocks.22.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
529 |
+
"visual.blocks.22.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
530 |
+
"visual.blocks.22.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
531 |
+
"visual.blocks.22.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
532 |
+
"visual.blocks.22.norm1.bias": "model-00001-of-00003.safetensors",
|
533 |
+
"visual.blocks.22.norm1.weight": "model-00001-of-00003.safetensors",
|
534 |
+
"visual.blocks.22.norm2.bias": "model-00001-of-00003.safetensors",
|
535 |
+
"visual.blocks.22.norm2.weight": "model-00001-of-00003.safetensors",
|
536 |
+
"visual.blocks.23.attn.proj.bias": "model-00001-of-00003.safetensors",
|
537 |
+
"visual.blocks.23.attn.proj.weight": "model-00001-of-00003.safetensors",
|
538 |
+
"visual.blocks.23.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
539 |
+
"visual.blocks.23.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
540 |
+
"visual.blocks.23.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
541 |
+
"visual.blocks.23.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
542 |
+
"visual.blocks.23.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
543 |
+
"visual.blocks.23.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
544 |
+
"visual.blocks.23.norm1.bias": "model-00001-of-00003.safetensors",
|
545 |
+
"visual.blocks.23.norm1.weight": "model-00001-of-00003.safetensors",
|
546 |
+
"visual.blocks.23.norm2.bias": "model-00001-of-00003.safetensors",
|
547 |
+
"visual.blocks.23.norm2.weight": "model-00001-of-00003.safetensors",
|
548 |
+
"visual.blocks.24.attn.proj.bias": "model-00001-of-00003.safetensors",
|
549 |
+
"visual.blocks.24.attn.proj.weight": "model-00001-of-00003.safetensors",
|
550 |
+
"visual.blocks.24.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
551 |
+
"visual.blocks.24.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
552 |
+
"visual.blocks.24.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
553 |
+
"visual.blocks.24.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
554 |
+
"visual.blocks.24.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
555 |
+
"visual.blocks.24.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
556 |
+
"visual.blocks.24.norm1.bias": "model-00001-of-00003.safetensors",
|
557 |
+
"visual.blocks.24.norm1.weight": "model-00001-of-00003.safetensors",
|
558 |
+
"visual.blocks.24.norm2.bias": "model-00001-of-00003.safetensors",
|
559 |
+
"visual.blocks.24.norm2.weight": "model-00001-of-00003.safetensors",
|
560 |
+
"visual.blocks.25.attn.proj.bias": "model-00001-of-00003.safetensors",
|
561 |
+
"visual.blocks.25.attn.proj.weight": "model-00001-of-00003.safetensors",
|
562 |
+
"visual.blocks.25.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
563 |
+
"visual.blocks.25.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
564 |
+
"visual.blocks.25.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
565 |
+
"visual.blocks.25.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
566 |
+
"visual.blocks.25.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
567 |
+
"visual.blocks.25.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
568 |
+
"visual.blocks.25.norm1.bias": "model-00001-of-00003.safetensors",
|
569 |
+
"visual.blocks.25.norm1.weight": "model-00001-of-00003.safetensors",
|
570 |
+
"visual.blocks.25.norm2.bias": "model-00001-of-00003.safetensors",
|
571 |
+
"visual.blocks.25.norm2.weight": "model-00001-of-00003.safetensors",
|
572 |
+
"visual.blocks.26.attn.proj.bias": "model-00001-of-00003.safetensors",
|
573 |
+
"visual.blocks.26.attn.proj.weight": "model-00001-of-00003.safetensors",
|
574 |
+
"visual.blocks.26.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
575 |
+
"visual.blocks.26.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
576 |
+
"visual.blocks.26.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
577 |
+
"visual.blocks.26.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
578 |
+
"visual.blocks.26.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
579 |
+
"visual.blocks.26.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
580 |
+
"visual.blocks.26.norm1.bias": "model-00001-of-00003.safetensors",
|
581 |
+
"visual.blocks.26.norm1.weight": "model-00001-of-00003.safetensors",
|
582 |
+
"visual.blocks.26.norm2.bias": "model-00001-of-00003.safetensors",
|
583 |
+
"visual.blocks.26.norm2.weight": "model-00001-of-00003.safetensors",
|
584 |
+
"visual.blocks.27.attn.proj.bias": "model-00001-of-00003.safetensors",
|
585 |
+
"visual.blocks.27.attn.proj.weight": "model-00001-of-00003.safetensors",
|
586 |
+
"visual.blocks.27.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
587 |
+
"visual.blocks.27.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
588 |
+
"visual.blocks.27.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
589 |
+
"visual.blocks.27.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
590 |
+
"visual.blocks.27.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
591 |
+
"visual.blocks.27.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
592 |
+
"visual.blocks.27.norm1.bias": "model-00001-of-00003.safetensors",
|
593 |
+
"visual.blocks.27.norm1.weight": "model-00001-of-00003.safetensors",
|
594 |
+
"visual.blocks.27.norm2.bias": "model-00001-of-00003.safetensors",
|
595 |
+
"visual.blocks.27.norm2.weight": "model-00001-of-00003.safetensors",
|
596 |
+
"visual.blocks.28.attn.proj.bias": "model-00001-of-00003.safetensors",
|
597 |
+
"visual.blocks.28.attn.proj.weight": "model-00001-of-00003.safetensors",
|
598 |
+
"visual.blocks.28.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
599 |
+
"visual.blocks.28.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
600 |
+
"visual.blocks.28.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
601 |
+
"visual.blocks.28.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
602 |
+
"visual.blocks.28.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
603 |
+
"visual.blocks.28.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
604 |
+
"visual.blocks.28.norm1.bias": "model-00001-of-00003.safetensors",
|
605 |
+
"visual.blocks.28.norm1.weight": "model-00001-of-00003.safetensors",
|
606 |
+
"visual.blocks.28.norm2.bias": "model-00001-of-00003.safetensors",
|
607 |
+
"visual.blocks.28.norm2.weight": "model-00001-of-00003.safetensors",
|
608 |
+
"visual.blocks.29.attn.proj.bias": "model-00001-of-00003.safetensors",
|
609 |
+
"visual.blocks.29.attn.proj.weight": "model-00001-of-00003.safetensors",
|
610 |
+
"visual.blocks.29.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
611 |
+
"visual.blocks.29.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
612 |
+
"visual.blocks.29.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
613 |
+
"visual.blocks.29.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
614 |
+
"visual.blocks.29.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
615 |
+
"visual.blocks.29.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
616 |
+
"visual.blocks.29.norm1.bias": "model-00001-of-00003.safetensors",
|
617 |
+
"visual.blocks.29.norm1.weight": "model-00001-of-00003.safetensors",
|
618 |
+
"visual.blocks.29.norm2.bias": "model-00001-of-00003.safetensors",
|
619 |
+
"visual.blocks.29.norm2.weight": "model-00001-of-00003.safetensors",
|
620 |
+
"visual.blocks.3.attn.proj.bias": "model-00001-of-00003.safetensors",
|
621 |
+
"visual.blocks.3.attn.proj.weight": "model-00001-of-00003.safetensors",
|
622 |
+
"visual.blocks.3.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
623 |
+
"visual.blocks.3.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
624 |
+
"visual.blocks.3.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
625 |
+
"visual.blocks.3.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
626 |
+
"visual.blocks.3.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
627 |
+
"visual.blocks.3.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
628 |
+
"visual.blocks.3.norm1.bias": "model-00001-of-00003.safetensors",
|
629 |
+
"visual.blocks.3.norm1.weight": "model-00001-of-00003.safetensors",
|
630 |
+
"visual.blocks.3.norm2.bias": "model-00001-of-00003.safetensors",
|
631 |
+
"visual.blocks.3.norm2.weight": "model-00001-of-00003.safetensors",
|
632 |
+
"visual.blocks.30.attn.proj.bias": "model-00001-of-00003.safetensors",
|
633 |
+
"visual.blocks.30.attn.proj.weight": "model-00001-of-00003.safetensors",
|
634 |
+
"visual.blocks.30.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
635 |
+
"visual.blocks.30.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
636 |
+
"visual.blocks.30.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
637 |
+
"visual.blocks.30.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
638 |
+
"visual.blocks.30.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
639 |
+
"visual.blocks.30.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
640 |
+
"visual.blocks.30.norm1.bias": "model-00001-of-00003.safetensors",
|
641 |
+
"visual.blocks.30.norm1.weight": "model-00001-of-00003.safetensors",
|
642 |
+
"visual.blocks.30.norm2.bias": "model-00001-of-00003.safetensors",
|
643 |
+
"visual.blocks.30.norm2.weight": "model-00001-of-00003.safetensors",
|
644 |
+
"visual.blocks.31.attn.proj.bias": "model-00001-of-00003.safetensors",
|
645 |
+
"visual.blocks.31.attn.proj.weight": "model-00001-of-00003.safetensors",
|
646 |
+
"visual.blocks.31.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
647 |
+
"visual.blocks.31.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
648 |
+
"visual.blocks.31.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
649 |
+
"visual.blocks.31.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
650 |
+
"visual.blocks.31.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
651 |
+
"visual.blocks.31.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
652 |
+
"visual.blocks.31.norm1.bias": "model-00001-of-00003.safetensors",
|
653 |
+
"visual.blocks.31.norm1.weight": "model-00001-of-00003.safetensors",
|
654 |
+
"visual.blocks.31.norm2.bias": "model-00001-of-00003.safetensors",
|
655 |
+
"visual.blocks.31.norm2.weight": "model-00001-of-00003.safetensors",
|
656 |
+
"visual.blocks.4.attn.proj.bias": "model-00001-of-00003.safetensors",
|
657 |
+
"visual.blocks.4.attn.proj.weight": "model-00001-of-00003.safetensors",
|
658 |
+
"visual.blocks.4.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
659 |
+
"visual.blocks.4.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
660 |
+
"visual.blocks.4.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
661 |
+
"visual.blocks.4.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
662 |
+
"visual.blocks.4.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
663 |
+
"visual.blocks.4.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
664 |
+
"visual.blocks.4.norm1.bias": "model-00001-of-00003.safetensors",
|
665 |
+
"visual.blocks.4.norm1.weight": "model-00001-of-00003.safetensors",
|
666 |
+
"visual.blocks.4.norm2.bias": "model-00001-of-00003.safetensors",
|
667 |
+
"visual.blocks.4.norm2.weight": "model-00001-of-00003.safetensors",
|
668 |
+
"visual.blocks.5.attn.proj.bias": "model-00001-of-00003.safetensors",
|
669 |
+
"visual.blocks.5.attn.proj.weight": "model-00001-of-00003.safetensors",
|
670 |
+
"visual.blocks.5.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
671 |
+
"visual.blocks.5.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
672 |
+
"visual.blocks.5.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
673 |
+
"visual.blocks.5.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
674 |
+
"visual.blocks.5.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
675 |
+
"visual.blocks.5.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
676 |
+
"visual.blocks.5.norm1.bias": "model-00001-of-00003.safetensors",
|
677 |
+
"visual.blocks.5.norm1.weight": "model-00001-of-00003.safetensors",
|
678 |
+
"visual.blocks.5.norm2.bias": "model-00001-of-00003.safetensors",
|
679 |
+
"visual.blocks.5.norm2.weight": "model-00001-of-00003.safetensors",
|
680 |
+
"visual.blocks.6.attn.proj.bias": "model-00001-of-00003.safetensors",
|
681 |
+
"visual.blocks.6.attn.proj.weight": "model-00001-of-00003.safetensors",
|
682 |
+
"visual.blocks.6.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
683 |
+
"visual.blocks.6.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
684 |
+
"visual.blocks.6.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
685 |
+
"visual.blocks.6.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
686 |
+
"visual.blocks.6.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
687 |
+
"visual.blocks.6.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
688 |
+
"visual.blocks.6.norm1.bias": "model-00001-of-00003.safetensors",
|
689 |
+
"visual.blocks.6.norm1.weight": "model-00001-of-00003.safetensors",
|
690 |
+
"visual.blocks.6.norm2.bias": "model-00001-of-00003.safetensors",
|
691 |
+
"visual.blocks.6.norm2.weight": "model-00001-of-00003.safetensors",
|
692 |
+
"visual.blocks.7.attn.proj.bias": "model-00001-of-00003.safetensors",
|
693 |
+
"visual.blocks.7.attn.proj.weight": "model-00001-of-00003.safetensors",
|
694 |
+
"visual.blocks.7.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
695 |
+
"visual.blocks.7.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
696 |
+
"visual.blocks.7.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
697 |
+
"visual.blocks.7.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
698 |
+
"visual.blocks.7.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
699 |
+
"visual.blocks.7.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
700 |
+
"visual.blocks.7.norm1.bias": "model-00001-of-00003.safetensors",
|
701 |
+
"visual.blocks.7.norm1.weight": "model-00001-of-00003.safetensors",
|
702 |
+
"visual.blocks.7.norm2.bias": "model-00001-of-00003.safetensors",
|
703 |
+
"visual.blocks.7.norm2.weight": "model-00001-of-00003.safetensors",
|
704 |
+
"visual.blocks.8.attn.proj.bias": "model-00001-of-00003.safetensors",
|
705 |
+
"visual.blocks.8.attn.proj.weight": "model-00001-of-00003.safetensors",
|
706 |
+
"visual.blocks.8.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
707 |
+
"visual.blocks.8.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
708 |
+
"visual.blocks.8.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
709 |
+
"visual.blocks.8.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
710 |
+
"visual.blocks.8.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
711 |
+
"visual.blocks.8.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
712 |
+
"visual.blocks.8.norm1.bias": "model-00001-of-00003.safetensors",
|
713 |
+
"visual.blocks.8.norm1.weight": "model-00001-of-00003.safetensors",
|
714 |
+
"visual.blocks.8.norm2.bias": "model-00001-of-00003.safetensors",
|
715 |
+
"visual.blocks.8.norm2.weight": "model-00001-of-00003.safetensors",
|
716 |
+
"visual.blocks.9.attn.proj.bias": "model-00001-of-00003.safetensors",
|
717 |
+
"visual.blocks.9.attn.proj.weight": "model-00001-of-00003.safetensors",
|
718 |
+
"visual.blocks.9.attn.qkv.bias": "model-00001-of-00003.safetensors",
|
719 |
+
"visual.blocks.9.attn.qkv.weight": "model-00001-of-00003.safetensors",
|
720 |
+
"visual.blocks.9.mlp.fc1.bias": "model-00001-of-00003.safetensors",
|
721 |
+
"visual.blocks.9.mlp.fc1.weight": "model-00001-of-00003.safetensors",
|
722 |
+
"visual.blocks.9.mlp.fc2.bias": "model-00001-of-00003.safetensors",
|
723 |
+
"visual.blocks.9.mlp.fc2.weight": "model-00001-of-00003.safetensors",
|
724 |
+
"visual.blocks.9.norm1.bias": "model-00001-of-00003.safetensors",
|
725 |
+
"visual.blocks.9.norm1.weight": "model-00001-of-00003.safetensors",
|
726 |
+
"visual.blocks.9.norm2.bias": "model-00001-of-00003.safetensors",
|
727 |
+
"visual.blocks.9.norm2.weight": "model-00001-of-00003.safetensors",
|
728 |
+
"visual.merger.ln_q.bias": "model-00001-of-00003.safetensors",
|
729 |
+
"visual.merger.ln_q.weight": "model-00001-of-00003.safetensors",
|
730 |
+
"visual.merger.mlp.0.bias": "model-00001-of-00003.safetensors",
|
731 |
+
"visual.merger.mlp.0.weight": "model-00001-of-00003.safetensors",
|
732 |
+
"visual.merger.mlp.2.bias": "model-00001-of-00003.safetensors",
|
733 |
+
"visual.merger.mlp.2.weight": "model-00001-of-00003.safetensors",
|
734 |
+
"visual.patch_embed.proj.weight": "model-00001-of-00003.safetensors"
|
735 |
+
}
|
736 |
+
}
|
modeling_qwen2vl_for_embedding.py
ADDED
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import logging
|
2 |
+
from transformers import AutoProcessor, Qwen2VLForConditionalGeneration
|
3 |
+
import torch
|
4 |
+
from PIL import Image
|
5 |
+
from typing import List, Optional, Tuple, Union, cast
|
6 |
+
import numpy as np
|
7 |
+
from tqdm import tqdm
|
8 |
+
import sys
|
9 |
+
import os
|
10 |
+
from torch.utils.data import DataLoader
|
11 |
+
from torch import nn
|
12 |
+
|
13 |
+
|
14 |
+
logger = logging.getLogger(__name__)
|
15 |
+
|
16 |
+
class Qwen2VLForEmbedding(Qwen2VLForConditionalGeneration):
|
17 |
+
def __init__(self, config):
|
18 |
+
super().__init__(config)
|
19 |
+
|
20 |
+
def forward(
|
21 |
+
self,
|
22 |
+
input_ids: torch.LongTensor = None,
|
23 |
+
attention_mask: Optional[torch.Tensor] = None,
|
24 |
+
position_ids: Optional[torch.LongTensor] = None,
|
25 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
26 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
27 |
+
labels: Optional[torch.LongTensor] = None,
|
28 |
+
use_cache: Optional[bool] = None,
|
29 |
+
output_attentions: Optional[bool] = None,
|
30 |
+
output_hidden_states: Optional[bool] = None,
|
31 |
+
return_dict: Optional[bool] = None,
|
32 |
+
pixel_values: Optional[torch.Tensor] = None,
|
33 |
+
pixel_values_videos: Optional[torch.FloatTensor] = None,
|
34 |
+
image_grid_thw: Optional[torch.LongTensor] = None,
|
35 |
+
video_grid_thw: Optional[torch.LongTensor] = None,
|
36 |
+
rope_deltas: Optional[torch.LongTensor] = None,
|
37 |
+
):
|
38 |
+
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
39 |
+
output_hidden_states = (
|
40 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
41 |
+
)
|
42 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
43 |
+
|
44 |
+
if inputs_embeds is None:
|
45 |
+
inputs_embeds = self.model.embed_tokens(input_ids)
|
46 |
+
if pixel_values is not None:
|
47 |
+
pixel_values = pixel_values.type(self.visual.get_dtype())
|
48 |
+
image_embeds = self.visual(pixel_values, grid_thw=image_grid_thw)
|
49 |
+
image_mask = (input_ids == self.config.image_token_id).unsqueeze(-1).expand_as(inputs_embeds)
|
50 |
+
image_embeds = image_embeds.to(inputs_embeds.device, inputs_embeds.dtype)
|
51 |
+
inputs_embeds = inputs_embeds.masked_scatter(image_mask, image_embeds)
|
52 |
+
|
53 |
+
if pixel_values_videos is not None:
|
54 |
+
pixel_values_videos = pixel_values_videos.type(self.visual.get_dtype())
|
55 |
+
video_embeds = self.visual(pixel_values_videos, grid_thw=video_grid_thw)
|
56 |
+
video_mask = (input_ids == self.config.video_token_id).unsqueeze(-1).expand_as(inputs_embeds)
|
57 |
+
video_embeds = video_embeds.to(inputs_embeds.device, inputs_embeds.dtype)
|
58 |
+
inputs_embeds = inputs_embeds.masked_scatter(video_mask, video_embeds)
|
59 |
+
|
60 |
+
if attention_mask is not None:
|
61 |
+
attention_mask = attention_mask.to(inputs_embeds.device)
|
62 |
+
|
63 |
+
outputs = self.model(
|
64 |
+
input_ids=None,
|
65 |
+
position_ids=position_ids,
|
66 |
+
attention_mask=attention_mask,
|
67 |
+
past_key_values=past_key_values,
|
68 |
+
inputs_embeds=inputs_embeds,
|
69 |
+
use_cache=use_cache,
|
70 |
+
output_attentions=output_attentions,
|
71 |
+
output_hidden_states=output_hidden_states,
|
72 |
+
return_dict=return_dict,
|
73 |
+
)
|
74 |
+
|
75 |
+
hidden_states = outputs[0]
|
76 |
+
embeddings = hidden_states[:, -1, :]
|
77 |
+
embeddings = torch.nn.functional.normalize(embeddings, dim=-1)
|
78 |
+
return embeddings
|
79 |
+
|
80 |
+
def set_processor(self, model_name_or_path, max_len=3072, eos_token_id=151643, min_image_token=64, max_image_token=2500):
|
81 |
+
self.max_len = max_len
|
82 |
+
self.eos_token_id = eos_token_id
|
83 |
+
self.processor = AutoProcessor.from_pretrained(
|
84 |
+
model_name_or_path,
|
85 |
+
min_pixels=min_image_token * 28 * 28,
|
86 |
+
max_pixels=max_image_token * 28 * 28
|
87 |
+
)
|
88 |
+
assert self.processor.tokenizer.padding_side == 'left'
|
89 |
+
|
90 |
+
def prepare_text_input(self, image=None, text=None, q_or_c=None, task_instruction=None):
|
91 |
+
assert q_or_c in ["query", "candidate", "q", "c"]
|
92 |
+
|
93 |
+
prompt_template = "<|im_start|>system\n{}<|im_end|>\n<|im_start|>user\n{}<|im_end|>\n<|im_start|>assistant\n<|endoftext|>"
|
94 |
+
|
95 |
+
if "q" in q_or_c:
|
96 |
+
if task_instruction is None:
|
97 |
+
system_prompt = "You are a helpful assistant."
|
98 |
+
task_instruction_example_csr = "Represent the given image with the given query."
|
99 |
+
print(f"""Warning: For optimal performance, UniSE-MLLM requires the task instruction to be specified in the query. For example, for the Composed Screenshot Retrieval task, you might use a specific instruction like: {task_instruction_example_csr}.""")
|
100 |
+
else:
|
101 |
+
system_prompt = task_instruction
|
102 |
+
|
103 |
+
if image is None:
|
104 |
+
user_prompt = text
|
105 |
+
else:
|
106 |
+
if text is not None:
|
107 |
+
user_prompt = f"Query:{text}<|vision_start|><|image_pad|><|vision_end|>"
|
108 |
+
else:
|
109 |
+
user_prompt = "<|vision_start|><|image_pad|><|vision_end|>"
|
110 |
+
text_input = prompt_template.format(system_prompt, user_prompt)
|
111 |
+
else:
|
112 |
+
if text is not None:
|
113 |
+
system_prompt = "Represent the given text."
|
114 |
+
user_prompt = f"{text}"
|
115 |
+
if image is not None:
|
116 |
+
system_prompt = "Represent the given text-rich image, focusing on extracting and interpreting both its rich text content and visual features."
|
117 |
+
user_prompt = f"<|vision_start|><|image_pad|><|vision_end|>"
|
118 |
+
text_input = prompt_template.format(system_prompt, user_prompt)
|
119 |
+
return text_input
|
120 |
+
|
121 |
+
def data_process(self, images=None, text=None, q_or_c=None, task_instruction=None):
|
122 |
+
if images is not None:
|
123 |
+
_is_list = isinstance(images, list)
|
124 |
+
elif text is not None:
|
125 |
+
_is_list = isinstance(text, list)
|
126 |
+
else:
|
127 |
+
raise ValueError("images and text cannot be both None.")
|
128 |
+
|
129 |
+
assert q_or_c in ["query", "candidate", "q", "c"]
|
130 |
+
|
131 |
+
if not _is_list :
|
132 |
+
text_input = self.prepare_text_input(images, text, q_or_c, task_instruction)
|
133 |
+
text_input = [text_input]
|
134 |
+
|
135 |
+
|
136 |
+
if images is not None:
|
137 |
+
images = Image.open(images).convert("RGB")
|
138 |
+
images = [images]
|
139 |
+
inputs = self.processor(images=images, text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
140 |
+
else:
|
141 |
+
inputs = self.processor(text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
142 |
+
if inputs.input_ids.size(-1) == self.max_len:
|
143 |
+
inputs.input_ids[:, -1] = self.eos_token_id
|
144 |
+
assert (inputs.input_ids[:, -1] == self.eos_token_id).all()
|
145 |
+
assert (inputs.attention_mask[:, -1] == 1).all()
|
146 |
+
|
147 |
+
else:
|
148 |
+
if text is None:
|
149 |
+
text = [None] * len(images)
|
150 |
+
text_input = [self.prepare_text_input(_image, _text, q_or_c, task_instruction) for _image, _text in zip(images, text)]
|
151 |
+
|
152 |
+
if images is not None:
|
153 |
+
images = [Image.open(_image).convert("RGB") for _image in images]
|
154 |
+
inputs = self.processor(images=images, text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
155 |
+
else:
|
156 |
+
inputs = self.processor(text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
157 |
+
if inputs.input_ids.size(-1) == self.max_len:
|
158 |
+
inputs.input_ids[:, -1] = self.eos_token_id
|
159 |
+
assert (inputs.input_ids[:, -1] == self.eos_token_id).all()
|
160 |
+
assert (inputs.attention_mask[:, -1] == 1).all()
|
161 |
+
|
162 |
+
inputs = inputs.to(self.device)
|
163 |
+
|
164 |
+
return inputs
|
preprocessor_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"min_pixels": 3136,
|
3 |
+
"max_pixels": 12845056,
|
4 |
+
"patch_size": 14,
|
5 |
+
"temporal_patch_size": 2,
|
6 |
+
"merge_size": 2,
|
7 |
+
"image_mean": [
|
8 |
+
0.48145466,
|
9 |
+
0.4578275,
|
10 |
+
0.40821073
|
11 |
+
],
|
12 |
+
"image_std": [
|
13 |
+
0.26862954,
|
14 |
+
0.26130258,
|
15 |
+
0.27577711
|
16 |
+
],
|
17 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
18 |
+
"processor_class": "Qwen2VLProcessor"
|
19 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"151646": {
|
29 |
+
"content": "<|object_ref_start|>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"151647": {
|
37 |
+
"content": "<|object_ref_end|>",
|
38 |
+
"lstrip": false,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
},
|
44 |
+
"151648": {
|
45 |
+
"content": "<|box_start|>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": false,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false,
|
50 |
+
"special": true
|
51 |
+
},
|
52 |
+
"151649": {
|
53 |
+
"content": "<|box_end|>",
|
54 |
+
"lstrip": false,
|
55 |
+
"normalized": false,
|
56 |
+
"rstrip": false,
|
57 |
+
"single_word": false,
|
58 |
+
"special": true
|
59 |
+
},
|
60 |
+
"151650": {
|
61 |
+
"content": "<|quad_start|>",
|
62 |
+
"lstrip": false,
|
63 |
+
"normalized": false,
|
64 |
+
"rstrip": false,
|
65 |
+
"single_word": false,
|
66 |
+
"special": true
|
67 |
+
},
|
68 |
+
"151651": {
|
69 |
+
"content": "<|quad_end|>",
|
70 |
+
"lstrip": false,
|
71 |
+
"normalized": false,
|
72 |
+
"rstrip": false,
|
73 |
+
"single_word": false,
|
74 |
+
"special": true
|
75 |
+
},
|
76 |
+
"151652": {
|
77 |
+
"content": "<|vision_start|>",
|
78 |
+
"lstrip": false,
|
79 |
+
"normalized": false,
|
80 |
+
"rstrip": false,
|
81 |
+
"single_word": false,
|
82 |
+
"special": true
|
83 |
+
},
|
84 |
+
"151653": {
|
85 |
+
"content": "<|vision_end|>",
|
86 |
+
"lstrip": false,
|
87 |
+
"normalized": false,
|
88 |
+
"rstrip": false,
|
89 |
+
"single_word": false,
|
90 |
+
"special": true
|
91 |
+
},
|
92 |
+
"151654": {
|
93 |
+
"content": "<|vision_pad|>",
|
94 |
+
"lstrip": false,
|
95 |
+
"normalized": false,
|
96 |
+
"rstrip": false,
|
97 |
+
"single_word": false,
|
98 |
+
"special": true
|
99 |
+
},
|
100 |
+
"151655": {
|
101 |
+
"content": "<|image_pad|>",
|
102 |
+
"lstrip": false,
|
103 |
+
"normalized": false,
|
104 |
+
"rstrip": false,
|
105 |
+
"single_word": false,
|
106 |
+
"special": true
|
107 |
+
},
|
108 |
+
"151656": {
|
109 |
+
"content": "<|video_pad|>",
|
110 |
+
"lstrip": false,
|
111 |
+
"normalized": false,
|
112 |
+
"rstrip": false,
|
113 |
+
"single_word": false,
|
114 |
+
"special": true
|
115 |
+
}
|
116 |
+
},
|
117 |
+
"additional_special_tokens": ["<|im_start|>", "<|im_end|>", "<|object_ref_start|>","<|object_ref_end|>","<|box_start|>","<|box_end|>","<|quad_start|>","<|quad_end|>","<|vision_start|>","<|vision_end|>","<|vision_pad|>","<|image_pad|>","<|video_pad|>"],
|
118 |
+
"bos_token": null,
|
119 |
+
"chat_template": "{% 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\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% 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|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
|
120 |
+
"clean_up_tokenization_spaces": false,
|
121 |
+
"eos_token": "<|im_end|>",
|
122 |
+
"padding_side": "left",
|
123 |
+
"errors": "replace",
|
124 |
+
"model_max_length": 32768,
|
125 |
+
"pad_token": "<|endoftext|>",
|
126 |
+
"split_special_tokens": false,
|
127 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
128 |
+
"unk_token": null
|
129 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|