Ubuntu commited on
Commit
90fc874
1 Parent(s): 5b58a31

Initial commit

Browse files
.gitattributes CHANGED
@@ -1,35 +1,2 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
  *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ .safetensors filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen-VL-Chat
3
+ tags:
4
+ - qwen-vl-chat
5
+ - qwen
6
+ - dhenu
7
+ - lora
8
+ - conversational
9
+ - finetune
10
+ - chatml
11
+ - synthetic data
12
+ license: apache-2.0
13
+ language:
14
+ - en
15
+ ---
16
+ # Dhenu Vision LoRA 0.1
17
+
18
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/616d9181c3bac80637586601/sDak407sDNB94HmX4Cxo-.png)
19
+
20
+ *Inspired by the mythical Kaamdhenu, the wish-fulfilling cow of Hindu mythology, we, at [KissanAI](https://kissan.ai), are introducing a series of finetuned Language Learning Models (LLM), "Dhenu", designed for the agricultural sector. Dhenu merges the depth of agricultural practices with modern AI capabilities, aimed at enriching the farming community with actionable insights. This model embodies the fusion of tradition and technology, offering tailored guidance to navigate the complexities of agriculture with precision and ease. Dhenu stands as a testament to innovation, guiding farmers towards a prosperous and sustainable future.*
21
+
22
+ ## Introduction
23
+
24
+ Dhenu-vision-lora-v0.1 is an open-source agricultural disease detection model fine-tuned on the Qwen-VL-chat model. It is specifically designed to assist with diseases among three major crops, rice, maize, and wheat, in conversational way. We incorporate Low Rank adaptation techniques for low-cost fine-tuning on agricultural datasets.
25
+
26
+ We observed that even with lora, the model is performing **2X** better over the base model for the objectives mentioned below.
27
+
28
+ ## Model details
29
+
30
+ **Model type:**
31
+
32
+ Base LLM: "Qwen/Qwen-VL-Chat"
33
+ Method: LoRA
34
+
35
+ **Model date:**
36
+
37
+ Dhenu-vision-lora-v0.1 was trained in 03-2024.
38
+
39
+ **Resources for more information:**
40
+
41
+ [https://huggingface.co/Qwen/Qwen-VL-Chat](https://huggingface.co/Qwen/Qwen-VL-Chat)
42
+
43
+ [https://github.com/QwenLM/Qwen-VL](https://github.com/QwenLM/Qwen-VL)
44
+
45
+ ## Dataset
46
+
47
+ Syntehtic dataset of ~9000 images for three major crops, **Maize**, **Rice**, and **Wheat**, for following common disease identifiable from leaves:
48
+
49
+ - Leaf blight
50
+ - Leaf spot
51
+ - Streak virus
52
+ - Bacterial blight
53
+ - Blast
54
+ - Tungro
55
+ - Crown and Root Rot
56
+ - Leaf rust
57
+ - Wheat loose smut
58
+
59
+ For objectives:
60
+
61
+ - Disease identification
62
+ - Symptoms
63
+ - Cure
64
+ - Prevention methods
65
+ - Severity
66
+
67
+ ## Evaluation
68
+
69
+ For a collection of 500 images evaluated using multiple prompt-based approaches, we achieved the following results:
70
+
71
+ Qwen-VL-chat: 17.95%
72
+ Dhenu-vision-lora-0.1: 36.13%
73
+ GPT4-V: 51.59%
74
+
75
+ ## License
76
+
77
+ [Qwen-VL-chat](https://huggingface.co/Qwen/Qwen-VL-Chat/blob/main/LICENSE) license
78
+
79
+ ## ToDo
80
+
81
+ [ ] SFT model
82
+
83
+ [ ] 15+ crops and 80 diseases
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Qwen/Qwen-VL-Chat",
3
+ "architectures": [
4
+ "QWenLMHeadModel"
5
+ ],
6
+ "attn_dropout_prob": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "Qwen/Qwen-VL-Chat--configuration_qwen.QWenConfig",
9
+ "AutoModelForCausalLM": "Qwen/Qwen-VL-Chat--modeling_qwen.QWenLMHeadModel"
10
+ },
11
+ "bf16": true,
12
+ "emb_dropout_prob": 0.0,
13
+ "fp16": false,
14
+ "fp32": false,
15
+ "hidden_size": 4096,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 22016,
18
+ "kv_channels": 128,
19
+ "layer_norm_epsilon": 1e-06,
20
+ "max_position_embeddings": 8192,
21
+ "model_type": "qwen",
22
+ "no_bias": true,
23
+ "num_attention_heads": 32,
24
+ "num_hidden_layers": 32,
25
+ "onnx_safe": null,
26
+ "rotary_emb_base": 10000,
27
+ "rotary_pct": 1.0,
28
+ "scale_attn_weights": true,
29
+ "seq_length": 2048,
30
+ "tie_word_embeddings": false,
31
+ "tokenizer_type": "QWenTokenizer",
32
+ "torch_dtype": "bfloat16",
33
+ "transformers_version": "4.32.0",
34
+ "use_cache": true,
35
+ "use_dynamic_ntk": true,
36
+ "use_flash_attn": false,
37
+ "use_logn_attn": true,
38
+ "visual": {
39
+ "heads": 16,
40
+ "image_size": 448,
41
+ "image_start_id": 151857,
42
+ "layers": 48,
43
+ "mlp_ratio": 4.9231,
44
+ "output_dim": 4096,
45
+ "patch_size": 14,
46
+ "width": 1664
47
+ },
48
+ "vocab_size": 151936
49
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chat_format": "chatml",
3
+ "do_sample": true,
4
+ "eos_token_id": 151643,
5
+ "max_new_tokens": 512,
6
+ "max_window_size": 6144,
7
+ "pad_token_id": 151643,
8
+ "top_k": 0,
9
+ "top_p": 0.3,
10
+ "transformers_version": "4.32.0"
11
+ }
model-00001-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27e05e8e11017ec1adfb7b7465c915975c463e614f9826b5d97455fc6ab4e2b8
3
+ size 1964066488
model-00002-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9387f2dc898c11b0f05af6eb2d877c737a337b8942052d60c1a80152d1e00e7d
3
+ size 2023960808
model-00003-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe4972e9280557c202ed63c7d1f69295580b0ee493b3e66aff25d1eeb2de4ee9
3
+ size 2023960816
model-00004-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3380299fbc618e8df5bf86b7e85de1819956314ecd9bd622bd2b8af790dedab0
3
+ size 2023960848
model-00005-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46308122ed427cd3a0ca330f5b6a3e90b05dd915f02809ffb0262313e00d8822
3
+ size 2023960848
model-00006-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc152a8cccb70413189214db8e59fe28a64d5d8fd1b3f3c88836d3214eccb0bd
3
+ size 2023960848
model-00007-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90e4de937cb6fc7046784ace01ed763e92ec30a6e780cef3cb781fe1fdb014f5
3
+ size 2023960848
model-00008-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:707318bf40be16efd6d87a8fc58c86e42deacdb13c4616c40f50fce92b9c2046
3
+ size 2044696480
model-00009-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54e25732179f8ebcd2843e46a31520d655011535b306541b0a164b8c06396f88
3
+ size 1916789392
model-00010-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d6b1314f3680e32ce7c69a02f17aed4c1c7bd174269f97b790ef871db10974e
3
+ size 1244659840
model.safetensors.index.json ADDED
@@ -0,0 +1,860 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 19313870336
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "model-00010-of-00010.safetensors",
7
+ "transformer.h.0.attn.c_attn.bias": "model-00001-of-00010.safetensors",
8
+ "transformer.h.0.attn.c_attn.weight": "model-00001-of-00010.safetensors",
9
+ "transformer.h.0.attn.c_proj.weight": "model-00001-of-00010.safetensors",
10
+ "transformer.h.0.ln_1.weight": "model-00001-of-00010.safetensors",
11
+ "transformer.h.0.ln_2.weight": "model-00001-of-00010.safetensors",
12
+ "transformer.h.0.mlp.c_proj.weight": "model-00001-of-00010.safetensors",
13
+ "transformer.h.0.mlp.w1.weight": "model-00001-of-00010.safetensors",
14
+ "transformer.h.0.mlp.w2.weight": "model-00001-of-00010.safetensors",
15
+ "transformer.h.1.attn.c_attn.bias": "model-00001-of-00010.safetensors",
16
+ "transformer.h.1.attn.c_attn.weight": "model-00001-of-00010.safetensors",
17
+ "transformer.h.1.attn.c_proj.weight": "model-00001-of-00010.safetensors",
18
+ "transformer.h.1.ln_1.weight": "model-00001-of-00010.safetensors",
19
+ "transformer.h.1.ln_2.weight": "model-00001-of-00010.safetensors",
20
+ "transformer.h.1.mlp.c_proj.weight": "model-00002-of-00010.safetensors",
21
+ "transformer.h.1.mlp.w1.weight": "model-00001-of-00010.safetensors",
22
+ "transformer.h.1.mlp.w2.weight": "model-00001-of-00010.safetensors",
23
+ "transformer.h.10.attn.c_attn.bias": "model-00003-of-00010.safetensors",
24
+ "transformer.h.10.attn.c_attn.weight": "model-00003-of-00010.safetensors",
25
+ "transformer.h.10.attn.c_proj.weight": "model-00003-of-00010.safetensors",
26
+ "transformer.h.10.ln_1.weight": "model-00003-of-00010.safetensors",
27
+ "transformer.h.10.ln_2.weight": "model-00003-of-00010.safetensors",
28
+ "transformer.h.10.mlp.c_proj.weight": "model-00003-of-00010.safetensors",
29
+ "transformer.h.10.mlp.w1.weight": "model-00003-of-00010.safetensors",
30
+ "transformer.h.10.mlp.w2.weight": "model-00003-of-00010.safetensors",
31
+ "transformer.h.11.attn.c_attn.bias": "model-00003-of-00010.safetensors",
32
+ "transformer.h.11.attn.c_attn.weight": "model-00003-of-00010.safetensors",
33
+ "transformer.h.11.attn.c_proj.weight": "model-00003-of-00010.safetensors",
34
+ "transformer.h.11.ln_1.weight": "model-00003-of-00010.safetensors",
35
+ "transformer.h.11.ln_2.weight": "model-00003-of-00010.safetensors",
36
+ "transformer.h.11.mlp.c_proj.weight": "model-00004-of-00010.safetensors",
37
+ "transformer.h.11.mlp.w1.weight": "model-00003-of-00010.safetensors",
38
+ "transformer.h.11.mlp.w2.weight": "model-00003-of-00010.safetensors",
39
+ "transformer.h.12.attn.c_attn.bias": "model-00004-of-00010.safetensors",
40
+ "transformer.h.12.attn.c_attn.weight": "model-00004-of-00010.safetensors",
41
+ "transformer.h.12.attn.c_proj.weight": "model-00004-of-00010.safetensors",
42
+ "transformer.h.12.ln_1.weight": "model-00004-of-00010.safetensors",
43
+ "transformer.h.12.ln_2.weight": "model-00004-of-00010.safetensors",
44
+ "transformer.h.12.mlp.c_proj.weight": "model-00004-of-00010.safetensors",
45
+ "transformer.h.12.mlp.w1.weight": "model-00004-of-00010.safetensors",
46
+ "transformer.h.12.mlp.w2.weight": "model-00004-of-00010.safetensors",
47
+ "transformer.h.13.attn.c_attn.bias": "model-00004-of-00010.safetensors",
48
+ "transformer.h.13.attn.c_attn.weight": "model-00004-of-00010.safetensors",
49
+ "transformer.h.13.attn.c_proj.weight": "model-00004-of-00010.safetensors",
50
+ "transformer.h.13.ln_1.weight": "model-00004-of-00010.safetensors",
51
+ "transformer.h.13.ln_2.weight": "model-00004-of-00010.safetensors",
52
+ "transformer.h.13.mlp.c_proj.weight": "model-00004-of-00010.safetensors",
53
+ "transformer.h.13.mlp.w1.weight": "model-00004-of-00010.safetensors",
54
+ "transformer.h.13.mlp.w2.weight": "model-00004-of-00010.safetensors",
55
+ "transformer.h.14.attn.c_attn.bias": "model-00004-of-00010.safetensors",
56
+ "transformer.h.14.attn.c_attn.weight": "model-00004-of-00010.safetensors",
57
+ "transformer.h.14.attn.c_proj.weight": "model-00004-of-00010.safetensors",
58
+ "transformer.h.14.ln_1.weight": "model-00004-of-00010.safetensors",
59
+ "transformer.h.14.ln_2.weight": "model-00004-of-00010.safetensors",
60
+ "transformer.h.14.mlp.c_proj.weight": "model-00004-of-00010.safetensors",
61
+ "transformer.h.14.mlp.w1.weight": "model-00004-of-00010.safetensors",
62
+ "transformer.h.14.mlp.w2.weight": "model-00004-of-00010.safetensors",
63
+ "transformer.h.15.attn.c_attn.bias": "model-00004-of-00010.safetensors",
64
+ "transformer.h.15.attn.c_attn.weight": "model-00004-of-00010.safetensors",
65
+ "transformer.h.15.attn.c_proj.weight": "model-00004-of-00010.safetensors",
66
+ "transformer.h.15.ln_1.weight": "model-00004-of-00010.safetensors",
67
+ "transformer.h.15.ln_2.weight": "model-00004-of-00010.safetensors",
68
+ "transformer.h.15.mlp.c_proj.weight": "model-00004-of-00010.safetensors",
69
+ "transformer.h.15.mlp.w1.weight": "model-00004-of-00010.safetensors",
70
+ "transformer.h.15.mlp.w2.weight": "model-00004-of-00010.safetensors",
71
+ "transformer.h.16.attn.c_attn.bias": "model-00004-of-00010.safetensors",
72
+ "transformer.h.16.attn.c_attn.weight": "model-00004-of-00010.safetensors",
73
+ "transformer.h.16.attn.c_proj.weight": "model-00004-of-00010.safetensors",
74
+ "transformer.h.16.ln_1.weight": "model-00004-of-00010.safetensors",
75
+ "transformer.h.16.ln_2.weight": "model-00004-of-00010.safetensors",
76
+ "transformer.h.16.mlp.c_proj.weight": "model-00005-of-00010.safetensors",
77
+ "transformer.h.16.mlp.w1.weight": "model-00004-of-00010.safetensors",
78
+ "transformer.h.16.mlp.w2.weight": "model-00004-of-00010.safetensors",
79
+ "transformer.h.17.attn.c_attn.bias": "model-00005-of-00010.safetensors",
80
+ "transformer.h.17.attn.c_attn.weight": "model-00005-of-00010.safetensors",
81
+ "transformer.h.17.attn.c_proj.weight": "model-00005-of-00010.safetensors",
82
+ "transformer.h.17.ln_1.weight": "model-00005-of-00010.safetensors",
83
+ "transformer.h.17.ln_2.weight": "model-00005-of-00010.safetensors",
84
+ "transformer.h.17.mlp.c_proj.weight": "model-00005-of-00010.safetensors",
85
+ "transformer.h.17.mlp.w1.weight": "model-00005-of-00010.safetensors",
86
+ "transformer.h.17.mlp.w2.weight": "model-00005-of-00010.safetensors",
87
+ "transformer.h.18.attn.c_attn.bias": "model-00005-of-00010.safetensors",
88
+ "transformer.h.18.attn.c_attn.weight": "model-00005-of-00010.safetensors",
89
+ "transformer.h.18.attn.c_proj.weight": "model-00005-of-00010.safetensors",
90
+ "transformer.h.18.ln_1.weight": "model-00005-of-00010.safetensors",
91
+ "transformer.h.18.ln_2.weight": "model-00005-of-00010.safetensors",
92
+ "transformer.h.18.mlp.c_proj.weight": "model-00005-of-00010.safetensors",
93
+ "transformer.h.18.mlp.w1.weight": "model-00005-of-00010.safetensors",
94
+ "transformer.h.18.mlp.w2.weight": "model-00005-of-00010.safetensors",
95
+ "transformer.h.19.attn.c_attn.bias": "model-00005-of-00010.safetensors",
96
+ "transformer.h.19.attn.c_attn.weight": "model-00005-of-00010.safetensors",
97
+ "transformer.h.19.attn.c_proj.weight": "model-00005-of-00010.safetensors",
98
+ "transformer.h.19.ln_1.weight": "model-00005-of-00010.safetensors",
99
+ "transformer.h.19.ln_2.weight": "model-00005-of-00010.safetensors",
100
+ "transformer.h.19.mlp.c_proj.weight": "model-00005-of-00010.safetensors",
101
+ "transformer.h.19.mlp.w1.weight": "model-00005-of-00010.safetensors",
102
+ "transformer.h.19.mlp.w2.weight": "model-00005-of-00010.safetensors",
103
+ "transformer.h.2.attn.c_attn.bias": "model-00002-of-00010.safetensors",
104
+ "transformer.h.2.attn.c_attn.weight": "model-00002-of-00010.safetensors",
105
+ "transformer.h.2.attn.c_proj.weight": "model-00002-of-00010.safetensors",
106
+ "transformer.h.2.ln_1.weight": "model-00002-of-00010.safetensors",
107
+ "transformer.h.2.ln_2.weight": "model-00002-of-00010.safetensors",
108
+ "transformer.h.2.mlp.c_proj.weight": "model-00002-of-00010.safetensors",
109
+ "transformer.h.2.mlp.w1.weight": "model-00002-of-00010.safetensors",
110
+ "transformer.h.2.mlp.w2.weight": "model-00002-of-00010.safetensors",
111
+ "transformer.h.20.attn.c_attn.bias": "model-00005-of-00010.safetensors",
112
+ "transformer.h.20.attn.c_attn.weight": "model-00005-of-00010.safetensors",
113
+ "transformer.h.20.attn.c_proj.weight": "model-00005-of-00010.safetensors",
114
+ "transformer.h.20.ln_1.weight": "model-00005-of-00010.safetensors",
115
+ "transformer.h.20.ln_2.weight": "model-00005-of-00010.safetensors",
116
+ "transformer.h.20.mlp.c_proj.weight": "model-00005-of-00010.safetensors",
117
+ "transformer.h.20.mlp.w1.weight": "model-00005-of-00010.safetensors",
118
+ "transformer.h.20.mlp.w2.weight": "model-00005-of-00010.safetensors",
119
+ "transformer.h.21.attn.c_attn.bias": "model-00005-of-00010.safetensors",
120
+ "transformer.h.21.attn.c_attn.weight": "model-00005-of-00010.safetensors",
121
+ "transformer.h.21.attn.c_proj.weight": "model-00005-of-00010.safetensors",
122
+ "transformer.h.21.ln_1.weight": "model-00005-of-00010.safetensors",
123
+ "transformer.h.21.ln_2.weight": "model-00005-of-00010.safetensors",
124
+ "transformer.h.21.mlp.c_proj.weight": "model-00006-of-00010.safetensors",
125
+ "transformer.h.21.mlp.w1.weight": "model-00005-of-00010.safetensors",
126
+ "transformer.h.21.mlp.w2.weight": "model-00005-of-00010.safetensors",
127
+ "transformer.h.22.attn.c_attn.bias": "model-00006-of-00010.safetensors",
128
+ "transformer.h.22.attn.c_attn.weight": "model-00006-of-00010.safetensors",
129
+ "transformer.h.22.attn.c_proj.weight": "model-00006-of-00010.safetensors",
130
+ "transformer.h.22.ln_1.weight": "model-00006-of-00010.safetensors",
131
+ "transformer.h.22.ln_2.weight": "model-00006-of-00010.safetensors",
132
+ "transformer.h.22.mlp.c_proj.weight": "model-00006-of-00010.safetensors",
133
+ "transformer.h.22.mlp.w1.weight": "model-00006-of-00010.safetensors",
134
+ "transformer.h.22.mlp.w2.weight": "model-00006-of-00010.safetensors",
135
+ "transformer.h.23.attn.c_attn.bias": "model-00006-of-00010.safetensors",
136
+ "transformer.h.23.attn.c_attn.weight": "model-00006-of-00010.safetensors",
137
+ "transformer.h.23.attn.c_proj.weight": "model-00006-of-00010.safetensors",
138
+ "transformer.h.23.ln_1.weight": "model-00006-of-00010.safetensors",
139
+ "transformer.h.23.ln_2.weight": "model-00006-of-00010.safetensors",
140
+ "transformer.h.23.mlp.c_proj.weight": "model-00006-of-00010.safetensors",
141
+ "transformer.h.23.mlp.w1.weight": "model-00006-of-00010.safetensors",
142
+ "transformer.h.23.mlp.w2.weight": "model-00006-of-00010.safetensors",
143
+ "transformer.h.24.attn.c_attn.bias": "model-00006-of-00010.safetensors",
144
+ "transformer.h.24.attn.c_attn.weight": "model-00006-of-00010.safetensors",
145
+ "transformer.h.24.attn.c_proj.weight": "model-00006-of-00010.safetensors",
146
+ "transformer.h.24.ln_1.weight": "model-00006-of-00010.safetensors",
147
+ "transformer.h.24.ln_2.weight": "model-00006-of-00010.safetensors",
148
+ "transformer.h.24.mlp.c_proj.weight": "model-00006-of-00010.safetensors",
149
+ "transformer.h.24.mlp.w1.weight": "model-00006-of-00010.safetensors",
150
+ "transformer.h.24.mlp.w2.weight": "model-00006-of-00010.safetensors",
151
+ "transformer.h.25.attn.c_attn.bias": "model-00006-of-00010.safetensors",
152
+ "transformer.h.25.attn.c_attn.weight": "model-00006-of-00010.safetensors",
153
+ "transformer.h.25.attn.c_proj.weight": "model-00006-of-00010.safetensors",
154
+ "transformer.h.25.ln_1.weight": "model-00006-of-00010.safetensors",
155
+ "transformer.h.25.ln_2.weight": "model-00006-of-00010.safetensors",
156
+ "transformer.h.25.mlp.c_proj.weight": "model-00006-of-00010.safetensors",
157
+ "transformer.h.25.mlp.w1.weight": "model-00006-of-00010.safetensors",
158
+ "transformer.h.25.mlp.w2.weight": "model-00006-of-00010.safetensors",
159
+ "transformer.h.26.attn.c_attn.bias": "model-00006-of-00010.safetensors",
160
+ "transformer.h.26.attn.c_attn.weight": "model-00006-of-00010.safetensors",
161
+ "transformer.h.26.attn.c_proj.weight": "model-00006-of-00010.safetensors",
162
+ "transformer.h.26.ln_1.weight": "model-00006-of-00010.safetensors",
163
+ "transformer.h.26.ln_2.weight": "model-00006-of-00010.safetensors",
164
+ "transformer.h.26.mlp.c_proj.weight": "model-00007-of-00010.safetensors",
165
+ "transformer.h.26.mlp.w1.weight": "model-00006-of-00010.safetensors",
166
+ "transformer.h.26.mlp.w2.weight": "model-00006-of-00010.safetensors",
167
+ "transformer.h.27.attn.c_attn.bias": "model-00007-of-00010.safetensors",
168
+ "transformer.h.27.attn.c_attn.weight": "model-00007-of-00010.safetensors",
169
+ "transformer.h.27.attn.c_proj.weight": "model-00007-of-00010.safetensors",
170
+ "transformer.h.27.ln_1.weight": "model-00007-of-00010.safetensors",
171
+ "transformer.h.27.ln_2.weight": "model-00007-of-00010.safetensors",
172
+ "transformer.h.27.mlp.c_proj.weight": "model-00007-of-00010.safetensors",
173
+ "transformer.h.27.mlp.w1.weight": "model-00007-of-00010.safetensors",
174
+ "transformer.h.27.mlp.w2.weight": "model-00007-of-00010.safetensors",
175
+ "transformer.h.28.attn.c_attn.bias": "model-00007-of-00010.safetensors",
176
+ "transformer.h.28.attn.c_attn.weight": "model-00007-of-00010.safetensors",
177
+ "transformer.h.28.attn.c_proj.weight": "model-00007-of-00010.safetensors",
178
+ "transformer.h.28.ln_1.weight": "model-00007-of-00010.safetensors",
179
+ "transformer.h.28.ln_2.weight": "model-00007-of-00010.safetensors",
180
+ "transformer.h.28.mlp.c_proj.weight": "model-00007-of-00010.safetensors",
181
+ "transformer.h.28.mlp.w1.weight": "model-00007-of-00010.safetensors",
182
+ "transformer.h.28.mlp.w2.weight": "model-00007-of-00010.safetensors",
183
+ "transformer.h.29.attn.c_attn.bias": "model-00007-of-00010.safetensors",
184
+ "transformer.h.29.attn.c_attn.weight": "model-00007-of-00010.safetensors",
185
+ "transformer.h.29.attn.c_proj.weight": "model-00007-of-00010.safetensors",
186
+ "transformer.h.29.ln_1.weight": "model-00007-of-00010.safetensors",
187
+ "transformer.h.29.ln_2.weight": "model-00007-of-00010.safetensors",
188
+ "transformer.h.29.mlp.c_proj.weight": "model-00007-of-00010.safetensors",
189
+ "transformer.h.29.mlp.w1.weight": "model-00007-of-00010.safetensors",
190
+ "transformer.h.29.mlp.w2.weight": "model-00007-of-00010.safetensors",
191
+ "transformer.h.3.attn.c_attn.bias": "model-00002-of-00010.safetensors",
192
+ "transformer.h.3.attn.c_attn.weight": "model-00002-of-00010.safetensors",
193
+ "transformer.h.3.attn.c_proj.weight": "model-00002-of-00010.safetensors",
194
+ "transformer.h.3.ln_1.weight": "model-00002-of-00010.safetensors",
195
+ "transformer.h.3.ln_2.weight": "model-00002-of-00010.safetensors",
196
+ "transformer.h.3.mlp.c_proj.weight": "model-00002-of-00010.safetensors",
197
+ "transformer.h.3.mlp.w1.weight": "model-00002-of-00010.safetensors",
198
+ "transformer.h.3.mlp.w2.weight": "model-00002-of-00010.safetensors",
199
+ "transformer.h.30.attn.c_attn.bias": "model-00007-of-00010.safetensors",
200
+ "transformer.h.30.attn.c_attn.weight": "model-00007-of-00010.safetensors",
201
+ "transformer.h.30.attn.c_proj.weight": "model-00007-of-00010.safetensors",
202
+ "transformer.h.30.ln_1.weight": "model-00007-of-00010.safetensors",
203
+ "transformer.h.30.ln_2.weight": "model-00007-of-00010.safetensors",
204
+ "transformer.h.30.mlp.c_proj.weight": "model-00007-of-00010.safetensors",
205
+ "transformer.h.30.mlp.w1.weight": "model-00007-of-00010.safetensors",
206
+ "transformer.h.30.mlp.w2.weight": "model-00007-of-00010.safetensors",
207
+ "transformer.h.31.attn.c_attn.bias": "model-00007-of-00010.safetensors",
208
+ "transformer.h.31.attn.c_attn.weight": "model-00007-of-00010.safetensors",
209
+ "transformer.h.31.attn.c_proj.weight": "model-00007-of-00010.safetensors",
210
+ "transformer.h.31.ln_1.weight": "model-00007-of-00010.safetensors",
211
+ "transformer.h.31.ln_2.weight": "model-00007-of-00010.safetensors",
212
+ "transformer.h.31.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
213
+ "transformer.h.31.mlp.w1.weight": "model-00007-of-00010.safetensors",
214
+ "transformer.h.31.mlp.w2.weight": "model-00007-of-00010.safetensors",
215
+ "transformer.h.4.attn.c_attn.bias": "model-00002-of-00010.safetensors",
216
+ "transformer.h.4.attn.c_attn.weight": "model-00002-of-00010.safetensors",
217
+ "transformer.h.4.attn.c_proj.weight": "model-00002-of-00010.safetensors",
218
+ "transformer.h.4.ln_1.weight": "model-00002-of-00010.safetensors",
219
+ "transformer.h.4.ln_2.weight": "model-00002-of-00010.safetensors",
220
+ "transformer.h.4.mlp.c_proj.weight": "model-00002-of-00010.safetensors",
221
+ "transformer.h.4.mlp.w1.weight": "model-00002-of-00010.safetensors",
222
+ "transformer.h.4.mlp.w2.weight": "model-00002-of-00010.safetensors",
223
+ "transformer.h.5.attn.c_attn.bias": "model-00002-of-00010.safetensors",
224
+ "transformer.h.5.attn.c_attn.weight": "model-00002-of-00010.safetensors",
225
+ "transformer.h.5.attn.c_proj.weight": "model-00002-of-00010.safetensors",
226
+ "transformer.h.5.ln_1.weight": "model-00002-of-00010.safetensors",
227
+ "transformer.h.5.ln_2.weight": "model-00002-of-00010.safetensors",
228
+ "transformer.h.5.mlp.c_proj.weight": "model-00002-of-00010.safetensors",
229
+ "transformer.h.5.mlp.w1.weight": "model-00002-of-00010.safetensors",
230
+ "transformer.h.5.mlp.w2.weight": "model-00002-of-00010.safetensors",
231
+ "transformer.h.6.attn.c_attn.bias": "model-00002-of-00010.safetensors",
232
+ "transformer.h.6.attn.c_attn.weight": "model-00002-of-00010.safetensors",
233
+ "transformer.h.6.attn.c_proj.weight": "model-00002-of-00010.safetensors",
234
+ "transformer.h.6.ln_1.weight": "model-00002-of-00010.safetensors",
235
+ "transformer.h.6.ln_2.weight": "model-00002-of-00010.safetensors",
236
+ "transformer.h.6.mlp.c_proj.weight": "model-00003-of-00010.safetensors",
237
+ "transformer.h.6.mlp.w1.weight": "model-00002-of-00010.safetensors",
238
+ "transformer.h.6.mlp.w2.weight": "model-00002-of-00010.safetensors",
239
+ "transformer.h.7.attn.c_attn.bias": "model-00003-of-00010.safetensors",
240
+ "transformer.h.7.attn.c_attn.weight": "model-00003-of-00010.safetensors",
241
+ "transformer.h.7.attn.c_proj.weight": "model-00003-of-00010.safetensors",
242
+ "transformer.h.7.ln_1.weight": "model-00003-of-00010.safetensors",
243
+ "transformer.h.7.ln_2.weight": "model-00003-of-00010.safetensors",
244
+ "transformer.h.7.mlp.c_proj.weight": "model-00003-of-00010.safetensors",
245
+ "transformer.h.7.mlp.w1.weight": "model-00003-of-00010.safetensors",
246
+ "transformer.h.7.mlp.w2.weight": "model-00003-of-00010.safetensors",
247
+ "transformer.h.8.attn.c_attn.bias": "model-00003-of-00010.safetensors",
248
+ "transformer.h.8.attn.c_attn.weight": "model-00003-of-00010.safetensors",
249
+ "transformer.h.8.attn.c_proj.weight": "model-00003-of-00010.safetensors",
250
+ "transformer.h.8.ln_1.weight": "model-00003-of-00010.safetensors",
251
+ "transformer.h.8.ln_2.weight": "model-00003-of-00010.safetensors",
252
+ "transformer.h.8.mlp.c_proj.weight": "model-00003-of-00010.safetensors",
253
+ "transformer.h.8.mlp.w1.weight": "model-00003-of-00010.safetensors",
254
+ "transformer.h.8.mlp.w2.weight": "model-00003-of-00010.safetensors",
255
+ "transformer.h.9.attn.c_attn.bias": "model-00003-of-00010.safetensors",
256
+ "transformer.h.9.attn.c_attn.weight": "model-00003-of-00010.safetensors",
257
+ "transformer.h.9.attn.c_proj.weight": "model-00003-of-00010.safetensors",
258
+ "transformer.h.9.ln_1.weight": "model-00003-of-00010.safetensors",
259
+ "transformer.h.9.ln_2.weight": "model-00003-of-00010.safetensors",
260
+ "transformer.h.9.mlp.c_proj.weight": "model-00003-of-00010.safetensors",
261
+ "transformer.h.9.mlp.w1.weight": "model-00003-of-00010.safetensors",
262
+ "transformer.h.9.mlp.w2.weight": "model-00003-of-00010.safetensors",
263
+ "transformer.ln_f.weight": "model-00008-of-00010.safetensors",
264
+ "transformer.visual.attn_pool.attn.in_proj_bias": "model-00009-of-00010.safetensors",
265
+ "transformer.visual.attn_pool.attn.in_proj_weight": "model-00009-of-00010.safetensors",
266
+ "transformer.visual.attn_pool.attn.out_proj.bias": "model-00009-of-00010.safetensors",
267
+ "transformer.visual.attn_pool.attn.out_proj.weight": "model-00009-of-00010.safetensors",
268
+ "transformer.visual.attn_pool.kv_proj.weight": "model-00009-of-00010.safetensors",
269
+ "transformer.visual.attn_pool.ln_kv.bias": "model-00009-of-00010.safetensors",
270
+ "transformer.visual.attn_pool.ln_kv.weight": "model-00009-of-00010.safetensors",
271
+ "transformer.visual.attn_pool.ln_q.bias": "model-00009-of-00010.safetensors",
272
+ "transformer.visual.attn_pool.ln_q.weight": "model-00009-of-00010.safetensors",
273
+ "transformer.visual.attn_pool.pos_embed": "model-00009-of-00010.safetensors",
274
+ "transformer.visual.attn_pool.query": "model-00009-of-00010.safetensors",
275
+ "transformer.visual.conv1.weight": "model-00008-of-00010.safetensors",
276
+ "transformer.visual.ln_post.bias": "model-00009-of-00010.safetensors",
277
+ "transformer.visual.ln_post.weight": "model-00009-of-00010.safetensors",
278
+ "transformer.visual.ln_pre.bias": "model-00008-of-00010.safetensors",
279
+ "transformer.visual.ln_pre.weight": "model-00008-of-00010.safetensors",
280
+ "transformer.visual.positional_embedding": "model-00008-of-00010.safetensors",
281
+ "transformer.visual.proj": "model-00008-of-00010.safetensors",
282
+ "transformer.visual.transformer.resblocks.0.attn.in_proj.bias": "model-00008-of-00010.safetensors",
283
+ "transformer.visual.transformer.resblocks.0.attn.in_proj.weight": "model-00008-of-00010.safetensors",
284
+ "transformer.visual.transformer.resblocks.0.attn.out_proj.bias": "model-00008-of-00010.safetensors",
285
+ "transformer.visual.transformer.resblocks.0.attn.out_proj.weight": "model-00008-of-00010.safetensors",
286
+ "transformer.visual.transformer.resblocks.0.ln_1.bias": "model-00008-of-00010.safetensors",
287
+ "transformer.visual.transformer.resblocks.0.ln_1.weight": "model-00008-of-00010.safetensors",
288
+ "transformer.visual.transformer.resblocks.0.ln_2.bias": "model-00008-of-00010.safetensors",
289
+ "transformer.visual.transformer.resblocks.0.ln_2.weight": "model-00008-of-00010.safetensors",
290
+ "transformer.visual.transformer.resblocks.0.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
291
+ "transformer.visual.transformer.resblocks.0.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
292
+ "transformer.visual.transformer.resblocks.0.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
293
+ "transformer.visual.transformer.resblocks.0.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
294
+ "transformer.visual.transformer.resblocks.1.attn.in_proj.bias": "model-00008-of-00010.safetensors",
295
+ "transformer.visual.transformer.resblocks.1.attn.in_proj.weight": "model-00008-of-00010.safetensors",
296
+ "transformer.visual.transformer.resblocks.1.attn.out_proj.bias": "model-00008-of-00010.safetensors",
297
+ "transformer.visual.transformer.resblocks.1.attn.out_proj.weight": "model-00008-of-00010.safetensors",
298
+ "transformer.visual.transformer.resblocks.1.ln_1.bias": "model-00008-of-00010.safetensors",
299
+ "transformer.visual.transformer.resblocks.1.ln_1.weight": "model-00008-of-00010.safetensors",
300
+ "transformer.visual.transformer.resblocks.1.ln_2.bias": "model-00008-of-00010.safetensors",
301
+ "transformer.visual.transformer.resblocks.1.ln_2.weight": "model-00008-of-00010.safetensors",
302
+ "transformer.visual.transformer.resblocks.1.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
303
+ "transformer.visual.transformer.resblocks.1.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
304
+ "transformer.visual.transformer.resblocks.1.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
305
+ "transformer.visual.transformer.resblocks.1.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
306
+ "transformer.visual.transformer.resblocks.10.attn.in_proj.bias": "model-00008-of-00010.safetensors",
307
+ "transformer.visual.transformer.resblocks.10.attn.in_proj.weight": "model-00008-of-00010.safetensors",
308
+ "transformer.visual.transformer.resblocks.10.attn.out_proj.bias": "model-00008-of-00010.safetensors",
309
+ "transformer.visual.transformer.resblocks.10.attn.out_proj.weight": "model-00008-of-00010.safetensors",
310
+ "transformer.visual.transformer.resblocks.10.ln_1.bias": "model-00008-of-00010.safetensors",
311
+ "transformer.visual.transformer.resblocks.10.ln_1.weight": "model-00008-of-00010.safetensors",
312
+ "transformer.visual.transformer.resblocks.10.ln_2.bias": "model-00008-of-00010.safetensors",
313
+ "transformer.visual.transformer.resblocks.10.ln_2.weight": "model-00008-of-00010.safetensors",
314
+ "transformer.visual.transformer.resblocks.10.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
315
+ "transformer.visual.transformer.resblocks.10.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
316
+ "transformer.visual.transformer.resblocks.10.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
317
+ "transformer.visual.transformer.resblocks.10.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
318
+ "transformer.visual.transformer.resblocks.11.attn.in_proj.bias": "model-00008-of-00010.safetensors",
319
+ "transformer.visual.transformer.resblocks.11.attn.in_proj.weight": "model-00008-of-00010.safetensors",
320
+ "transformer.visual.transformer.resblocks.11.attn.out_proj.bias": "model-00008-of-00010.safetensors",
321
+ "transformer.visual.transformer.resblocks.11.attn.out_proj.weight": "model-00008-of-00010.safetensors",
322
+ "transformer.visual.transformer.resblocks.11.ln_1.bias": "model-00008-of-00010.safetensors",
323
+ "transformer.visual.transformer.resblocks.11.ln_1.weight": "model-00008-of-00010.safetensors",
324
+ "transformer.visual.transformer.resblocks.11.ln_2.bias": "model-00008-of-00010.safetensors",
325
+ "transformer.visual.transformer.resblocks.11.ln_2.weight": "model-00008-of-00010.safetensors",
326
+ "transformer.visual.transformer.resblocks.11.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
327
+ "transformer.visual.transformer.resblocks.11.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
328
+ "transformer.visual.transformer.resblocks.11.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
329
+ "transformer.visual.transformer.resblocks.11.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
330
+ "transformer.visual.transformer.resblocks.12.attn.in_proj.bias": "model-00008-of-00010.safetensors",
331
+ "transformer.visual.transformer.resblocks.12.attn.in_proj.weight": "model-00008-of-00010.safetensors",
332
+ "transformer.visual.transformer.resblocks.12.attn.out_proj.bias": "model-00008-of-00010.safetensors",
333
+ "transformer.visual.transformer.resblocks.12.attn.out_proj.weight": "model-00008-of-00010.safetensors",
334
+ "transformer.visual.transformer.resblocks.12.ln_1.bias": "model-00008-of-00010.safetensors",
335
+ "transformer.visual.transformer.resblocks.12.ln_1.weight": "model-00008-of-00010.safetensors",
336
+ "transformer.visual.transformer.resblocks.12.ln_2.bias": "model-00008-of-00010.safetensors",
337
+ "transformer.visual.transformer.resblocks.12.ln_2.weight": "model-00008-of-00010.safetensors",
338
+ "transformer.visual.transformer.resblocks.12.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
339
+ "transformer.visual.transformer.resblocks.12.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
340
+ "transformer.visual.transformer.resblocks.12.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
341
+ "transformer.visual.transformer.resblocks.12.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
342
+ "transformer.visual.transformer.resblocks.13.attn.in_proj.bias": "model-00008-of-00010.safetensors",
343
+ "transformer.visual.transformer.resblocks.13.attn.in_proj.weight": "model-00008-of-00010.safetensors",
344
+ "transformer.visual.transformer.resblocks.13.attn.out_proj.bias": "model-00008-of-00010.safetensors",
345
+ "transformer.visual.transformer.resblocks.13.attn.out_proj.weight": "model-00008-of-00010.safetensors",
346
+ "transformer.visual.transformer.resblocks.13.ln_1.bias": "model-00008-of-00010.safetensors",
347
+ "transformer.visual.transformer.resblocks.13.ln_1.weight": "model-00008-of-00010.safetensors",
348
+ "transformer.visual.transformer.resblocks.13.ln_2.bias": "model-00008-of-00010.safetensors",
349
+ "transformer.visual.transformer.resblocks.13.ln_2.weight": "model-00008-of-00010.safetensors",
350
+ "transformer.visual.transformer.resblocks.13.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
351
+ "transformer.visual.transformer.resblocks.13.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
352
+ "transformer.visual.transformer.resblocks.13.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
353
+ "transformer.visual.transformer.resblocks.13.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
354
+ "transformer.visual.transformer.resblocks.14.attn.in_proj.bias": "model-00008-of-00010.safetensors",
355
+ "transformer.visual.transformer.resblocks.14.attn.in_proj.weight": "model-00008-of-00010.safetensors",
356
+ "transformer.visual.transformer.resblocks.14.attn.out_proj.bias": "model-00008-of-00010.safetensors",
357
+ "transformer.visual.transformer.resblocks.14.attn.out_proj.weight": "model-00008-of-00010.safetensors",
358
+ "transformer.visual.transformer.resblocks.14.ln_1.bias": "model-00008-of-00010.safetensors",
359
+ "transformer.visual.transformer.resblocks.14.ln_1.weight": "model-00008-of-00010.safetensors",
360
+ "transformer.visual.transformer.resblocks.14.ln_2.bias": "model-00008-of-00010.safetensors",
361
+ "transformer.visual.transformer.resblocks.14.ln_2.weight": "model-00008-of-00010.safetensors",
362
+ "transformer.visual.transformer.resblocks.14.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
363
+ "transformer.visual.transformer.resblocks.14.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
364
+ "transformer.visual.transformer.resblocks.14.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
365
+ "transformer.visual.transformer.resblocks.14.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
366
+ "transformer.visual.transformer.resblocks.15.attn.in_proj.bias": "model-00008-of-00010.safetensors",
367
+ "transformer.visual.transformer.resblocks.15.attn.in_proj.weight": "model-00008-of-00010.safetensors",
368
+ "transformer.visual.transformer.resblocks.15.attn.out_proj.bias": "model-00008-of-00010.safetensors",
369
+ "transformer.visual.transformer.resblocks.15.attn.out_proj.weight": "model-00008-of-00010.safetensors",
370
+ "transformer.visual.transformer.resblocks.15.ln_1.bias": "model-00008-of-00010.safetensors",
371
+ "transformer.visual.transformer.resblocks.15.ln_1.weight": "model-00008-of-00010.safetensors",
372
+ "transformer.visual.transformer.resblocks.15.ln_2.bias": "model-00008-of-00010.safetensors",
373
+ "transformer.visual.transformer.resblocks.15.ln_2.weight": "model-00008-of-00010.safetensors",
374
+ "transformer.visual.transformer.resblocks.15.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
375
+ "transformer.visual.transformer.resblocks.15.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
376
+ "transformer.visual.transformer.resblocks.15.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
377
+ "transformer.visual.transformer.resblocks.15.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
378
+ "transformer.visual.transformer.resblocks.16.attn.in_proj.bias": "model-00008-of-00010.safetensors",
379
+ "transformer.visual.transformer.resblocks.16.attn.in_proj.weight": "model-00008-of-00010.safetensors",
380
+ "transformer.visual.transformer.resblocks.16.attn.out_proj.bias": "model-00008-of-00010.safetensors",
381
+ "transformer.visual.transformer.resblocks.16.attn.out_proj.weight": "model-00008-of-00010.safetensors",
382
+ "transformer.visual.transformer.resblocks.16.ln_1.bias": "model-00008-of-00010.safetensors",
383
+ "transformer.visual.transformer.resblocks.16.ln_1.weight": "model-00008-of-00010.safetensors",
384
+ "transformer.visual.transformer.resblocks.16.ln_2.bias": "model-00008-of-00010.safetensors",
385
+ "transformer.visual.transformer.resblocks.16.ln_2.weight": "model-00008-of-00010.safetensors",
386
+ "transformer.visual.transformer.resblocks.16.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
387
+ "transformer.visual.transformer.resblocks.16.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
388
+ "transformer.visual.transformer.resblocks.16.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
389
+ "transformer.visual.transformer.resblocks.16.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
390
+ "transformer.visual.transformer.resblocks.17.attn.in_proj.bias": "model-00008-of-00010.safetensors",
391
+ "transformer.visual.transformer.resblocks.17.attn.in_proj.weight": "model-00008-of-00010.safetensors",
392
+ "transformer.visual.transformer.resblocks.17.attn.out_proj.bias": "model-00008-of-00010.safetensors",
393
+ "transformer.visual.transformer.resblocks.17.attn.out_proj.weight": "model-00008-of-00010.safetensors",
394
+ "transformer.visual.transformer.resblocks.17.ln_1.bias": "model-00008-of-00010.safetensors",
395
+ "transformer.visual.transformer.resblocks.17.ln_1.weight": "model-00008-of-00010.safetensors",
396
+ "transformer.visual.transformer.resblocks.17.ln_2.bias": "model-00008-of-00010.safetensors",
397
+ "transformer.visual.transformer.resblocks.17.ln_2.weight": "model-00008-of-00010.safetensors",
398
+ "transformer.visual.transformer.resblocks.17.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
399
+ "transformer.visual.transformer.resblocks.17.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
400
+ "transformer.visual.transformer.resblocks.17.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
401
+ "transformer.visual.transformer.resblocks.17.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
402
+ "transformer.visual.transformer.resblocks.18.attn.in_proj.bias": "model-00008-of-00010.safetensors",
403
+ "transformer.visual.transformer.resblocks.18.attn.in_proj.weight": "model-00008-of-00010.safetensors",
404
+ "transformer.visual.transformer.resblocks.18.attn.out_proj.bias": "model-00008-of-00010.safetensors",
405
+ "transformer.visual.transformer.resblocks.18.attn.out_proj.weight": "model-00008-of-00010.safetensors",
406
+ "transformer.visual.transformer.resblocks.18.ln_1.bias": "model-00008-of-00010.safetensors",
407
+ "transformer.visual.transformer.resblocks.18.ln_1.weight": "model-00008-of-00010.safetensors",
408
+ "transformer.visual.transformer.resblocks.18.ln_2.bias": "model-00008-of-00010.safetensors",
409
+ "transformer.visual.transformer.resblocks.18.ln_2.weight": "model-00008-of-00010.safetensors",
410
+ "transformer.visual.transformer.resblocks.18.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
411
+ "transformer.visual.transformer.resblocks.18.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
412
+ "transformer.visual.transformer.resblocks.18.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
413
+ "transformer.visual.transformer.resblocks.18.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
414
+ "transformer.visual.transformer.resblocks.19.attn.in_proj.bias": "model-00008-of-00010.safetensors",
415
+ "transformer.visual.transformer.resblocks.19.attn.in_proj.weight": "model-00008-of-00010.safetensors",
416
+ "transformer.visual.transformer.resblocks.19.attn.out_proj.bias": "model-00008-of-00010.safetensors",
417
+ "transformer.visual.transformer.resblocks.19.attn.out_proj.weight": "model-00008-of-00010.safetensors",
418
+ "transformer.visual.transformer.resblocks.19.ln_1.bias": "model-00008-of-00010.safetensors",
419
+ "transformer.visual.transformer.resblocks.19.ln_1.weight": "model-00008-of-00010.safetensors",
420
+ "transformer.visual.transformer.resblocks.19.ln_2.bias": "model-00008-of-00010.safetensors",
421
+ "transformer.visual.transformer.resblocks.19.ln_2.weight": "model-00008-of-00010.safetensors",
422
+ "transformer.visual.transformer.resblocks.19.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
423
+ "transformer.visual.transformer.resblocks.19.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
424
+ "transformer.visual.transformer.resblocks.19.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
425
+ "transformer.visual.transformer.resblocks.19.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
426
+ "transformer.visual.transformer.resblocks.2.attn.in_proj.bias": "model-00008-of-00010.safetensors",
427
+ "transformer.visual.transformer.resblocks.2.attn.in_proj.weight": "model-00008-of-00010.safetensors",
428
+ "transformer.visual.transformer.resblocks.2.attn.out_proj.bias": "model-00008-of-00010.safetensors",
429
+ "transformer.visual.transformer.resblocks.2.attn.out_proj.weight": "model-00008-of-00010.safetensors",
430
+ "transformer.visual.transformer.resblocks.2.ln_1.bias": "model-00008-of-00010.safetensors",
431
+ "transformer.visual.transformer.resblocks.2.ln_1.weight": "model-00008-of-00010.safetensors",
432
+ "transformer.visual.transformer.resblocks.2.ln_2.bias": "model-00008-of-00010.safetensors",
433
+ "transformer.visual.transformer.resblocks.2.ln_2.weight": "model-00008-of-00010.safetensors",
434
+ "transformer.visual.transformer.resblocks.2.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
435
+ "transformer.visual.transformer.resblocks.2.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
436
+ "transformer.visual.transformer.resblocks.2.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
437
+ "transformer.visual.transformer.resblocks.2.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
438
+ "transformer.visual.transformer.resblocks.20.attn.in_proj.bias": "model-00008-of-00010.safetensors",
439
+ "transformer.visual.transformer.resblocks.20.attn.in_proj.weight": "model-00008-of-00010.safetensors",
440
+ "transformer.visual.transformer.resblocks.20.attn.out_proj.bias": "model-00008-of-00010.safetensors",
441
+ "transformer.visual.transformer.resblocks.20.attn.out_proj.weight": "model-00008-of-00010.safetensors",
442
+ "transformer.visual.transformer.resblocks.20.ln_1.bias": "model-00008-of-00010.safetensors",
443
+ "transformer.visual.transformer.resblocks.20.ln_1.weight": "model-00008-of-00010.safetensors",
444
+ "transformer.visual.transformer.resblocks.20.ln_2.bias": "model-00008-of-00010.safetensors",
445
+ "transformer.visual.transformer.resblocks.20.ln_2.weight": "model-00008-of-00010.safetensors",
446
+ "transformer.visual.transformer.resblocks.20.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
447
+ "transformer.visual.transformer.resblocks.20.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
448
+ "transformer.visual.transformer.resblocks.20.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
449
+ "transformer.visual.transformer.resblocks.20.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
450
+ "transformer.visual.transformer.resblocks.21.attn.in_proj.bias": "model-00008-of-00010.safetensors",
451
+ "transformer.visual.transformer.resblocks.21.attn.in_proj.weight": "model-00008-of-00010.safetensors",
452
+ "transformer.visual.transformer.resblocks.21.attn.out_proj.bias": "model-00008-of-00010.safetensors",
453
+ "transformer.visual.transformer.resblocks.21.attn.out_proj.weight": "model-00008-of-00010.safetensors",
454
+ "transformer.visual.transformer.resblocks.21.ln_1.bias": "model-00008-of-00010.safetensors",
455
+ "transformer.visual.transformer.resblocks.21.ln_1.weight": "model-00008-of-00010.safetensors",
456
+ "transformer.visual.transformer.resblocks.21.ln_2.bias": "model-00008-of-00010.safetensors",
457
+ "transformer.visual.transformer.resblocks.21.ln_2.weight": "model-00008-of-00010.safetensors",
458
+ "transformer.visual.transformer.resblocks.21.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
459
+ "transformer.visual.transformer.resblocks.21.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
460
+ "transformer.visual.transformer.resblocks.21.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
461
+ "transformer.visual.transformer.resblocks.21.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
462
+ "transformer.visual.transformer.resblocks.22.attn.in_proj.bias": "model-00008-of-00010.safetensors",
463
+ "transformer.visual.transformer.resblocks.22.attn.in_proj.weight": "model-00008-of-00010.safetensors",
464
+ "transformer.visual.transformer.resblocks.22.attn.out_proj.bias": "model-00008-of-00010.safetensors",
465
+ "transformer.visual.transformer.resblocks.22.attn.out_proj.weight": "model-00008-of-00010.safetensors",
466
+ "transformer.visual.transformer.resblocks.22.ln_1.bias": "model-00008-of-00010.safetensors",
467
+ "transformer.visual.transformer.resblocks.22.ln_1.weight": "model-00008-of-00010.safetensors",
468
+ "transformer.visual.transformer.resblocks.22.ln_2.bias": "model-00008-of-00010.safetensors",
469
+ "transformer.visual.transformer.resblocks.22.ln_2.weight": "model-00008-of-00010.safetensors",
470
+ "transformer.visual.transformer.resblocks.22.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
471
+ "transformer.visual.transformer.resblocks.22.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
472
+ "transformer.visual.transformer.resblocks.22.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
473
+ "transformer.visual.transformer.resblocks.22.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
474
+ "transformer.visual.transformer.resblocks.23.attn.in_proj.bias": "model-00008-of-00010.safetensors",
475
+ "transformer.visual.transformer.resblocks.23.attn.in_proj.weight": "model-00008-of-00010.safetensors",
476
+ "transformer.visual.transformer.resblocks.23.attn.out_proj.bias": "model-00008-of-00010.safetensors",
477
+ "transformer.visual.transformer.resblocks.23.attn.out_proj.weight": "model-00008-of-00010.safetensors",
478
+ "transformer.visual.transformer.resblocks.23.ln_1.bias": "model-00008-of-00010.safetensors",
479
+ "transformer.visual.transformer.resblocks.23.ln_1.weight": "model-00008-of-00010.safetensors",
480
+ "transformer.visual.transformer.resblocks.23.ln_2.bias": "model-00008-of-00010.safetensors",
481
+ "transformer.visual.transformer.resblocks.23.ln_2.weight": "model-00008-of-00010.safetensors",
482
+ "transformer.visual.transformer.resblocks.23.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
483
+ "transformer.visual.transformer.resblocks.23.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
484
+ "transformer.visual.transformer.resblocks.23.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
485
+ "transformer.visual.transformer.resblocks.23.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
486
+ "transformer.visual.transformer.resblocks.24.attn.in_proj.bias": "model-00008-of-00010.safetensors",
487
+ "transformer.visual.transformer.resblocks.24.attn.in_proj.weight": "model-00008-of-00010.safetensors",
488
+ "transformer.visual.transformer.resblocks.24.attn.out_proj.bias": "model-00008-of-00010.safetensors",
489
+ "transformer.visual.transformer.resblocks.24.attn.out_proj.weight": "model-00008-of-00010.safetensors",
490
+ "transformer.visual.transformer.resblocks.24.ln_1.bias": "model-00008-of-00010.safetensors",
491
+ "transformer.visual.transformer.resblocks.24.ln_1.weight": "model-00008-of-00010.safetensors",
492
+ "transformer.visual.transformer.resblocks.24.ln_2.bias": "model-00008-of-00010.safetensors",
493
+ "transformer.visual.transformer.resblocks.24.ln_2.weight": "model-00008-of-00010.safetensors",
494
+ "transformer.visual.transformer.resblocks.24.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
495
+ "transformer.visual.transformer.resblocks.24.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
496
+ "transformer.visual.transformer.resblocks.24.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
497
+ "transformer.visual.transformer.resblocks.24.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
498
+ "transformer.visual.transformer.resblocks.25.attn.in_proj.bias": "model-00009-of-00010.safetensors",
499
+ "transformer.visual.transformer.resblocks.25.attn.in_proj.weight": "model-00009-of-00010.safetensors",
500
+ "transformer.visual.transformer.resblocks.25.attn.out_proj.bias": "model-00009-of-00010.safetensors",
501
+ "transformer.visual.transformer.resblocks.25.attn.out_proj.weight": "model-00009-of-00010.safetensors",
502
+ "transformer.visual.transformer.resblocks.25.ln_1.bias": "model-00008-of-00010.safetensors",
503
+ "transformer.visual.transformer.resblocks.25.ln_1.weight": "model-00008-of-00010.safetensors",
504
+ "transformer.visual.transformer.resblocks.25.ln_2.bias": "model-00008-of-00010.safetensors",
505
+ "transformer.visual.transformer.resblocks.25.ln_2.weight": "model-00008-of-00010.safetensors",
506
+ "transformer.visual.transformer.resblocks.25.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
507
+ "transformer.visual.transformer.resblocks.25.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
508
+ "transformer.visual.transformer.resblocks.25.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
509
+ "transformer.visual.transformer.resblocks.25.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
510
+ "transformer.visual.transformer.resblocks.26.attn.in_proj.bias": "model-00009-of-00010.safetensors",
511
+ "transformer.visual.transformer.resblocks.26.attn.in_proj.weight": "model-00009-of-00010.safetensors",
512
+ "transformer.visual.transformer.resblocks.26.attn.out_proj.bias": "model-00009-of-00010.safetensors",
513
+ "transformer.visual.transformer.resblocks.26.attn.out_proj.weight": "model-00009-of-00010.safetensors",
514
+ "transformer.visual.transformer.resblocks.26.ln_1.bias": "model-00009-of-00010.safetensors",
515
+ "transformer.visual.transformer.resblocks.26.ln_1.weight": "model-00009-of-00010.safetensors",
516
+ "transformer.visual.transformer.resblocks.26.ln_2.bias": "model-00009-of-00010.safetensors",
517
+ "transformer.visual.transformer.resblocks.26.ln_2.weight": "model-00009-of-00010.safetensors",
518
+ "transformer.visual.transformer.resblocks.26.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
519
+ "transformer.visual.transformer.resblocks.26.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
520
+ "transformer.visual.transformer.resblocks.26.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
521
+ "transformer.visual.transformer.resblocks.26.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
522
+ "transformer.visual.transformer.resblocks.27.attn.in_proj.bias": "model-00009-of-00010.safetensors",
523
+ "transformer.visual.transformer.resblocks.27.attn.in_proj.weight": "model-00009-of-00010.safetensors",
524
+ "transformer.visual.transformer.resblocks.27.attn.out_proj.bias": "model-00009-of-00010.safetensors",
525
+ "transformer.visual.transformer.resblocks.27.attn.out_proj.weight": "model-00009-of-00010.safetensors",
526
+ "transformer.visual.transformer.resblocks.27.ln_1.bias": "model-00009-of-00010.safetensors",
527
+ "transformer.visual.transformer.resblocks.27.ln_1.weight": "model-00009-of-00010.safetensors",
528
+ "transformer.visual.transformer.resblocks.27.ln_2.bias": "model-00009-of-00010.safetensors",
529
+ "transformer.visual.transformer.resblocks.27.ln_2.weight": "model-00009-of-00010.safetensors",
530
+ "transformer.visual.transformer.resblocks.27.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
531
+ "transformer.visual.transformer.resblocks.27.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
532
+ "transformer.visual.transformer.resblocks.27.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
533
+ "transformer.visual.transformer.resblocks.27.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
534
+ "transformer.visual.transformer.resblocks.28.attn.in_proj.bias": "model-00009-of-00010.safetensors",
535
+ "transformer.visual.transformer.resblocks.28.attn.in_proj.weight": "model-00009-of-00010.safetensors",
536
+ "transformer.visual.transformer.resblocks.28.attn.out_proj.bias": "model-00009-of-00010.safetensors",
537
+ "transformer.visual.transformer.resblocks.28.attn.out_proj.weight": "model-00009-of-00010.safetensors",
538
+ "transformer.visual.transformer.resblocks.28.ln_1.bias": "model-00009-of-00010.safetensors",
539
+ "transformer.visual.transformer.resblocks.28.ln_1.weight": "model-00009-of-00010.safetensors",
540
+ "transformer.visual.transformer.resblocks.28.ln_2.bias": "model-00009-of-00010.safetensors",
541
+ "transformer.visual.transformer.resblocks.28.ln_2.weight": "model-00009-of-00010.safetensors",
542
+ "transformer.visual.transformer.resblocks.28.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
543
+ "transformer.visual.transformer.resblocks.28.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
544
+ "transformer.visual.transformer.resblocks.28.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
545
+ "transformer.visual.transformer.resblocks.28.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
546
+ "transformer.visual.transformer.resblocks.29.attn.in_proj.bias": "model-00009-of-00010.safetensors",
547
+ "transformer.visual.transformer.resblocks.29.attn.in_proj.weight": "model-00009-of-00010.safetensors",
548
+ "transformer.visual.transformer.resblocks.29.attn.out_proj.bias": "model-00009-of-00010.safetensors",
549
+ "transformer.visual.transformer.resblocks.29.attn.out_proj.weight": "model-00009-of-00010.safetensors",
550
+ "transformer.visual.transformer.resblocks.29.ln_1.bias": "model-00009-of-00010.safetensors",
551
+ "transformer.visual.transformer.resblocks.29.ln_1.weight": "model-00009-of-00010.safetensors",
552
+ "transformer.visual.transformer.resblocks.29.ln_2.bias": "model-00009-of-00010.safetensors",
553
+ "transformer.visual.transformer.resblocks.29.ln_2.weight": "model-00009-of-00010.safetensors",
554
+ "transformer.visual.transformer.resblocks.29.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
555
+ "transformer.visual.transformer.resblocks.29.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
556
+ "transformer.visual.transformer.resblocks.29.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
557
+ "transformer.visual.transformer.resblocks.29.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
558
+ "transformer.visual.transformer.resblocks.3.attn.in_proj.bias": "model-00008-of-00010.safetensors",
559
+ "transformer.visual.transformer.resblocks.3.attn.in_proj.weight": "model-00008-of-00010.safetensors",
560
+ "transformer.visual.transformer.resblocks.3.attn.out_proj.bias": "model-00008-of-00010.safetensors",
561
+ "transformer.visual.transformer.resblocks.3.attn.out_proj.weight": "model-00008-of-00010.safetensors",
562
+ "transformer.visual.transformer.resblocks.3.ln_1.bias": "model-00008-of-00010.safetensors",
563
+ "transformer.visual.transformer.resblocks.3.ln_1.weight": "model-00008-of-00010.safetensors",
564
+ "transformer.visual.transformer.resblocks.3.ln_2.bias": "model-00008-of-00010.safetensors",
565
+ "transformer.visual.transformer.resblocks.3.ln_2.weight": "model-00008-of-00010.safetensors",
566
+ "transformer.visual.transformer.resblocks.3.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
567
+ "transformer.visual.transformer.resblocks.3.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
568
+ "transformer.visual.transformer.resblocks.3.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
569
+ "transformer.visual.transformer.resblocks.3.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
570
+ "transformer.visual.transformer.resblocks.30.attn.in_proj.bias": "model-00009-of-00010.safetensors",
571
+ "transformer.visual.transformer.resblocks.30.attn.in_proj.weight": "model-00009-of-00010.safetensors",
572
+ "transformer.visual.transformer.resblocks.30.attn.out_proj.bias": "model-00009-of-00010.safetensors",
573
+ "transformer.visual.transformer.resblocks.30.attn.out_proj.weight": "model-00009-of-00010.safetensors",
574
+ "transformer.visual.transformer.resblocks.30.ln_1.bias": "model-00009-of-00010.safetensors",
575
+ "transformer.visual.transformer.resblocks.30.ln_1.weight": "model-00009-of-00010.safetensors",
576
+ "transformer.visual.transformer.resblocks.30.ln_2.bias": "model-00009-of-00010.safetensors",
577
+ "transformer.visual.transformer.resblocks.30.ln_2.weight": "model-00009-of-00010.safetensors",
578
+ "transformer.visual.transformer.resblocks.30.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
579
+ "transformer.visual.transformer.resblocks.30.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
580
+ "transformer.visual.transformer.resblocks.30.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
581
+ "transformer.visual.transformer.resblocks.30.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
582
+ "transformer.visual.transformer.resblocks.31.attn.in_proj.bias": "model-00009-of-00010.safetensors",
583
+ "transformer.visual.transformer.resblocks.31.attn.in_proj.weight": "model-00009-of-00010.safetensors",
584
+ "transformer.visual.transformer.resblocks.31.attn.out_proj.bias": "model-00009-of-00010.safetensors",
585
+ "transformer.visual.transformer.resblocks.31.attn.out_proj.weight": "model-00009-of-00010.safetensors",
586
+ "transformer.visual.transformer.resblocks.31.ln_1.bias": "model-00009-of-00010.safetensors",
587
+ "transformer.visual.transformer.resblocks.31.ln_1.weight": "model-00009-of-00010.safetensors",
588
+ "transformer.visual.transformer.resblocks.31.ln_2.bias": "model-00009-of-00010.safetensors",
589
+ "transformer.visual.transformer.resblocks.31.ln_2.weight": "model-00009-of-00010.safetensors",
590
+ "transformer.visual.transformer.resblocks.31.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
591
+ "transformer.visual.transformer.resblocks.31.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
592
+ "transformer.visual.transformer.resblocks.31.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
593
+ "transformer.visual.transformer.resblocks.31.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
594
+ "transformer.visual.transformer.resblocks.32.attn.in_proj.bias": "model-00009-of-00010.safetensors",
595
+ "transformer.visual.transformer.resblocks.32.attn.in_proj.weight": "model-00009-of-00010.safetensors",
596
+ "transformer.visual.transformer.resblocks.32.attn.out_proj.bias": "model-00009-of-00010.safetensors",
597
+ "transformer.visual.transformer.resblocks.32.attn.out_proj.weight": "model-00009-of-00010.safetensors",
598
+ "transformer.visual.transformer.resblocks.32.ln_1.bias": "model-00009-of-00010.safetensors",
599
+ "transformer.visual.transformer.resblocks.32.ln_1.weight": "model-00009-of-00010.safetensors",
600
+ "transformer.visual.transformer.resblocks.32.ln_2.bias": "model-00009-of-00010.safetensors",
601
+ "transformer.visual.transformer.resblocks.32.ln_2.weight": "model-00009-of-00010.safetensors",
602
+ "transformer.visual.transformer.resblocks.32.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
603
+ "transformer.visual.transformer.resblocks.32.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
604
+ "transformer.visual.transformer.resblocks.32.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
605
+ "transformer.visual.transformer.resblocks.32.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
606
+ "transformer.visual.transformer.resblocks.33.attn.in_proj.bias": "model-00009-of-00010.safetensors",
607
+ "transformer.visual.transformer.resblocks.33.attn.in_proj.weight": "model-00009-of-00010.safetensors",
608
+ "transformer.visual.transformer.resblocks.33.attn.out_proj.bias": "model-00009-of-00010.safetensors",
609
+ "transformer.visual.transformer.resblocks.33.attn.out_proj.weight": "model-00009-of-00010.safetensors",
610
+ "transformer.visual.transformer.resblocks.33.ln_1.bias": "model-00009-of-00010.safetensors",
611
+ "transformer.visual.transformer.resblocks.33.ln_1.weight": "model-00009-of-00010.safetensors",
612
+ "transformer.visual.transformer.resblocks.33.ln_2.bias": "model-00009-of-00010.safetensors",
613
+ "transformer.visual.transformer.resblocks.33.ln_2.weight": "model-00009-of-00010.safetensors",
614
+ "transformer.visual.transformer.resblocks.33.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
615
+ "transformer.visual.transformer.resblocks.33.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
616
+ "transformer.visual.transformer.resblocks.33.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
617
+ "transformer.visual.transformer.resblocks.33.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
618
+ "transformer.visual.transformer.resblocks.34.attn.in_proj.bias": "model-00009-of-00010.safetensors",
619
+ "transformer.visual.transformer.resblocks.34.attn.in_proj.weight": "model-00009-of-00010.safetensors",
620
+ "transformer.visual.transformer.resblocks.34.attn.out_proj.bias": "model-00009-of-00010.safetensors",
621
+ "transformer.visual.transformer.resblocks.34.attn.out_proj.weight": "model-00009-of-00010.safetensors",
622
+ "transformer.visual.transformer.resblocks.34.ln_1.bias": "model-00009-of-00010.safetensors",
623
+ "transformer.visual.transformer.resblocks.34.ln_1.weight": "model-00009-of-00010.safetensors",
624
+ "transformer.visual.transformer.resblocks.34.ln_2.bias": "model-00009-of-00010.safetensors",
625
+ "transformer.visual.transformer.resblocks.34.ln_2.weight": "model-00009-of-00010.safetensors",
626
+ "transformer.visual.transformer.resblocks.34.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
627
+ "transformer.visual.transformer.resblocks.34.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
628
+ "transformer.visual.transformer.resblocks.34.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
629
+ "transformer.visual.transformer.resblocks.34.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
630
+ "transformer.visual.transformer.resblocks.35.attn.in_proj.bias": "model-00009-of-00010.safetensors",
631
+ "transformer.visual.transformer.resblocks.35.attn.in_proj.weight": "model-00009-of-00010.safetensors",
632
+ "transformer.visual.transformer.resblocks.35.attn.out_proj.bias": "model-00009-of-00010.safetensors",
633
+ "transformer.visual.transformer.resblocks.35.attn.out_proj.weight": "model-00009-of-00010.safetensors",
634
+ "transformer.visual.transformer.resblocks.35.ln_1.bias": "model-00009-of-00010.safetensors",
635
+ "transformer.visual.transformer.resblocks.35.ln_1.weight": "model-00009-of-00010.safetensors",
636
+ "transformer.visual.transformer.resblocks.35.ln_2.bias": "model-00009-of-00010.safetensors",
637
+ "transformer.visual.transformer.resblocks.35.ln_2.weight": "model-00009-of-00010.safetensors",
638
+ "transformer.visual.transformer.resblocks.35.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
639
+ "transformer.visual.transformer.resblocks.35.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
640
+ "transformer.visual.transformer.resblocks.35.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
641
+ "transformer.visual.transformer.resblocks.35.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
642
+ "transformer.visual.transformer.resblocks.36.attn.in_proj.bias": "model-00009-of-00010.safetensors",
643
+ "transformer.visual.transformer.resblocks.36.attn.in_proj.weight": "model-00009-of-00010.safetensors",
644
+ "transformer.visual.transformer.resblocks.36.attn.out_proj.bias": "model-00009-of-00010.safetensors",
645
+ "transformer.visual.transformer.resblocks.36.attn.out_proj.weight": "model-00009-of-00010.safetensors",
646
+ "transformer.visual.transformer.resblocks.36.ln_1.bias": "model-00009-of-00010.safetensors",
647
+ "transformer.visual.transformer.resblocks.36.ln_1.weight": "model-00009-of-00010.safetensors",
648
+ "transformer.visual.transformer.resblocks.36.ln_2.bias": "model-00009-of-00010.safetensors",
649
+ "transformer.visual.transformer.resblocks.36.ln_2.weight": "model-00009-of-00010.safetensors",
650
+ "transformer.visual.transformer.resblocks.36.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
651
+ "transformer.visual.transformer.resblocks.36.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
652
+ "transformer.visual.transformer.resblocks.36.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
653
+ "transformer.visual.transformer.resblocks.36.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
654
+ "transformer.visual.transformer.resblocks.37.attn.in_proj.bias": "model-00009-of-00010.safetensors",
655
+ "transformer.visual.transformer.resblocks.37.attn.in_proj.weight": "model-00009-of-00010.safetensors",
656
+ "transformer.visual.transformer.resblocks.37.attn.out_proj.bias": "model-00009-of-00010.safetensors",
657
+ "transformer.visual.transformer.resblocks.37.attn.out_proj.weight": "model-00009-of-00010.safetensors",
658
+ "transformer.visual.transformer.resblocks.37.ln_1.bias": "model-00009-of-00010.safetensors",
659
+ "transformer.visual.transformer.resblocks.37.ln_1.weight": "model-00009-of-00010.safetensors",
660
+ "transformer.visual.transformer.resblocks.37.ln_2.bias": "model-00009-of-00010.safetensors",
661
+ "transformer.visual.transformer.resblocks.37.ln_2.weight": "model-00009-of-00010.safetensors",
662
+ "transformer.visual.transformer.resblocks.37.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
663
+ "transformer.visual.transformer.resblocks.37.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
664
+ "transformer.visual.transformer.resblocks.37.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
665
+ "transformer.visual.transformer.resblocks.37.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
666
+ "transformer.visual.transformer.resblocks.38.attn.in_proj.bias": "model-00009-of-00010.safetensors",
667
+ "transformer.visual.transformer.resblocks.38.attn.in_proj.weight": "model-00009-of-00010.safetensors",
668
+ "transformer.visual.transformer.resblocks.38.attn.out_proj.bias": "model-00009-of-00010.safetensors",
669
+ "transformer.visual.transformer.resblocks.38.attn.out_proj.weight": "model-00009-of-00010.safetensors",
670
+ "transformer.visual.transformer.resblocks.38.ln_1.bias": "model-00009-of-00010.safetensors",
671
+ "transformer.visual.transformer.resblocks.38.ln_1.weight": "model-00009-of-00010.safetensors",
672
+ "transformer.visual.transformer.resblocks.38.ln_2.bias": "model-00009-of-00010.safetensors",
673
+ "transformer.visual.transformer.resblocks.38.ln_2.weight": "model-00009-of-00010.safetensors",
674
+ "transformer.visual.transformer.resblocks.38.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
675
+ "transformer.visual.transformer.resblocks.38.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
676
+ "transformer.visual.transformer.resblocks.38.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
677
+ "transformer.visual.transformer.resblocks.38.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
678
+ "transformer.visual.transformer.resblocks.39.attn.in_proj.bias": "model-00009-of-00010.safetensors",
679
+ "transformer.visual.transformer.resblocks.39.attn.in_proj.weight": "model-00009-of-00010.safetensors",
680
+ "transformer.visual.transformer.resblocks.39.attn.out_proj.bias": "model-00009-of-00010.safetensors",
681
+ "transformer.visual.transformer.resblocks.39.attn.out_proj.weight": "model-00009-of-00010.safetensors",
682
+ "transformer.visual.transformer.resblocks.39.ln_1.bias": "model-00009-of-00010.safetensors",
683
+ "transformer.visual.transformer.resblocks.39.ln_1.weight": "model-00009-of-00010.safetensors",
684
+ "transformer.visual.transformer.resblocks.39.ln_2.bias": "model-00009-of-00010.safetensors",
685
+ "transformer.visual.transformer.resblocks.39.ln_2.weight": "model-00009-of-00010.safetensors",
686
+ "transformer.visual.transformer.resblocks.39.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
687
+ "transformer.visual.transformer.resblocks.39.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
688
+ "transformer.visual.transformer.resblocks.39.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
689
+ "transformer.visual.transformer.resblocks.39.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
690
+ "transformer.visual.transformer.resblocks.4.attn.in_proj.bias": "model-00008-of-00010.safetensors",
691
+ "transformer.visual.transformer.resblocks.4.attn.in_proj.weight": "model-00008-of-00010.safetensors",
692
+ "transformer.visual.transformer.resblocks.4.attn.out_proj.bias": "model-00008-of-00010.safetensors",
693
+ "transformer.visual.transformer.resblocks.4.attn.out_proj.weight": "model-00008-of-00010.safetensors",
694
+ "transformer.visual.transformer.resblocks.4.ln_1.bias": "model-00008-of-00010.safetensors",
695
+ "transformer.visual.transformer.resblocks.4.ln_1.weight": "model-00008-of-00010.safetensors",
696
+ "transformer.visual.transformer.resblocks.4.ln_2.bias": "model-00008-of-00010.safetensors",
697
+ "transformer.visual.transformer.resblocks.4.ln_2.weight": "model-00008-of-00010.safetensors",
698
+ "transformer.visual.transformer.resblocks.4.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
699
+ "transformer.visual.transformer.resblocks.4.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
700
+ "transformer.visual.transformer.resblocks.4.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
701
+ "transformer.visual.transformer.resblocks.4.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
702
+ "transformer.visual.transformer.resblocks.40.attn.in_proj.bias": "model-00009-of-00010.safetensors",
703
+ "transformer.visual.transformer.resblocks.40.attn.in_proj.weight": "model-00009-of-00010.safetensors",
704
+ "transformer.visual.transformer.resblocks.40.attn.out_proj.bias": "model-00009-of-00010.safetensors",
705
+ "transformer.visual.transformer.resblocks.40.attn.out_proj.weight": "model-00009-of-00010.safetensors",
706
+ "transformer.visual.transformer.resblocks.40.ln_1.bias": "model-00009-of-00010.safetensors",
707
+ "transformer.visual.transformer.resblocks.40.ln_1.weight": "model-00009-of-00010.safetensors",
708
+ "transformer.visual.transformer.resblocks.40.ln_2.bias": "model-00009-of-00010.safetensors",
709
+ "transformer.visual.transformer.resblocks.40.ln_2.weight": "model-00009-of-00010.safetensors",
710
+ "transformer.visual.transformer.resblocks.40.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
711
+ "transformer.visual.transformer.resblocks.40.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
712
+ "transformer.visual.transformer.resblocks.40.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
713
+ "transformer.visual.transformer.resblocks.40.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
714
+ "transformer.visual.transformer.resblocks.41.attn.in_proj.bias": "model-00009-of-00010.safetensors",
715
+ "transformer.visual.transformer.resblocks.41.attn.in_proj.weight": "model-00009-of-00010.safetensors",
716
+ "transformer.visual.transformer.resblocks.41.attn.out_proj.bias": "model-00009-of-00010.safetensors",
717
+ "transformer.visual.transformer.resblocks.41.attn.out_proj.weight": "model-00009-of-00010.safetensors",
718
+ "transformer.visual.transformer.resblocks.41.ln_1.bias": "model-00009-of-00010.safetensors",
719
+ "transformer.visual.transformer.resblocks.41.ln_1.weight": "model-00009-of-00010.safetensors",
720
+ "transformer.visual.transformer.resblocks.41.ln_2.bias": "model-00009-of-00010.safetensors",
721
+ "transformer.visual.transformer.resblocks.41.ln_2.weight": "model-00009-of-00010.safetensors",
722
+ "transformer.visual.transformer.resblocks.41.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
723
+ "transformer.visual.transformer.resblocks.41.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
724
+ "transformer.visual.transformer.resblocks.41.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
725
+ "transformer.visual.transformer.resblocks.41.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
726
+ "transformer.visual.transformer.resblocks.42.attn.in_proj.bias": "model-00009-of-00010.safetensors",
727
+ "transformer.visual.transformer.resblocks.42.attn.in_proj.weight": "model-00009-of-00010.safetensors",
728
+ "transformer.visual.transformer.resblocks.42.attn.out_proj.bias": "model-00009-of-00010.safetensors",
729
+ "transformer.visual.transformer.resblocks.42.attn.out_proj.weight": "model-00009-of-00010.safetensors",
730
+ "transformer.visual.transformer.resblocks.42.ln_1.bias": "model-00009-of-00010.safetensors",
731
+ "transformer.visual.transformer.resblocks.42.ln_1.weight": "model-00009-of-00010.safetensors",
732
+ "transformer.visual.transformer.resblocks.42.ln_2.bias": "model-00009-of-00010.safetensors",
733
+ "transformer.visual.transformer.resblocks.42.ln_2.weight": "model-00009-of-00010.safetensors",
734
+ "transformer.visual.transformer.resblocks.42.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
735
+ "transformer.visual.transformer.resblocks.42.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
736
+ "transformer.visual.transformer.resblocks.42.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
737
+ "transformer.visual.transformer.resblocks.42.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
738
+ "transformer.visual.transformer.resblocks.43.attn.in_proj.bias": "model-00009-of-00010.safetensors",
739
+ "transformer.visual.transformer.resblocks.43.attn.in_proj.weight": "model-00009-of-00010.safetensors",
740
+ "transformer.visual.transformer.resblocks.43.attn.out_proj.bias": "model-00009-of-00010.safetensors",
741
+ "transformer.visual.transformer.resblocks.43.attn.out_proj.weight": "model-00009-of-00010.safetensors",
742
+ "transformer.visual.transformer.resblocks.43.ln_1.bias": "model-00009-of-00010.safetensors",
743
+ "transformer.visual.transformer.resblocks.43.ln_1.weight": "model-00009-of-00010.safetensors",
744
+ "transformer.visual.transformer.resblocks.43.ln_2.bias": "model-00009-of-00010.safetensors",
745
+ "transformer.visual.transformer.resblocks.43.ln_2.weight": "model-00009-of-00010.safetensors",
746
+ "transformer.visual.transformer.resblocks.43.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
747
+ "transformer.visual.transformer.resblocks.43.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
748
+ "transformer.visual.transformer.resblocks.43.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
749
+ "transformer.visual.transformer.resblocks.43.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
750
+ "transformer.visual.transformer.resblocks.44.attn.in_proj.bias": "model-00009-of-00010.safetensors",
751
+ "transformer.visual.transformer.resblocks.44.attn.in_proj.weight": "model-00009-of-00010.safetensors",
752
+ "transformer.visual.transformer.resblocks.44.attn.out_proj.bias": "model-00009-of-00010.safetensors",
753
+ "transformer.visual.transformer.resblocks.44.attn.out_proj.weight": "model-00009-of-00010.safetensors",
754
+ "transformer.visual.transformer.resblocks.44.ln_1.bias": "model-00009-of-00010.safetensors",
755
+ "transformer.visual.transformer.resblocks.44.ln_1.weight": "model-00009-of-00010.safetensors",
756
+ "transformer.visual.transformer.resblocks.44.ln_2.bias": "model-00009-of-00010.safetensors",
757
+ "transformer.visual.transformer.resblocks.44.ln_2.weight": "model-00009-of-00010.safetensors",
758
+ "transformer.visual.transformer.resblocks.44.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
759
+ "transformer.visual.transformer.resblocks.44.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
760
+ "transformer.visual.transformer.resblocks.44.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
761
+ "transformer.visual.transformer.resblocks.44.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
762
+ "transformer.visual.transformer.resblocks.45.attn.in_proj.bias": "model-00009-of-00010.safetensors",
763
+ "transformer.visual.transformer.resblocks.45.attn.in_proj.weight": "model-00009-of-00010.safetensors",
764
+ "transformer.visual.transformer.resblocks.45.attn.out_proj.bias": "model-00009-of-00010.safetensors",
765
+ "transformer.visual.transformer.resblocks.45.attn.out_proj.weight": "model-00009-of-00010.safetensors",
766
+ "transformer.visual.transformer.resblocks.45.ln_1.bias": "model-00009-of-00010.safetensors",
767
+ "transformer.visual.transformer.resblocks.45.ln_1.weight": "model-00009-of-00010.safetensors",
768
+ "transformer.visual.transformer.resblocks.45.ln_2.bias": "model-00009-of-00010.safetensors",
769
+ "transformer.visual.transformer.resblocks.45.ln_2.weight": "model-00009-of-00010.safetensors",
770
+ "transformer.visual.transformer.resblocks.45.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
771
+ "transformer.visual.transformer.resblocks.45.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
772
+ "transformer.visual.transformer.resblocks.45.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
773
+ "transformer.visual.transformer.resblocks.45.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
774
+ "transformer.visual.transformer.resblocks.46.attn.in_proj.bias": "model-00009-of-00010.safetensors",
775
+ "transformer.visual.transformer.resblocks.46.attn.in_proj.weight": "model-00009-of-00010.safetensors",
776
+ "transformer.visual.transformer.resblocks.46.attn.out_proj.bias": "model-00009-of-00010.safetensors",
777
+ "transformer.visual.transformer.resblocks.46.attn.out_proj.weight": "model-00009-of-00010.safetensors",
778
+ "transformer.visual.transformer.resblocks.46.ln_1.bias": "model-00009-of-00010.safetensors",
779
+ "transformer.visual.transformer.resblocks.46.ln_1.weight": "model-00009-of-00010.safetensors",
780
+ "transformer.visual.transformer.resblocks.46.ln_2.bias": "model-00009-of-00010.safetensors",
781
+ "transformer.visual.transformer.resblocks.46.ln_2.weight": "model-00009-of-00010.safetensors",
782
+ "transformer.visual.transformer.resblocks.46.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
783
+ "transformer.visual.transformer.resblocks.46.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
784
+ "transformer.visual.transformer.resblocks.46.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
785
+ "transformer.visual.transformer.resblocks.46.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
786
+ "transformer.visual.transformer.resblocks.47.attn.in_proj.bias": "model-00009-of-00010.safetensors",
787
+ "transformer.visual.transformer.resblocks.47.attn.in_proj.weight": "model-00009-of-00010.safetensors",
788
+ "transformer.visual.transformer.resblocks.47.attn.out_proj.bias": "model-00009-of-00010.safetensors",
789
+ "transformer.visual.transformer.resblocks.47.attn.out_proj.weight": "model-00009-of-00010.safetensors",
790
+ "transformer.visual.transformer.resblocks.47.ln_1.bias": "model-00009-of-00010.safetensors",
791
+ "transformer.visual.transformer.resblocks.47.ln_1.weight": "model-00009-of-00010.safetensors",
792
+ "transformer.visual.transformer.resblocks.47.ln_2.bias": "model-00009-of-00010.safetensors",
793
+ "transformer.visual.transformer.resblocks.47.ln_2.weight": "model-00009-of-00010.safetensors",
794
+ "transformer.visual.transformer.resblocks.47.mlp.c_fc.bias": "model-00009-of-00010.safetensors",
795
+ "transformer.visual.transformer.resblocks.47.mlp.c_fc.weight": "model-00009-of-00010.safetensors",
796
+ "transformer.visual.transformer.resblocks.47.mlp.c_proj.bias": "model-00009-of-00010.safetensors",
797
+ "transformer.visual.transformer.resblocks.47.mlp.c_proj.weight": "model-00009-of-00010.safetensors",
798
+ "transformer.visual.transformer.resblocks.5.attn.in_proj.bias": "model-00008-of-00010.safetensors",
799
+ "transformer.visual.transformer.resblocks.5.attn.in_proj.weight": "model-00008-of-00010.safetensors",
800
+ "transformer.visual.transformer.resblocks.5.attn.out_proj.bias": "model-00008-of-00010.safetensors",
801
+ "transformer.visual.transformer.resblocks.5.attn.out_proj.weight": "model-00008-of-00010.safetensors",
802
+ "transformer.visual.transformer.resblocks.5.ln_1.bias": "model-00008-of-00010.safetensors",
803
+ "transformer.visual.transformer.resblocks.5.ln_1.weight": "model-00008-of-00010.safetensors",
804
+ "transformer.visual.transformer.resblocks.5.ln_2.bias": "model-00008-of-00010.safetensors",
805
+ "transformer.visual.transformer.resblocks.5.ln_2.weight": "model-00008-of-00010.safetensors",
806
+ "transformer.visual.transformer.resblocks.5.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
807
+ "transformer.visual.transformer.resblocks.5.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
808
+ "transformer.visual.transformer.resblocks.5.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
809
+ "transformer.visual.transformer.resblocks.5.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
810
+ "transformer.visual.transformer.resblocks.6.attn.in_proj.bias": "model-00008-of-00010.safetensors",
811
+ "transformer.visual.transformer.resblocks.6.attn.in_proj.weight": "model-00008-of-00010.safetensors",
812
+ "transformer.visual.transformer.resblocks.6.attn.out_proj.bias": "model-00008-of-00010.safetensors",
813
+ "transformer.visual.transformer.resblocks.6.attn.out_proj.weight": "model-00008-of-00010.safetensors",
814
+ "transformer.visual.transformer.resblocks.6.ln_1.bias": "model-00008-of-00010.safetensors",
815
+ "transformer.visual.transformer.resblocks.6.ln_1.weight": "model-00008-of-00010.safetensors",
816
+ "transformer.visual.transformer.resblocks.6.ln_2.bias": "model-00008-of-00010.safetensors",
817
+ "transformer.visual.transformer.resblocks.6.ln_2.weight": "model-00008-of-00010.safetensors",
818
+ "transformer.visual.transformer.resblocks.6.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
819
+ "transformer.visual.transformer.resblocks.6.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
820
+ "transformer.visual.transformer.resblocks.6.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
821
+ "transformer.visual.transformer.resblocks.6.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
822
+ "transformer.visual.transformer.resblocks.7.attn.in_proj.bias": "model-00008-of-00010.safetensors",
823
+ "transformer.visual.transformer.resblocks.7.attn.in_proj.weight": "model-00008-of-00010.safetensors",
824
+ "transformer.visual.transformer.resblocks.7.attn.out_proj.bias": "model-00008-of-00010.safetensors",
825
+ "transformer.visual.transformer.resblocks.7.attn.out_proj.weight": "model-00008-of-00010.safetensors",
826
+ "transformer.visual.transformer.resblocks.7.ln_1.bias": "model-00008-of-00010.safetensors",
827
+ "transformer.visual.transformer.resblocks.7.ln_1.weight": "model-00008-of-00010.safetensors",
828
+ "transformer.visual.transformer.resblocks.7.ln_2.bias": "model-00008-of-00010.safetensors",
829
+ "transformer.visual.transformer.resblocks.7.ln_2.weight": "model-00008-of-00010.safetensors",
830
+ "transformer.visual.transformer.resblocks.7.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
831
+ "transformer.visual.transformer.resblocks.7.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
832
+ "transformer.visual.transformer.resblocks.7.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
833
+ "transformer.visual.transformer.resblocks.7.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
834
+ "transformer.visual.transformer.resblocks.8.attn.in_proj.bias": "model-00008-of-00010.safetensors",
835
+ "transformer.visual.transformer.resblocks.8.attn.in_proj.weight": "model-00008-of-00010.safetensors",
836
+ "transformer.visual.transformer.resblocks.8.attn.out_proj.bias": "model-00008-of-00010.safetensors",
837
+ "transformer.visual.transformer.resblocks.8.attn.out_proj.weight": "model-00008-of-00010.safetensors",
838
+ "transformer.visual.transformer.resblocks.8.ln_1.bias": "model-00008-of-00010.safetensors",
839
+ "transformer.visual.transformer.resblocks.8.ln_1.weight": "model-00008-of-00010.safetensors",
840
+ "transformer.visual.transformer.resblocks.8.ln_2.bias": "model-00008-of-00010.safetensors",
841
+ "transformer.visual.transformer.resblocks.8.ln_2.weight": "model-00008-of-00010.safetensors",
842
+ "transformer.visual.transformer.resblocks.8.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
843
+ "transformer.visual.transformer.resblocks.8.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
844
+ "transformer.visual.transformer.resblocks.8.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
845
+ "transformer.visual.transformer.resblocks.8.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
846
+ "transformer.visual.transformer.resblocks.9.attn.in_proj.bias": "model-00008-of-00010.safetensors",
847
+ "transformer.visual.transformer.resblocks.9.attn.in_proj.weight": "model-00008-of-00010.safetensors",
848
+ "transformer.visual.transformer.resblocks.9.attn.out_proj.bias": "model-00008-of-00010.safetensors",
849
+ "transformer.visual.transformer.resblocks.9.attn.out_proj.weight": "model-00008-of-00010.safetensors",
850
+ "transformer.visual.transformer.resblocks.9.ln_1.bias": "model-00008-of-00010.safetensors",
851
+ "transformer.visual.transformer.resblocks.9.ln_1.weight": "model-00008-of-00010.safetensors",
852
+ "transformer.visual.transformer.resblocks.9.ln_2.bias": "model-00008-of-00010.safetensors",
853
+ "transformer.visual.transformer.resblocks.9.ln_2.weight": "model-00008-of-00010.safetensors",
854
+ "transformer.visual.transformer.resblocks.9.mlp.c_fc.bias": "model-00008-of-00010.safetensors",
855
+ "transformer.visual.transformer.resblocks.9.mlp.c_fc.weight": "model-00008-of-00010.safetensors",
856
+ "transformer.visual.transformer.resblocks.9.mlp.c_proj.bias": "model-00008-of-00010.safetensors",
857
+ "transformer.visual.transformer.resblocks.9.mlp.c_proj.weight": "model-00008-of-00010.safetensors",
858
+ "transformer.wte.weight": "model-00001-of-00010.safetensors"
859
+ }
860
+ }
qwen.tiktoken ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
tokenization_qwen.py ADDED
@@ -0,0 +1,598 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Alibaba Cloud.
2
+ #
3
+ # This source code is licensed under the license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ """Tokenization classes for QWen."""
7
+
8
+ import base64
9
+ import logging
10
+ import os
11
+ import requests
12
+ import unicodedata
13
+ from typing import Collection, Dict, List, Set, Tuple, Union, Any, Callable, Optional
14
+
15
+ import tiktoken
16
+ import numpy as np
17
+ from PIL import Image
18
+ from PIL import ImageFont
19
+ from PIL import ImageDraw
20
+ from transformers import PreTrainedTokenizer, AddedToken
21
+ from transformers.utils import try_to_load_from_cache
22
+
23
+ import matplotlib.colors as mcolors
24
+ from matplotlib.font_manager import FontProperties
25
+
26
+ logger = logging.getLogger(__name__)
27
+
28
+
29
+ VOCAB_FILES_NAMES = {"vocab_file": "qwen.tiktoken", "ttf": "SimSun.ttf"}
30
+ FONT_PATH = try_to_load_from_cache("Qwen/Qwen-VL-Chat", "SimSun.ttf")
31
+ if FONT_PATH is None:
32
+ if not os.path.exists("SimSun.ttf"):
33
+ ttf = requests.get("https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/SimSun.ttf")
34
+ open("SimSun.ttf", "wb").write(ttf.content)
35
+ FONT_PATH = "SimSun.ttf"
36
+
37
+ PAT_STR = r"""(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\p{L}\p{N}]?\p{L}+|\p{N}| ?[^\s\p{L}\p{N}]+[\r\n]*|\s*[\r\n]+|\s+(?!\S)|\s+"""
38
+ ENDOFTEXT = "<|endoftext|>"
39
+ IMSTART = "<|im_start|>"
40
+ IMEND = "<|im_end|>"
41
+ # as the default behavior is changed to allow special tokens in
42
+ # regular texts, the surface forms of special tokens need to be
43
+ # as different as possible to minimize the impact
44
+ EXTRAS = tuple((f"<|extra_{i}|>" for i in range(205)))
45
+ SPECIAL_TOKENS = (
46
+ ENDOFTEXT,
47
+ IMSTART,
48
+ IMEND,
49
+ ) + EXTRAS
50
+ IMG_TOKEN_SPAN = 256
51
+
52
+
53
+ def _load_tiktoken_bpe(tiktoken_bpe_file: str) -> Dict[bytes, int]:
54
+ with open(tiktoken_bpe_file, "rb") as f:
55
+ contents = f.read()
56
+ return {
57
+ base64.b64decode(token): int(rank)
58
+ for token, rank in (line.split() for line in contents.splitlines() if line)
59
+ }
60
+
61
+ def _list_find(
62
+ input_list: List[Any],
63
+ candidates: Tuple[Any],
64
+ start: int = 0,
65
+ ):
66
+ for i in range(start, len(input_list)):
67
+ if input_list[i] in candidates:
68
+ return i
69
+ return -1
70
+
71
+ def _replace_closed_tag(
72
+ input_tokens: List[Any],
73
+ start_tags: Union[Any, Tuple[Any]],
74
+ end_tags: Union[Any, Tuple[Any]],
75
+ inclusive_replace_func: Callable,
76
+ exclusive_replace_func: Callable = lambda x: x,
77
+ ):
78
+ if isinstance(start_tags, (str, int)):
79
+ start_tags = (start_tags,)
80
+ if isinstance(end_tags, (str, int)):
81
+ end_tags = (end_tags,)
82
+ assert len(start_tags) == len(end_tags)
83
+
84
+ output_tokens = []
85
+ end = 0
86
+ while True:
87
+ start = _list_find(input_tokens, start_tags, end)
88
+ if start == -1:
89
+ break
90
+ output_tokens.extend(exclusive_replace_func(input_tokens[end : start]))
91
+ tag_idx = start_tags.index(input_tokens[start])
92
+ end = _list_find(input_tokens, (end_tags[tag_idx],), start)
93
+ if end == -1:
94
+ raise ValueError("Unclosed image token")
95
+ output_tokens.extend(inclusive_replace_func(input_tokens[start : end + 1]))
96
+ end += 1
97
+ output_tokens.extend(exclusive_replace_func(input_tokens[end : ]))
98
+ return output_tokens
99
+
100
+ class QWenTokenizer(PreTrainedTokenizer):
101
+ """QWen tokenizer."""
102
+
103
+ vocab_files_names = VOCAB_FILES_NAMES
104
+
105
+ def __init__(
106
+ self,
107
+ vocab_file,
108
+ errors="replace",
109
+ image_start_tag='<img>',
110
+ image_end_tag='</img>',
111
+ image_pad_tag='<imgpad>',
112
+ ref_start_tag='<ref>',
113
+ ref_end_tag='</ref>',
114
+ box_start_tag='<box>',
115
+ box_end_tag='</box>',
116
+ quad_start_tag='<quad>',
117
+ quad_end_tag='</quad>',
118
+ **kwargs,
119
+ ):
120
+ super().__init__(**kwargs)
121
+ self.image_start_tag = image_start_tag
122
+ self.image_end_tag = image_end_tag
123
+ self.image_pad_tag = image_pad_tag
124
+ self.ref_start_tag = ref_start_tag
125
+ self.ref_end_tag = ref_end_tag
126
+ self.box_start_tag = box_start_tag
127
+ self.box_end_tag = box_end_tag
128
+ self.quad_start_tag = quad_start_tag
129
+ self.quad_end_tag = quad_end_tag
130
+ self.IMAGE_ST = (
131
+ ref_start_tag, ref_end_tag,
132
+ box_start_tag, box_end_tag,
133
+ quad_start_tag, quad_end_tag,
134
+ image_start_tag, image_end_tag,
135
+ image_pad_tag
136
+ )
137
+
138
+ self.errors = errors # how to handle errors in decoding
139
+
140
+ self.mergeable_ranks = _load_tiktoken_bpe(vocab_file) # type: dict[bytes, int]
141
+ self.special_tokens = {
142
+ token: index
143
+ for index, token in enumerate(
144
+ SPECIAL_TOKENS + self.IMAGE_ST, start=len(self.mergeable_ranks)
145
+ )
146
+ }
147
+ self.img_start_id = self.special_tokens[self.image_start_tag]
148
+ self.img_end_id = self.special_tokens[self.image_end_tag]
149
+ self.img_pad_id = self.special_tokens[self.image_pad_tag]
150
+ self.ref_start_id = self.special_tokens[self.ref_start_tag]
151
+ self.ref_end_id = self.special_tokens[self.ref_end_tag]
152
+ self.box_start_id = self.special_tokens[self.box_start_tag]
153
+ self.box_end_id = self.special_tokens[self.box_end_tag]
154
+ self.quad_start_id = self.special_tokens[self.quad_start_tag]
155
+ self.quad_end_id = self.special_tokens[self.quad_end_tag]
156
+ self.image_special_tokens = set([
157
+ self.ref_start_id, self.ref_end_id, self.box_start_id, self.box_end_id,
158
+ self.quad_start_id, self.quad_end_id,
159
+ ])
160
+
161
+ enc = tiktoken.Encoding(
162
+ "Qwen",
163
+ pat_str=PAT_STR,
164
+ mergeable_ranks=self.mergeable_ranks,
165
+ special_tokens=self.special_tokens,
166
+ )
167
+ assert (
168
+ len(self.mergeable_ranks) + len(self.special_tokens) == enc.n_vocab
169
+ ), f"{len(self.mergeable_ranks) + len(self.special_tokens)} != {enc.n_vocab} in encoding"
170
+
171
+ self.decoder = {
172
+ v: k for k, v in self.mergeable_ranks.items()
173
+ } # type: dict[int, bytes|str]
174
+ self.decoder.update({v: k for k, v in self.special_tokens.items()})
175
+
176
+ self.tokenizer = enc # type: tiktoken.Encoding
177
+
178
+ self.eod_id = self.tokenizer.eot_token
179
+ self.im_start_id = self.special_tokens[IMSTART]
180
+ self.im_end_id = self.special_tokens[IMEND]
181
+
182
+ def __getstate__(self):
183
+ # for pickle lovers
184
+ state = self.__dict__.copy()
185
+ del state['tokenizer']
186
+ return state
187
+
188
+ def __setstate__(self, state):
189
+ # tokenizer is not python native; don't pass it; rebuild it
190
+ self.__dict__.update(state)
191
+ enc = tiktoken.Encoding(
192
+ "Qwen",
193
+ pat_str=PAT_STR,
194
+ mergeable_ranks=self.mergeable_ranks,
195
+ special_tokens=self.special_tokens,
196
+ )
197
+ self.tokenizer = enc
198
+
199
+
200
+ def __len__(self) -> int:
201
+ return self.tokenizer.n_vocab
202
+
203
+ def get_vocab(self) -> Dict[bytes, int]:
204
+ return self.mergeable_ranks
205
+
206
+ def convert_tokens_to_ids(
207
+ self, tokens: Union[bytes, str, List[Union[bytes, str]]]
208
+ ) -> List[int]:
209
+ ids = []
210
+ if isinstance(tokens, (str, bytes)):
211
+ if tokens in self.special_tokens:
212
+ return self.special_tokens[tokens]
213
+ else:
214
+ return self.mergeable_ranks.get(tokens)
215
+ for token in tokens:
216
+ if token in self.special_tokens:
217
+ ids.append(self.special_tokens[token])
218
+ else:
219
+ ids.append(self.mergeable_ranks.get(token))
220
+ return ids
221
+
222
+ def _add_tokens(self, new_tokens: Union[List[str], List[AddedToken]], special_tokens: bool = False) -> int:
223
+ if not special_tokens and new_tokens:
224
+ raise ValueError('Adding regular tokens is not supported')
225
+ for token in new_tokens:
226
+ surface_form = token.content if isinstance(token, AddedToken) else token
227
+ if surface_form not in SPECIAL_TOKENS + self.IMAGE_ST:
228
+ raise ValueError('Adding unknown special tokens is not supported')
229
+ return 0
230
+
231
+ def save_vocabulary(self, save_directory: str, **kwargs) -> Tuple[str]:
232
+ """
233
+ Save only the vocabulary of the tokenizer (vocabulary).
234
+
235
+ Returns:
236
+ `Tuple(str)`: Paths to the files saved.
237
+ """
238
+ file_path = os.path.join(save_directory, "qwen.tiktoken")
239
+ with open(file_path, "w", encoding="utf8") as w:
240
+ for k, v in self.mergeable_ranks.items():
241
+ line = base64.b64encode(k).decode("utf8") + " " + str(v) + "\n"
242
+ w.write(line)
243
+ return (file_path,)
244
+
245
+ def tokenize(
246
+ self,
247
+ text: str,
248
+ allowed_special: Union[Set, str] = "all",
249
+ disallowed_special: Union[Collection, str] = (),
250
+ **kwargs,
251
+ ) -> List[Union[bytes, str]]:
252
+ """
253
+ Converts a string in a sequence of tokens.
254
+
255
+ Args:
256
+ text (`str`):
257
+ The sequence to be encoded.
258
+ allowed_special (`Literal["all"]` or `set`):
259
+ The surface forms of the tokens to be encoded as special tokens in regular texts.
260
+ Default to "all".
261
+ disallowed_special (`Literal["all"]` or `Collection`):
262
+ The surface forms of the tokens that should not be in regular texts and trigger errors.
263
+ Default to an empty tuple.
264
+
265
+ kwargs (additional keyword arguments, *optional*):
266
+ Will be passed to the underlying model specific encode method.
267
+
268
+ Returns:
269
+ `List[bytes|str]`: The list of tokens.
270
+ """
271
+ tokens = []
272
+ text = unicodedata.normalize("NFC", text)
273
+
274
+ # this implementation takes a detour: text -> token id -> token surface forms
275
+ for t in self.tokenizer.encode(
276
+ text, allowed_special=allowed_special, disallowed_special=disallowed_special
277
+ ):
278
+ tokens.append(self.decoder[t])
279
+
280
+ def _encode_imgurl(img_tokens):
281
+ assert img_tokens[0] == self.image_start_tag and img_tokens[-1] == self.image_end_tag
282
+ img_tokens = img_tokens[1:-1]
283
+ img_url = b''.join(img_tokens)
284
+ out_img_tokens = list(map(self.decoder.get, img_url))
285
+ if len(out_img_tokens) > IMG_TOKEN_SPAN:
286
+ raise ValueError("The content in {}..{} is too long".format(
287
+ self.image_start_tag, self.image_end_tag))
288
+ out_img_tokens.extend([self.image_pad_tag] * (IMG_TOKEN_SPAN - len(out_img_tokens)))
289
+ out_img_tokens = [self.image_start_tag] + out_img_tokens + [self.image_end_tag]
290
+ return out_img_tokens
291
+
292
+ return _replace_closed_tag(tokens, self.image_start_tag, self.image_end_tag, _encode_imgurl)
293
+
294
+ def convert_tokens_to_string(self, tokens: List[Union[bytes, str]]) -> str:
295
+ """
296
+ Converts a sequence of tokens in a single string.
297
+ """
298
+ text = ""
299
+ temp = b""
300
+ for t in tokens:
301
+ if isinstance(t, str):
302
+ if temp:
303
+ text += temp.decode("utf-8", errors=self.errors)
304
+ temp = b""
305
+ text += t
306
+ elif isinstance(t, bytes):
307
+ temp += t
308
+ else:
309
+ raise TypeError("token should only be of type types or str")
310
+ if temp:
311
+ text += temp.decode("utf-8", errors=self.errors)
312
+ return text
313
+
314
+ @property
315
+ def vocab_size(self):
316
+ return self.tokenizer.n_vocab
317
+
318
+ def _convert_id_to_token(self, index: int) -> Union[bytes, str]:
319
+ """Converts an id to a token, special tokens included"""
320
+ if index in self.decoder:
321
+ return self.decoder[index]
322
+ raise ValueError("unknown ids")
323
+
324
+ def _convert_token_to_id(self, token: Union[bytes, str]) -> int:
325
+ """Converts a token to an id using the vocab, special tokens included"""
326
+ if token in self.special_tokens:
327
+ return self.special_tokens[token]
328
+ if token in self.mergeable_ranks:
329
+ return self.mergeable_ranks[token]
330
+ raise ValueError("unknown token")
331
+
332
+ def _tokenize(self, text: str, **kwargs):
333
+ """
334
+ Converts a string in a sequence of tokens (string), using the tokenizer. Split in words for word-based
335
+ vocabulary or sub-words for sub-word-based vocabularies (BPE/SentencePieces/WordPieces).
336
+
337
+ Do NOT take care of added tokens.
338
+ """
339
+ raise NotImplementedError
340
+
341
+ def _decode(
342
+ self,
343
+ token_ids: Union[int, List[int]],
344
+ skip_special_tokens: bool = False,
345
+ errors: str = None,
346
+ **kwargs,
347
+ ) -> str:
348
+ if isinstance(token_ids, int):
349
+ token_ids = [token_ids]
350
+
351
+ def _decode_imgurl(img_token_ids):
352
+ assert img_token_ids[0] == self.img_start_id and img_token_ids[-1] == self.img_end_id
353
+ img_token_ids = img_token_ids[1:-1]
354
+ img_token_ids = img_token_ids[ : img_token_ids.index(self.img_pad_id)]
355
+ img_url = bytes(img_token_ids).decode('utf-8')
356
+ return [self.img_start_id] + self.tokenizer.encode(img_url) + [self.img_end_id]
357
+
358
+ token_ids = _replace_closed_tag(token_ids, self.img_start_id, self.img_end_id, _decode_imgurl)
359
+
360
+ if skip_special_tokens:
361
+ if kwargs.get('keep_image_special', False):
362
+ token_ids = [i for i in token_ids if i < self.eod_id
363
+ or i in self.image_special_tokens]
364
+ else:
365
+ token_ids = [i for i in token_ids if i < self.eod_id]
366
+ return self.tokenizer.decode(token_ids, errors=errors or self.errors)
367
+
368
+ def to_list_format(self, text: str):
369
+ text = unicodedata.normalize("NFC", text)
370
+ token_ids = self.tokenizer.encode(
371
+ text, allowed_special=set(self.IMAGE_ST + (ENDOFTEXT,)))
372
+
373
+ def _encode_vl_info(tokens):
374
+ if len(tokens) == 0:
375
+ return []
376
+ if tokens[0] == self.img_start_id and tokens[-1] == self.img_end_id:
377
+ key = 'image'
378
+ elif tokens[0] == self.ref_start_id and tokens[-1] == self.ref_end_id:
379
+ key = 'ref'
380
+ elif tokens[0] == self.box_start_id and tokens[-1] == self.box_end_id:
381
+ key = 'box'
382
+ elif tokens[0] == self.quad_start_id and tokens[-1] == self.quad_end_id:
383
+ key = 'quad'
384
+ else:
385
+ _tobytes = lambda x: x.encode('utf-8') if isinstance(x, str) else x
386
+ return [{'text': b''.join(map(_tobytes, map(self.decoder.get, tokens))).decode('utf-8')}]
387
+ _tobytes = lambda x: x.encode('utf-8') if isinstance(x, str) else x
388
+ val = b''.join(map(_tobytes, map(self.decoder.get, tokens[1:-1]))).decode('utf-8')
389
+ return [{key: val}]
390
+
391
+ return _replace_closed_tag(
392
+ token_ids,
393
+ (self.img_start_id, self.ref_start_id, self.box_start_id, self.quad_start_id),
394
+ (self.img_end_id, self.ref_end_id, self.box_end_id, self.quad_end_id),
395
+ _encode_vl_info,
396
+ _encode_vl_info,
397
+ )
398
+
399
+ def from_list_format(self, list_format: List[Dict]):
400
+ text = ''
401
+ num_images = 0
402
+ for ele in list_format:
403
+ if 'image' in ele:
404
+ num_images += 1
405
+ text += f'Picture {num_images}: '
406
+ text += self.image_start_tag + ele['image'] + self.image_end_tag
407
+ text += '\n'
408
+ elif 'text' in ele:
409
+ text += ele['text']
410
+ elif 'box' in ele:
411
+ if 'ref' in ele:
412
+ text += self.ref_start_tag + ele['ref'] + self.ref_end_tag
413
+ for box in ele['box']:
414
+ text += self.box_start_tag + '(%d,%d),(%d,%d)' % (box[0], box[1], box[2], box[3]) + self.box_end_tag
415
+ else:
416
+ raise ValueError("Unsupport element: " + str(ele))
417
+ return text
418
+
419
+ def _fetch_latest_picture(self, response, history):
420
+ if history is None:
421
+ history = []
422
+ _history = history + [(response, None)]
423
+ for q, r in _history[::-1]:
424
+ for ele in self.to_list_format(q)[::-1]:
425
+ if 'image' in ele:
426
+ return ele['image']
427
+ return None
428
+
429
+ def _fetch_all_box_with_ref(self, text):
430
+ list_format = self.to_list_format(text)
431
+ output = []
432
+ for i, ele in enumerate(list_format):
433
+ if 'box' in ele:
434
+ bbox = tuple(map(int, ele['box'].replace('(', '').replace(')', '').split(',')))
435
+ assert len(bbox) == 4
436
+ output.append({'box': bbox})
437
+ if i > 0 and 'ref' in list_format[i-1]:
438
+ output[-1]['ref'] = list_format[i-1]['ref'].strip()
439
+ return output
440
+
441
+ def draw_bbox_on_latest_picture(
442
+ self,
443
+ response,
444
+ history=None,
445
+ ) -> Optional[Image.Image]:
446
+ image = self._fetch_latest_picture(response, history)
447
+ if image is None:
448
+ return None
449
+ if image.startswith("http://") or image.startswith("https://"):
450
+ image = Image.open(requests.get(image, stream=True).raw).convert("RGB")
451
+ h, w = image.height, image.width
452
+ else:
453
+ image = np.asarray(Image.open(image).convert("RGB"))
454
+ h, w = image.shape[0], image.shape[1]
455
+ visualizer = Visualizer(image)
456
+
457
+ boxes = self._fetch_all_box_with_ref(response)
458
+ if not boxes:
459
+ return None
460
+ color = random.choice([_ for _ in mcolors.TABLEAU_COLORS.keys()]) # init color
461
+ for box in boxes:
462
+ if 'ref' in box: # random new color for new refexps
463
+ color = random.choice([_ for _ in mcolors.TABLEAU_COLORS.keys()])
464
+ x1, y1, x2, y2 = box['box']
465
+ x1, y1, x2, y2 = (int(x1 / 1000 * w), int(y1 / 1000 * h), int(x2 / 1000 * w), int(y2 / 1000 * h))
466
+ visualizer.draw_box((x1, y1, x2, y2), alpha=1, edge_color=color)
467
+ if 'ref' in box:
468
+ visualizer.draw_text(box['ref'], (x1, y1), color=color, horizontal_alignment="left")
469
+ return visualizer.output
470
+
471
+
472
+ import colorsys
473
+ import logging
474
+ import math
475
+ import numpy as np
476
+ import matplotlib as mpl
477
+ import matplotlib.colors as mplc
478
+ import matplotlib.figure as mplfigure
479
+ import torch
480
+ from matplotlib.backends.backend_agg import FigureCanvasAgg
481
+ from PIL import Image
482
+ import random
483
+
484
+ logger = logging.getLogger(__name__)
485
+
486
+
487
+ class VisImage:
488
+ def __init__(self, img, scale=1.0):
489
+ self.img = img
490
+ self.scale = scale
491
+ self.width, self.height = img.shape[1], img.shape[0]
492
+ self._setup_figure(img)
493
+
494
+ def _setup_figure(self, img):
495
+ fig = mplfigure.Figure(frameon=False)
496
+ self.dpi = fig.get_dpi()
497
+ # add a small 1e-2 to avoid precision lost due to matplotlib's truncation
498
+ # (https://github.com/matplotlib/matplotlib/issues/15363)
499
+ fig.set_size_inches(
500
+ (self.width * self.scale + 1e-2) / self.dpi,
501
+ (self.height * self.scale + 1e-2) / self.dpi,
502
+ )
503
+ self.canvas = FigureCanvasAgg(fig)
504
+ # self.canvas = mpl.backends.backend_cairo.FigureCanvasCairo(fig)
505
+ ax = fig.add_axes([0.0, 0.0, 1.0, 1.0])
506
+ ax.axis("off")
507
+ self.fig = fig
508
+ self.ax = ax
509
+ self.reset_image(img)
510
+
511
+ def reset_image(self, img):
512
+ img = img.astype("uint8")
513
+ self.ax.imshow(img, extent=(0, self.width, self.height, 0), interpolation="nearest")
514
+
515
+ def save(self, filepath):
516
+ self.fig.savefig(filepath)
517
+
518
+ def get_image(self):
519
+ canvas = self.canvas
520
+ s, (width, height) = canvas.print_to_buffer()
521
+
522
+ buffer = np.frombuffer(s, dtype="uint8")
523
+
524
+ img_rgba = buffer.reshape(height, width, 4)
525
+ rgb, alpha = np.split(img_rgba, [3], axis=2)
526
+ return rgb.astype("uint8")
527
+
528
+
529
+ class Visualizer:
530
+ def __init__(self, img_rgb, metadata=None, scale=1.0):
531
+ self.img = np.asarray(img_rgb).clip(0, 255).astype(np.uint8)
532
+ self.font_path = FONT_PATH
533
+ self.output = VisImage(self.img, scale=scale)
534
+ self.cpu_device = torch.device("cpu")
535
+
536
+ # too small texts are useless, therefore clamp to 14
537
+ self._default_font_size = max(
538
+ np.sqrt(self.output.height * self.output.width) // 30, 15 // scale
539
+ )
540
+
541
+ def draw_text(
542
+ self,
543
+ text,
544
+ position,
545
+ *,
546
+ font_size=None,
547
+ color="g",
548
+ horizontal_alignment="center",
549
+ rotation=0,
550
+ ):
551
+ if not font_size:
552
+ font_size = self._default_font_size
553
+
554
+ # since the text background is dark, we don't want the text to be dark
555
+ color = np.maximum(list(mplc.to_rgb(color)), 0.2)
556
+ color[np.argmax(color)] = max(0.8, np.max(color))
557
+
558
+ x, y = position
559
+ self.output.ax.text(
560
+ x,
561
+ y,
562
+ text,
563
+ size=font_size * self.output.scale,
564
+ fontproperties=FontProperties(fname=self.font_path),
565
+ bbox={"facecolor": "black", "alpha": 0.8, "pad": 0.7, "edgecolor": "none"},
566
+ verticalalignment="top",
567
+ horizontalalignment=horizontal_alignment,
568
+ color=color,
569
+ zorder=10,
570
+ rotation=rotation,
571
+ )
572
+ return self.output
573
+
574
+ def draw_box(self, box_coord, alpha=0.5, edge_color="g", line_style="-"):
575
+
576
+ x0, y0, x1, y1 = box_coord
577
+ width = x1 - x0
578
+ height = y1 - y0
579
+
580
+ linewidth = max(self._default_font_size / 4, 1)
581
+
582
+ self.output.ax.add_patch(
583
+ mpl.patches.Rectangle(
584
+ (x0, y0),
585
+ width,
586
+ height,
587
+ fill=False,
588
+ edgecolor=edge_color,
589
+ linewidth=linewidth * self.output.scale,
590
+ alpha=alpha,
591
+ linestyle=line_style,
592
+ )
593
+ )
594
+ return self.output
595
+
596
+ def get_output(self):
597
+
598
+ return self.output
tokenizer_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_map": {
3
+ "AutoTokenizer": [
4
+ "tokenization_qwen.QWenTokenizer",
5
+ null
6
+ ]
7
+ },
8
+ "clean_up_tokenization_spaces": true,
9
+ "model_max_length": 8192,
10
+ "tokenizer_class": "QWenTokenizer"
11
+ }