Upload folder using huggingface_hub
Browse files- .gitattributes +6 -0
- README.md +140 -3
- assets/neg_1.jpeg +3 -0
- assets/neg_2.jpeg +3 -0
- assets/positive_1.jpeg +3 -0
- assets/positive_2.jpeg +3 -0
- assets/query_1.png +3 -0
- assets/query_2.png +3 -0
- config.json +53 -0
- generation_config.json +15 -0
- merges.txt +0 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +831 -0
- modeling_bge_vl_screenshot.py +216 -0
- preprocessor_config.json +19 -0
- tokenizer.json +0 -0
- tokenizer_config.json +207 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
assets/neg_1.jpeg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
assets/neg_2.jpeg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
assets/positive_1.jpeg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
assets/positive_2.jpeg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
assets/query_1.png filter=lfs diff=lfs merge=lfs -text
|
41 |
+
assets/query_2.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,140 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
- zh
|
6 |
+
- ar
|
7 |
+
- fr
|
8 |
+
- es
|
9 |
+
metrics:
|
10 |
+
- recall
|
11 |
+
base_model:
|
12 |
+
- Qwen/Qwen2.5-VL-3B-Instruct
|
13 |
+
library_name: transformers == 4.51.3
|
14 |
+
---
|
15 |
+
|
16 |
+
<h1 align="center">Vis-IR: Unifying Search With Visualized Information Retrieval</h1>
|
17 |
+
|
18 |
+
<p align="center">
|
19 |
+
<a href="https://arxiv.org/abs/2502.11431">
|
20 |
+
<img alt="Build" src="http://img.shields.io/badge/arXiv-2502.11431-B31B1B.svg">
|
21 |
+
</a>
|
22 |
+
<a href="https://github.com/VectorSpaceLab/Vis-IR">
|
23 |
+
<img alt="Build" src="https://img.shields.io/badge/Github-Code-blue">
|
24 |
+
</a>
|
25 |
+
<a href="https://huggingface.co/datasets/marsh123/VIRA/">
|
26 |
+
<img alt="Build" src="https://img.shields.io/badge/🤗 Datasets-VIRA-yellow">
|
27 |
+
</a>
|
28 |
+
<a href="https://huggingface.co/datasets/marsh123/MVRB">
|
29 |
+
<img alt="Build" src="https://img.shields.io/badge/🤗 Datasets-MVRB-yellow">
|
30 |
+
</a>
|
31 |
+
<!-- <a href="">
|
32 |
+
<img alt="Build" src="https://img.shields.io/badge/🤗 Model-UniSE CLIP-yellow">
|
33 |
+
</a> -->
|
34 |
+
<a href="https://huggingface.co/marsh123/UniSE">
|
35 |
+
<img alt="Build" src="https://img.shields.io/badge/🤗 Model-UniSE MLLM-yellow">
|
36 |
+
</a>
|
37 |
+
|
38 |
+
</p>
|
39 |
+
|
40 |
+
<h4 align="center">
|
41 |
+
<p>
|
42 |
+
<a href=#news>News</a> |
|
43 |
+
<a href=#release-plan>Release Plan</a> |
|
44 |
+
<a href=#overview>Overview</a> |
|
45 |
+
<a href="#license">License</a> |
|
46 |
+
<a href="#citation">Citation</a>
|
47 |
+
<p>
|
48 |
+
</h4>
|
49 |
+
|
50 |
+
## News
|
51 |
+
|
52 |
+
```2025-04-06``` 🚀🚀 MVRB Dataset are released on Huggingface: [MVRB](https://huggingface.co/datasets/marsh123/MVRB)
|
53 |
+
|
54 |
+
```2025-04-02``` 🚀🚀 VIRA Dataset are released on Huggingface: [VIRA](https://huggingface.co/datasets/marsh123/VIRA/)
|
55 |
+
|
56 |
+
```2025-04-01``` 🚀🚀 UniSE models are released on Huggingface: [UniSE-MLMM](https://huggingface.co/marsh123/UniSE-MLLM/)
|
57 |
+
|
58 |
+
```2025-02-17``` 🎉🎉 Release our paper: [Any Information Is Just Worth One Single Screenshot: Unifying Search With Visualized Information Retrieval](https://arxiv.org/abs/2502.11431).
|
59 |
+
|
60 |
+
## Release Plan
|
61 |
+
- [x] Paper
|
62 |
+
- [x] UniSE models
|
63 |
+
- [x] VIRA Dataset
|
64 |
+
- [x] MVRB benchmark
|
65 |
+
- [ ] Evaluation code
|
66 |
+
- [ ] Fine-tuning code
|
67 |
+
|
68 |
+
## Overview
|
69 |
+
|
70 |
+
In this work, we formally define an emerging IR paradigm called Visualized Information Retrieval, or **VisIR**, where multimodal information, such as texts, images, tables and charts, is jointly represented by a unified visual format called **Screenshots**, for various retrieval applications. We further make three key contributions for VisIR. First, we create **VIRA** (Vis-IR Aggregation), a large-scale dataset comprising a vast collection of screenshots from diverse sources, carefully curated into captioned and questionanswer formats. Second, we develop **UniSE** (Universal Screenshot Embeddings), a family of retrieval models that enable screenshots to query or be queried across arbitrary data modalities. Finally, we construct **MVRB** (Massive Visualized IR Benchmark), a comprehensive benchmark covering a variety of task forms and application scenarios. Through extensive evaluations on MVRB, we highlight the deficiency from existing multimodal retrievers and the substantial improvements made by UniSE.
|
71 |
+
|
72 |
+
## Model Usage
|
73 |
+
|
74 |
+
> Our code works well on transformers==4.51.3, and we recommend using this version.
|
75 |
+
|
76 |
+
### 1. UniSE-MLLM Models
|
77 |
+
|
78 |
+
```python
|
79 |
+
import torch
|
80 |
+
from transformers import AutoModel
|
81 |
+
|
82 |
+
MODEL_NAME = "BAAI/BGE-VL-Screenshot"
|
83 |
+
model = AutoModel.from_pretrained(MODEL_NAME,
|
84 |
+
trust_remote_code=True,
|
85 |
+
attn_implementation="flash_attention_2",
|
86 |
+
torch_dtype=torch.bfloat16
|
87 |
+
) # You must set trust_remote_code=True, and we recommend using flash_attention_2 and bfloat16
|
88 |
+
model.set_processor(MODEL_NAME)
|
89 |
+
|
90 |
+
with torch.no_grad():
|
91 |
+
device = torch.device("cuda:0")
|
92 |
+
model = model.to(device)
|
93 |
+
model.eval()
|
94 |
+
|
95 |
+
query_inputs = model.data_process(
|
96 |
+
images=["./assets/query_1.png", "./assets/query_2.png"],
|
97 |
+
text=["After a 17% drop, what is Nvidia's closing stock price?", "I would like to see a detailed and intuitive performance comparison between the two models."],
|
98 |
+
q_or_c="query",
|
99 |
+
task_instruction="Represent the given image with the given query."
|
100 |
+
)
|
101 |
+
|
102 |
+
candidate_inputs = model.data_process(
|
103 |
+
images=["./assets/positive_1.jpeg", "./assets/neg_1.jpeg",
|
104 |
+
"./assets/positive_2.jpeg", "./assets/neg_2.jpeg"],
|
105 |
+
q_or_c="candidate"
|
106 |
+
)
|
107 |
+
|
108 |
+
query_embeddings = model(**query_inputs)
|
109 |
+
candidate_embeddings = model(**candidate_inputs)
|
110 |
+
scores = torch.matmul(query_embeddings, candidate_embeddings.T)
|
111 |
+
print(scores)
|
112 |
+
# Expected output:
|
113 |
+
# [[0.5352, 0.3223, 0.1738, 0.1348],
|
114 |
+
# [0.1592, 0.0757, 0.4375, 0.4180]]
|
115 |
+
```
|
116 |
+
|
117 |
+
## Performance on MVRB
|
118 |
+
|
119 |
+
MVRB is a comprehensive benchmark designed for the retrieval task centered on screenshots. It includes four meta tasks: Screenshot Retrieval (SR), Composed Screenshot Retrieval (CSR), Screenshot QA (SQA), and Open-Vocabulary Classification (OVC). We evaluate three main types of retrievers on MVRB: OCR+Text Retrievers, General Multimodal Retrievers, and Screenshot Document Retrievers. Our proposed UniSE-MLLM achieves state-of-the-art (SOTA) performance on this benchmark.
|
120 |
+

|
121 |
+
|
122 |
+
|
123 |
+
|
124 |
+
## License
|
125 |
+
Vis-IR is licensed under the [MIT License](LICENSE).
|
126 |
+
|
127 |
+
|
128 |
+
## Citation
|
129 |
+
If you find this model useful, please cite:
|
130 |
+
|
131 |
+
```
|
132 |
+
@article{liu2025any,
|
133 |
+
title={Any Information Is Just Worth One Single Screenshot: Unifying Search With Visualized Information Retrieval},
|
134 |
+
author={Liu, Ze and Liang, Zhengyang and Zhou, Junjie and Liu, Zheng and Lian, Defu},
|
135 |
+
journal={arXiv preprint arXiv:2502.11431},
|
136 |
+
year={2025}
|
137 |
+
}
|
138 |
+
```
|
139 |
+
|
140 |
+
|
assets/neg_1.jpeg
ADDED
![]() |
Git LFS Details
|
assets/neg_2.jpeg
ADDED
![]() |
Git LFS Details
|
assets/positive_1.jpeg
ADDED
![]() |
Git LFS Details
|
assets/positive_2.jpeg
ADDED
![]() |
Git LFS Details
|
assets/query_1.png
ADDED
![]() |
Git LFS Details
|
assets/query_2.png
ADDED
![]() |
Git LFS Details
|
config.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Qwen2_5_VLForConditionalGeneration"
|
4 |
+
],
|
5 |
+
"auto_map": {
|
6 |
+
"AutoModel": "modeling_bge_vl_screenshot.BGE_VL_Screenshot"
|
7 |
+
},
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bos_token_id": 151643,
|
10 |
+
"eos_token_id": 151645,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 2048,
|
13 |
+
"image_token_id": 151655,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 11008,
|
16 |
+
"max_position_embeddings": 128000,
|
17 |
+
"max_window_layers": 70,
|
18 |
+
"model_type": "qwen2_5_vl",
|
19 |
+
"num_attention_heads": 16,
|
20 |
+
"num_hidden_layers": 36,
|
21 |
+
"num_key_value_heads": 2,
|
22 |
+
"rms_norm_eps": 1e-06,
|
23 |
+
"rope_scaling": {
|
24 |
+
"mrope_section": [
|
25 |
+
16,
|
26 |
+
24,
|
27 |
+
24
|
28 |
+
],
|
29 |
+
"rope_type": "default",
|
30 |
+
"type": "default"
|
31 |
+
},
|
32 |
+
"rope_theta": 1000000.0,
|
33 |
+
"sliding_window": 32768,
|
34 |
+
"tie_word_embeddings": true,
|
35 |
+
"torch_dtype": "bfloat16",
|
36 |
+
"transformers_version": "4.51.3",
|
37 |
+
"use_cache": true,
|
38 |
+
"use_sliding_window": false,
|
39 |
+
"video_token_id": 151656,
|
40 |
+
"vision_config": {
|
41 |
+
"hidden_size": 1280,
|
42 |
+
"in_chans": 3,
|
43 |
+
"model_type": "qwen2_5_vl",
|
44 |
+
"out_hidden_size": 2048,
|
45 |
+
"spatial_patch_size": 14,
|
46 |
+
"tokens_per_second": 2,
|
47 |
+
"torch_dtype": "bfloat16"
|
48 |
+
},
|
49 |
+
"vision_end_token_id": 151653,
|
50 |
+
"vision_start_token_id": 151652,
|
51 |
+
"vision_token_id": 151654,
|
52 |
+
"vocab_size": 151936
|
53 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"attn_implementation": "flash_attention_2",
|
3 |
+
"bos_token_id": 151643,
|
4 |
+
"do_sample": true,
|
5 |
+
"eos_token_id": [
|
6 |
+
151645,
|
7 |
+
151643
|
8 |
+
],
|
9 |
+
"pad_token_id": 151643,
|
10 |
+
"repetition_penalty": 1.05,
|
11 |
+
"temperature": 0.1,
|
12 |
+
"top_k": 1,
|
13 |
+
"top_p": 0.001,
|
14 |
+
"transformers_version": "4.51.3"
|
15 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model-00001-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fff4727acd58d6949333d9cea76b571f1de93b5011bfe74a3b81434ba9e593b
|
3 |
+
size 1978621000
|
model-00002-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d1bfd4fb46bd553b1cfbded2e2e5f9fa5948b78919e32ed9b9bc7777ad5be7f
|
3 |
+
size 1995630768
|
model-00003-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:329e145bd9e4e9e2b2e160da807eab1c738323378cbe5b3a18b78a1f06bb7259
|
3 |
+
size 1993528056
|
model-00004-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f90f3eec50e7c8d1b307b9d8a26980e6dcc367c9ab4c1a8b1106ec4d6901020
|
3 |
+
size 1541557696
|
model.safetensors.index.json
ADDED
@@ -0,0 +1,831 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"metadata": {
|
3 |
+
"total_size": 7509245952
|
4 |
+
},
|
5 |
+
"weight_map": {
|
6 |
+
"model.embed_tokens.weight": "model-00001-of-00004.safetensors",
|
7 |
+
"model.layers.0.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
8 |
+
"model.layers.0.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
9 |
+
"model.layers.0.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
10 |
+
"model.layers.0.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
11 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
12 |
+
"model.layers.0.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
13 |
+
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
14 |
+
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
15 |
+
"model.layers.0.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
16 |
+
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
17 |
+
"model.layers.0.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
18 |
+
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
19 |
+
"model.layers.1.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
20 |
+
"model.layers.1.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
21 |
+
"model.layers.1.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
22 |
+
"model.layers.1.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
23 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
24 |
+
"model.layers.1.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
25 |
+
"model.layers.1.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
26 |
+
"model.layers.1.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
27 |
+
"model.layers.1.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
28 |
+
"model.layers.1.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
29 |
+
"model.layers.1.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
30 |
+
"model.layers.1.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
31 |
+
"model.layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
32 |
+
"model.layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
33 |
+
"model.layers.10.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
34 |
+
"model.layers.10.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
35 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
36 |
+
"model.layers.10.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
37 |
+
"model.layers.10.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
38 |
+
"model.layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
39 |
+
"model.layers.10.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
40 |
+
"model.layers.10.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
41 |
+
"model.layers.10.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
42 |
+
"model.layers.10.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
43 |
+
"model.layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
44 |
+
"model.layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
45 |
+
"model.layers.11.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
46 |
+
"model.layers.11.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
47 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
48 |
+
"model.layers.11.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
49 |
+
"model.layers.11.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
50 |
+
"model.layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
51 |
+
"model.layers.11.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
52 |
+
"model.layers.11.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
53 |
+
"model.layers.11.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
54 |
+
"model.layers.11.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
55 |
+
"model.layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
56 |
+
"model.layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
57 |
+
"model.layers.12.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
58 |
+
"model.layers.12.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
59 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
60 |
+
"model.layers.12.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
61 |
+
"model.layers.12.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
62 |
+
"model.layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
63 |
+
"model.layers.12.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
64 |
+
"model.layers.12.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
65 |
+
"model.layers.12.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
66 |
+
"model.layers.12.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
67 |
+
"model.layers.13.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
68 |
+
"model.layers.13.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
69 |
+
"model.layers.13.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
70 |
+
"model.layers.13.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
71 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
72 |
+
"model.layers.13.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
73 |
+
"model.layers.13.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
74 |
+
"model.layers.13.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
75 |
+
"model.layers.13.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
76 |
+
"model.layers.13.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
77 |
+
"model.layers.13.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
78 |
+
"model.layers.13.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
79 |
+
"model.layers.14.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
80 |
+
"model.layers.14.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
81 |
+
"model.layers.14.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
82 |
+
"model.layers.14.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
83 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
84 |
+
"model.layers.14.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
85 |
+
"model.layers.14.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
86 |
+
"model.layers.14.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
87 |
+
"model.layers.14.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
88 |
+
"model.layers.14.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
89 |
+
"model.layers.14.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
90 |
+
"model.layers.14.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
91 |
+
"model.layers.15.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
92 |
+
"model.layers.15.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
93 |
+
"model.layers.15.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
94 |
+
"model.layers.15.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
95 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
96 |
+
"model.layers.15.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
97 |
+
"model.layers.15.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
98 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
99 |
+
"model.layers.15.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
100 |
+
"model.layers.15.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
101 |
+
"model.layers.15.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
102 |
+
"model.layers.15.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
103 |
+
"model.layers.16.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
104 |
+
"model.layers.16.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
105 |
+
"model.layers.16.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
106 |
+
"model.layers.16.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
107 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
108 |
+
"model.layers.16.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
109 |
+
"model.layers.16.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
110 |
+
"model.layers.16.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
111 |
+
"model.layers.16.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
112 |
+
"model.layers.16.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
113 |
+
"model.layers.16.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
114 |
+
"model.layers.16.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
115 |
+
"model.layers.17.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
116 |
+
"model.layers.17.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
117 |
+
"model.layers.17.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
118 |
+
"model.layers.17.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
119 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
120 |
+
"model.layers.17.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
121 |
+
"model.layers.17.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
122 |
+
"model.layers.17.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
123 |
+
"model.layers.17.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
124 |
+
"model.layers.17.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
125 |
+
"model.layers.17.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
126 |
+
"model.layers.17.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
127 |
+
"model.layers.18.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
128 |
+
"model.layers.18.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
129 |
+
"model.layers.18.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
130 |
+
"model.layers.18.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
131 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
132 |
+
"model.layers.18.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
133 |
+
"model.layers.18.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
134 |
+
"model.layers.18.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
135 |
+
"model.layers.18.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
136 |
+
"model.layers.18.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
137 |
+
"model.layers.18.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
138 |
+
"model.layers.18.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
139 |
+
"model.layers.19.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
140 |
+
"model.layers.19.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
141 |
+
"model.layers.19.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
142 |
+
"model.layers.19.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
143 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
144 |
+
"model.layers.19.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
145 |
+
"model.layers.19.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
146 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
147 |
+
"model.layers.19.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
148 |
+
"model.layers.19.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
149 |
+
"model.layers.19.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
150 |
+
"model.layers.19.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
151 |
+
"model.layers.2.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
152 |
+
"model.layers.2.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
153 |
+
"model.layers.2.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
154 |
+
"model.layers.2.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
155 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
156 |
+
"model.layers.2.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
157 |
+
"model.layers.2.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
158 |
+
"model.layers.2.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
159 |
+
"model.layers.2.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
160 |
+
"model.layers.2.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
161 |
+
"model.layers.2.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
162 |
+
"model.layers.2.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
163 |
+
"model.layers.20.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
164 |
+
"model.layers.20.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
165 |
+
"model.layers.20.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
166 |
+
"model.layers.20.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
167 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
168 |
+
"model.layers.20.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
169 |
+
"model.layers.20.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
170 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
171 |
+
"model.layers.20.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
172 |
+
"model.layers.20.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
173 |
+
"model.layers.20.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
174 |
+
"model.layers.20.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
175 |
+
"model.layers.21.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
176 |
+
"model.layers.21.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
177 |
+
"model.layers.21.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
178 |
+
"model.layers.21.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
179 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
180 |
+
"model.layers.21.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
181 |
+
"model.layers.21.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
182 |
+
"model.layers.21.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
183 |
+
"model.layers.21.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
184 |
+
"model.layers.21.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
185 |
+
"model.layers.21.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
186 |
+
"model.layers.21.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
187 |
+
"model.layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
188 |
+
"model.layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
189 |
+
"model.layers.22.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
190 |
+
"model.layers.22.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
191 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
192 |
+
"model.layers.22.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
193 |
+
"model.layers.22.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
194 |
+
"model.layers.22.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
195 |
+
"model.layers.22.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
196 |
+
"model.layers.22.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
197 |
+
"model.layers.22.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
198 |
+
"model.layers.22.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
199 |
+
"model.layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
200 |
+
"model.layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
201 |
+
"model.layers.23.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
202 |
+
"model.layers.23.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
203 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
204 |
+
"model.layers.23.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
205 |
+
"model.layers.23.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
206 |
+
"model.layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
207 |
+
"model.layers.23.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
208 |
+
"model.layers.23.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
209 |
+
"model.layers.23.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
210 |
+
"model.layers.23.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
211 |
+
"model.layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
212 |
+
"model.layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
213 |
+
"model.layers.24.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
214 |
+
"model.layers.24.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
215 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
216 |
+
"model.layers.24.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
217 |
+
"model.layers.24.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
218 |
+
"model.layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
219 |
+
"model.layers.24.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
220 |
+
"model.layers.24.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
221 |
+
"model.layers.24.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
222 |
+
"model.layers.24.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
223 |
+
"model.layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
224 |
+
"model.layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
225 |
+
"model.layers.25.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
226 |
+
"model.layers.25.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
227 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
228 |
+
"model.layers.25.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
229 |
+
"model.layers.25.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
230 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
231 |
+
"model.layers.25.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
232 |
+
"model.layers.25.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
233 |
+
"model.layers.25.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
234 |
+
"model.layers.25.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
235 |
+
"model.layers.26.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
236 |
+
"model.layers.26.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
237 |
+
"model.layers.26.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
238 |
+
"model.layers.26.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
239 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
240 |
+
"model.layers.26.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
241 |
+
"model.layers.26.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
242 |
+
"model.layers.26.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
243 |
+
"model.layers.26.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
244 |
+
"model.layers.26.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
245 |
+
"model.layers.26.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
246 |
+
"model.layers.26.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
247 |
+
"model.layers.27.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
248 |
+
"model.layers.27.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
249 |
+
"model.layers.27.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
250 |
+
"model.layers.27.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
251 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
252 |
+
"model.layers.27.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
253 |
+
"model.layers.27.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
254 |
+
"model.layers.27.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
255 |
+
"model.layers.27.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
256 |
+
"model.layers.27.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
257 |
+
"model.layers.27.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
258 |
+
"model.layers.27.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
259 |
+
"model.layers.28.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
260 |
+
"model.layers.28.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
261 |
+
"model.layers.28.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
262 |
+
"model.layers.28.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
263 |
+
"model.layers.28.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
264 |
+
"model.layers.28.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
265 |
+
"model.layers.28.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
266 |
+
"model.layers.28.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
267 |
+
"model.layers.28.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
268 |
+
"model.layers.28.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
269 |
+
"model.layers.28.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
270 |
+
"model.layers.28.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
271 |
+
"model.layers.29.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
272 |
+
"model.layers.29.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
273 |
+
"model.layers.29.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
274 |
+
"model.layers.29.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
275 |
+
"model.layers.29.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
276 |
+
"model.layers.29.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
277 |
+
"model.layers.29.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
278 |
+
"model.layers.29.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
279 |
+
"model.layers.29.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
280 |
+
"model.layers.29.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
281 |
+
"model.layers.29.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
282 |
+
"model.layers.29.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
283 |
+
"model.layers.3.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
284 |
+
"model.layers.3.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
285 |
+
"model.layers.3.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
286 |
+
"model.layers.3.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
287 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
288 |
+
"model.layers.3.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
289 |
+
"model.layers.3.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
290 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
291 |
+
"model.layers.3.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
292 |
+
"model.layers.3.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
293 |
+
"model.layers.3.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
294 |
+
"model.layers.3.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
295 |
+
"model.layers.30.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
296 |
+
"model.layers.30.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
297 |
+
"model.layers.30.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
298 |
+
"model.layers.30.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
299 |
+
"model.layers.30.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
300 |
+
"model.layers.30.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
301 |
+
"model.layers.30.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
302 |
+
"model.layers.30.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
303 |
+
"model.layers.30.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
304 |
+
"model.layers.30.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
305 |
+
"model.layers.30.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
306 |
+
"model.layers.30.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
307 |
+
"model.layers.31.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
308 |
+
"model.layers.31.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
309 |
+
"model.layers.31.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
310 |
+
"model.layers.31.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
311 |
+
"model.layers.31.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
312 |
+
"model.layers.31.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
313 |
+
"model.layers.31.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
314 |
+
"model.layers.31.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
315 |
+
"model.layers.31.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
316 |
+
"model.layers.31.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
317 |
+
"model.layers.31.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
318 |
+
"model.layers.31.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
319 |
+
"model.layers.32.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
320 |
+
"model.layers.32.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
321 |
+
"model.layers.32.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
322 |
+
"model.layers.32.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
323 |
+
"model.layers.32.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
324 |
+
"model.layers.32.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
325 |
+
"model.layers.32.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
326 |
+
"model.layers.32.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
327 |
+
"model.layers.32.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
328 |
+
"model.layers.32.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
329 |
+
"model.layers.32.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
330 |
+
"model.layers.32.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
331 |
+
"model.layers.33.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
332 |
+
"model.layers.33.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
333 |
+
"model.layers.33.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
334 |
+
"model.layers.33.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
335 |
+
"model.layers.33.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
336 |
+
"model.layers.33.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
337 |
+
"model.layers.33.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
338 |
+
"model.layers.33.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
339 |
+
"model.layers.33.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
340 |
+
"model.layers.33.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
341 |
+
"model.layers.33.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
342 |
+
"model.layers.33.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
343 |
+
"model.layers.34.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
344 |
+
"model.layers.34.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
345 |
+
"model.layers.34.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
346 |
+
"model.layers.34.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
347 |
+
"model.layers.34.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
348 |
+
"model.layers.34.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
349 |
+
"model.layers.34.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
350 |
+
"model.layers.34.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
351 |
+
"model.layers.34.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
352 |
+
"model.layers.34.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
353 |
+
"model.layers.34.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
354 |
+
"model.layers.34.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
355 |
+
"model.layers.35.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
356 |
+
"model.layers.35.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
357 |
+
"model.layers.35.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
358 |
+
"model.layers.35.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
359 |
+
"model.layers.35.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
360 |
+
"model.layers.35.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
361 |
+
"model.layers.35.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
362 |
+
"model.layers.35.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
363 |
+
"model.layers.35.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
364 |
+
"model.layers.35.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
365 |
+
"model.layers.35.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
366 |
+
"model.layers.35.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
367 |
+
"model.layers.4.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
368 |
+
"model.layers.4.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
369 |
+
"model.layers.4.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
370 |
+
"model.layers.4.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
371 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
372 |
+
"model.layers.4.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
373 |
+
"model.layers.4.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
374 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
375 |
+
"model.layers.4.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
376 |
+
"model.layers.4.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
377 |
+
"model.layers.4.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
378 |
+
"model.layers.4.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
379 |
+
"model.layers.5.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
380 |
+
"model.layers.5.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
381 |
+
"model.layers.5.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
382 |
+
"model.layers.5.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
383 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
384 |
+
"model.layers.5.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
385 |
+
"model.layers.5.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
386 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
387 |
+
"model.layers.5.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
388 |
+
"model.layers.5.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
389 |
+
"model.layers.5.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
390 |
+
"model.layers.5.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
391 |
+
"model.layers.6.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
392 |
+
"model.layers.6.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
393 |
+
"model.layers.6.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
394 |
+
"model.layers.6.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
395 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
396 |
+
"model.layers.6.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
397 |
+
"model.layers.6.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
398 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
399 |
+
"model.layers.6.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
400 |
+
"model.layers.6.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
401 |
+
"model.layers.6.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
402 |
+
"model.layers.6.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
403 |
+
"model.layers.7.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
404 |
+
"model.layers.7.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
405 |
+
"model.layers.7.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
406 |
+
"model.layers.7.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
407 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
408 |
+
"model.layers.7.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
409 |
+
"model.layers.7.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
410 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
411 |
+
"model.layers.7.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
412 |
+
"model.layers.7.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
413 |
+
"model.layers.7.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
414 |
+
"model.layers.7.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
415 |
+
"model.layers.8.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
416 |
+
"model.layers.8.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
417 |
+
"model.layers.8.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
418 |
+
"model.layers.8.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
419 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
420 |
+
"model.layers.8.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
421 |
+
"model.layers.8.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
422 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
423 |
+
"model.layers.8.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
424 |
+
"model.layers.8.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
425 |
+
"model.layers.8.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
426 |
+
"model.layers.8.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
427 |
+
"model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
428 |
+
"model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
429 |
+
"model.layers.9.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
430 |
+
"model.layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
431 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
432 |
+
"model.layers.9.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
433 |
+
"model.layers.9.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
434 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
435 |
+
"model.layers.9.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
436 |
+
"model.layers.9.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
437 |
+
"model.layers.9.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
438 |
+
"model.layers.9.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
439 |
+
"model.norm.weight": "model-00004-of-00004.safetensors",
|
440 |
+
"visual.blocks.0.attn.proj.bias": "model-00001-of-00004.safetensors",
|
441 |
+
"visual.blocks.0.attn.proj.weight": "model-00001-of-00004.safetensors",
|
442 |
+
"visual.blocks.0.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
443 |
+
"visual.blocks.0.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
444 |
+
"visual.blocks.0.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
445 |
+
"visual.blocks.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
446 |
+
"visual.blocks.0.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
447 |
+
"visual.blocks.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
448 |
+
"visual.blocks.0.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
449 |
+
"visual.blocks.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
450 |
+
"visual.blocks.0.norm1.weight": "model-00001-of-00004.safetensors",
|
451 |
+
"visual.blocks.0.norm2.weight": "model-00001-of-00004.safetensors",
|
452 |
+
"visual.blocks.1.attn.proj.bias": "model-00001-of-00004.safetensors",
|
453 |
+
"visual.blocks.1.attn.proj.weight": "model-00001-of-00004.safetensors",
|
454 |
+
"visual.blocks.1.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
455 |
+
"visual.blocks.1.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
456 |
+
"visual.blocks.1.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
457 |
+
"visual.blocks.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
458 |
+
"visual.blocks.1.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
459 |
+
"visual.blocks.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
460 |
+
"visual.blocks.1.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
461 |
+
"visual.blocks.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
462 |
+
"visual.blocks.1.norm1.weight": "model-00001-of-00004.safetensors",
|
463 |
+
"visual.blocks.1.norm2.weight": "model-00001-of-00004.safetensors",
|
464 |
+
"visual.blocks.10.attn.proj.bias": "model-00001-of-00004.safetensors",
|
465 |
+
"visual.blocks.10.attn.proj.weight": "model-00001-of-00004.safetensors",
|
466 |
+
"visual.blocks.10.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
467 |
+
"visual.blocks.10.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
468 |
+
"visual.blocks.10.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
469 |
+
"visual.blocks.10.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
470 |
+
"visual.blocks.10.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
471 |
+
"visual.blocks.10.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
472 |
+
"visual.blocks.10.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
473 |
+
"visual.blocks.10.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
474 |
+
"visual.blocks.10.norm1.weight": "model-00001-of-00004.safetensors",
|
475 |
+
"visual.blocks.10.norm2.weight": "model-00001-of-00004.safetensors",
|
476 |
+
"visual.blocks.11.attn.proj.bias": "model-00001-of-00004.safetensors",
|
477 |
+
"visual.blocks.11.attn.proj.weight": "model-00001-of-00004.safetensors",
|
478 |
+
"visual.blocks.11.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
479 |
+
"visual.blocks.11.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
480 |
+
"visual.blocks.11.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
481 |
+
"visual.blocks.11.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
482 |
+
"visual.blocks.11.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
483 |
+
"visual.blocks.11.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
484 |
+
"visual.blocks.11.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
485 |
+
"visual.blocks.11.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
486 |
+
"visual.blocks.11.norm1.weight": "model-00001-of-00004.safetensors",
|
487 |
+
"visual.blocks.11.norm2.weight": "model-00001-of-00004.safetensors",
|
488 |
+
"visual.blocks.12.attn.proj.bias": "model-00001-of-00004.safetensors",
|
489 |
+
"visual.blocks.12.attn.proj.weight": "model-00001-of-00004.safetensors",
|
490 |
+
"visual.blocks.12.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
491 |
+
"visual.blocks.12.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
492 |
+
"visual.blocks.12.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
493 |
+
"visual.blocks.12.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
494 |
+
"visual.blocks.12.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
495 |
+
"visual.blocks.12.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
496 |
+
"visual.blocks.12.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
497 |
+
"visual.blocks.12.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
498 |
+
"visual.blocks.12.norm1.weight": "model-00001-of-00004.safetensors",
|
499 |
+
"visual.blocks.12.norm2.weight": "model-00001-of-00004.safetensors",
|
500 |
+
"visual.blocks.13.attn.proj.bias": "model-00001-of-00004.safetensors",
|
501 |
+
"visual.blocks.13.attn.proj.weight": "model-00001-of-00004.safetensors",
|
502 |
+
"visual.blocks.13.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
503 |
+
"visual.blocks.13.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
504 |
+
"visual.blocks.13.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
505 |
+
"visual.blocks.13.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
506 |
+
"visual.blocks.13.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
507 |
+
"visual.blocks.13.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
508 |
+
"visual.blocks.13.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
509 |
+
"visual.blocks.13.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
510 |
+
"visual.blocks.13.norm1.weight": "model-00001-of-00004.safetensors",
|
511 |
+
"visual.blocks.13.norm2.weight": "model-00001-of-00004.safetensors",
|
512 |
+
"visual.blocks.14.attn.proj.bias": "model-00001-of-00004.safetensors",
|
513 |
+
"visual.blocks.14.attn.proj.weight": "model-00001-of-00004.safetensors",
|
514 |
+
"visual.blocks.14.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
515 |
+
"visual.blocks.14.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
516 |
+
"visual.blocks.14.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
517 |
+
"visual.blocks.14.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
518 |
+
"visual.blocks.14.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
519 |
+
"visual.blocks.14.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
520 |
+
"visual.blocks.14.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
521 |
+
"visual.blocks.14.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
522 |
+
"visual.blocks.14.norm1.weight": "model-00001-of-00004.safetensors",
|
523 |
+
"visual.blocks.14.norm2.weight": "model-00001-of-00004.safetensors",
|
524 |
+
"visual.blocks.15.attn.proj.bias": "model-00001-of-00004.safetensors",
|
525 |
+
"visual.blocks.15.attn.proj.weight": "model-00001-of-00004.safetensors",
|
526 |
+
"visual.blocks.15.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
527 |
+
"visual.blocks.15.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
528 |
+
"visual.blocks.15.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
529 |
+
"visual.blocks.15.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
530 |
+
"visual.blocks.15.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
531 |
+
"visual.blocks.15.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
532 |
+
"visual.blocks.15.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
533 |
+
"visual.blocks.15.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
534 |
+
"visual.blocks.15.norm1.weight": "model-00001-of-00004.safetensors",
|
535 |
+
"visual.blocks.15.norm2.weight": "model-00001-of-00004.safetensors",
|
536 |
+
"visual.blocks.16.attn.proj.bias": "model-00001-of-00004.safetensors",
|
537 |
+
"visual.blocks.16.attn.proj.weight": "model-00001-of-00004.safetensors",
|
538 |
+
"visual.blocks.16.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
539 |
+
"visual.blocks.16.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
540 |
+
"visual.blocks.16.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
541 |
+
"visual.blocks.16.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
542 |
+
"visual.blocks.16.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
543 |
+
"visual.blocks.16.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
544 |
+
"visual.blocks.16.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
545 |
+
"visual.blocks.16.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
546 |
+
"visual.blocks.16.norm1.weight": "model-00001-of-00004.safetensors",
|
547 |
+
"visual.blocks.16.norm2.weight": "model-00001-of-00004.safetensors",
|
548 |
+
"visual.blocks.17.attn.proj.bias": "model-00001-of-00004.safetensors",
|
549 |
+
"visual.blocks.17.attn.proj.weight": "model-00001-of-00004.safetensors",
|
550 |
+
"visual.blocks.17.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
551 |
+
"visual.blocks.17.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
552 |
+
"visual.blocks.17.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
553 |
+
"visual.blocks.17.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
554 |
+
"visual.blocks.17.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
555 |
+
"visual.blocks.17.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
556 |
+
"visual.blocks.17.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
557 |
+
"visual.blocks.17.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
558 |
+
"visual.blocks.17.norm1.weight": "model-00001-of-00004.safetensors",
|
559 |
+
"visual.blocks.17.norm2.weight": "model-00001-of-00004.safetensors",
|
560 |
+
"visual.blocks.18.attn.proj.bias": "model-00001-of-00004.safetensors",
|
561 |
+
"visual.blocks.18.attn.proj.weight": "model-00001-of-00004.safetensors",
|
562 |
+
"visual.blocks.18.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
563 |
+
"visual.blocks.18.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
564 |
+
"visual.blocks.18.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
565 |
+
"visual.blocks.18.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
566 |
+
"visual.blocks.18.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
567 |
+
"visual.blocks.18.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
568 |
+
"visual.blocks.18.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
569 |
+
"visual.blocks.18.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
570 |
+
"visual.blocks.18.norm1.weight": "model-00001-of-00004.safetensors",
|
571 |
+
"visual.blocks.18.norm2.weight": "model-00001-of-00004.safetensors",
|
572 |
+
"visual.blocks.19.attn.proj.bias": "model-00001-of-00004.safetensors",
|
573 |
+
"visual.blocks.19.attn.proj.weight": "model-00001-of-00004.safetensors",
|
574 |
+
"visual.blocks.19.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
575 |
+
"visual.blocks.19.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
576 |
+
"visual.blocks.19.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
577 |
+
"visual.blocks.19.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
578 |
+
"visual.blocks.19.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
579 |
+
"visual.blocks.19.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
580 |
+
"visual.blocks.19.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
581 |
+
"visual.blocks.19.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
582 |
+
"visual.blocks.19.norm1.weight": "model-00001-of-00004.safetensors",
|
583 |
+
"visual.blocks.19.norm2.weight": "model-00001-of-00004.safetensors",
|
584 |
+
"visual.blocks.2.attn.proj.bias": "model-00001-of-00004.safetensors",
|
585 |
+
"visual.blocks.2.attn.proj.weight": "model-00001-of-00004.safetensors",
|
586 |
+
"visual.blocks.2.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
587 |
+
"visual.blocks.2.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
588 |
+
"visual.blocks.2.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
589 |
+
"visual.blocks.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
590 |
+
"visual.blocks.2.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
591 |
+
"visual.blocks.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
592 |
+
"visual.blocks.2.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
593 |
+
"visual.blocks.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
594 |
+
"visual.blocks.2.norm1.weight": "model-00001-of-00004.safetensors",
|
595 |
+
"visual.blocks.2.norm2.weight": "model-00001-of-00004.safetensors",
|
596 |
+
"visual.blocks.20.attn.proj.bias": "model-00001-of-00004.safetensors",
|
597 |
+
"visual.blocks.20.attn.proj.weight": "model-00001-of-00004.safetensors",
|
598 |
+
"visual.blocks.20.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
599 |
+
"visual.blocks.20.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
600 |
+
"visual.blocks.20.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
601 |
+
"visual.blocks.20.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
602 |
+
"visual.blocks.20.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
603 |
+
"visual.blocks.20.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
604 |
+
"visual.blocks.20.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
605 |
+
"visual.blocks.20.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
606 |
+
"visual.blocks.20.norm1.weight": "model-00001-of-00004.safetensors",
|
607 |
+
"visual.blocks.20.norm2.weight": "model-00001-of-00004.safetensors",
|
608 |
+
"visual.blocks.21.attn.proj.bias": "model-00001-of-00004.safetensors",
|
609 |
+
"visual.blocks.21.attn.proj.weight": "model-00001-of-00004.safetensors",
|
610 |
+
"visual.blocks.21.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
611 |
+
"visual.blocks.21.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
612 |
+
"visual.blocks.21.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
613 |
+
"visual.blocks.21.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
614 |
+
"visual.blocks.21.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
615 |
+
"visual.blocks.21.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
616 |
+
"visual.blocks.21.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
617 |
+
"visual.blocks.21.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
618 |
+
"visual.blocks.21.norm1.weight": "model-00001-of-00004.safetensors",
|
619 |
+
"visual.blocks.21.norm2.weight": "model-00001-of-00004.safetensors",
|
620 |
+
"visual.blocks.22.attn.proj.bias": "model-00001-of-00004.safetensors",
|
621 |
+
"visual.blocks.22.attn.proj.weight": "model-00001-of-00004.safetensors",
|
622 |
+
"visual.blocks.22.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
623 |
+
"visual.blocks.22.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
624 |
+
"visual.blocks.22.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
625 |
+
"visual.blocks.22.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
626 |
+
"visual.blocks.22.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
627 |
+
"visual.blocks.22.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
628 |
+
"visual.blocks.22.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
629 |
+
"visual.blocks.22.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
630 |
+
"visual.blocks.22.norm1.weight": "model-00001-of-00004.safetensors",
|
631 |
+
"visual.blocks.22.norm2.weight": "model-00001-of-00004.safetensors",
|
632 |
+
"visual.blocks.23.attn.proj.bias": "model-00001-of-00004.safetensors",
|
633 |
+
"visual.blocks.23.attn.proj.weight": "model-00001-of-00004.safetensors",
|
634 |
+
"visual.blocks.23.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
635 |
+
"visual.blocks.23.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
636 |
+
"visual.blocks.23.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
637 |
+
"visual.blocks.23.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
638 |
+
"visual.blocks.23.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
639 |
+
"visual.blocks.23.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
640 |
+
"visual.blocks.23.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
641 |
+
"visual.blocks.23.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
642 |
+
"visual.blocks.23.norm1.weight": "model-00001-of-00004.safetensors",
|
643 |
+
"visual.blocks.23.norm2.weight": "model-00001-of-00004.safetensors",
|
644 |
+
"visual.blocks.24.attn.proj.bias": "model-00001-of-00004.safetensors",
|
645 |
+
"visual.blocks.24.attn.proj.weight": "model-00001-of-00004.safetensors",
|
646 |
+
"visual.blocks.24.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
647 |
+
"visual.blocks.24.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
648 |
+
"visual.blocks.24.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
649 |
+
"visual.blocks.24.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
650 |
+
"visual.blocks.24.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
651 |
+
"visual.blocks.24.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
652 |
+
"visual.blocks.24.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
653 |
+
"visual.blocks.24.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
654 |
+
"visual.blocks.24.norm1.weight": "model-00001-of-00004.safetensors",
|
655 |
+
"visual.blocks.24.norm2.weight": "model-00001-of-00004.safetensors",
|
656 |
+
"visual.blocks.25.attn.proj.bias": "model-00001-of-00004.safetensors",
|
657 |
+
"visual.blocks.25.attn.proj.weight": "model-00001-of-00004.safetensors",
|
658 |
+
"visual.blocks.25.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
659 |
+
"visual.blocks.25.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
660 |
+
"visual.blocks.25.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
661 |
+
"visual.blocks.25.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
662 |
+
"visual.blocks.25.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
663 |
+
"visual.blocks.25.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
664 |
+
"visual.blocks.25.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
665 |
+
"visual.blocks.25.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
666 |
+
"visual.blocks.25.norm1.weight": "model-00001-of-00004.safetensors",
|
667 |
+
"visual.blocks.25.norm2.weight": "model-00001-of-00004.safetensors",
|
668 |
+
"visual.blocks.26.attn.proj.bias": "model-00001-of-00004.safetensors",
|
669 |
+
"visual.blocks.26.attn.proj.weight": "model-00001-of-00004.safetensors",
|
670 |
+
"visual.blocks.26.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
671 |
+
"visual.blocks.26.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
672 |
+
"visual.blocks.26.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
673 |
+
"visual.blocks.26.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
674 |
+
"visual.blocks.26.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
675 |
+
"visual.blocks.26.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
676 |
+
"visual.blocks.26.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
677 |
+
"visual.blocks.26.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
678 |
+
"visual.blocks.26.norm1.weight": "model-00001-of-00004.safetensors",
|
679 |
+
"visual.blocks.26.norm2.weight": "model-00001-of-00004.safetensors",
|
680 |
+
"visual.blocks.27.attn.proj.bias": "model-00001-of-00004.safetensors",
|
681 |
+
"visual.blocks.27.attn.proj.weight": "model-00001-of-00004.safetensors",
|
682 |
+
"visual.blocks.27.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
683 |
+
"visual.blocks.27.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
684 |
+
"visual.blocks.27.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
685 |
+
"visual.blocks.27.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
686 |
+
"visual.blocks.27.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
687 |
+
"visual.blocks.27.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
688 |
+
"visual.blocks.27.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
689 |
+
"visual.blocks.27.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
690 |
+
"visual.blocks.27.norm1.weight": "model-00001-of-00004.safetensors",
|
691 |
+
"visual.blocks.27.norm2.weight": "model-00001-of-00004.safetensors",
|
692 |
+
"visual.blocks.28.attn.proj.bias": "model-00001-of-00004.safetensors",
|
693 |
+
"visual.blocks.28.attn.proj.weight": "model-00001-of-00004.safetensors",
|
694 |
+
"visual.blocks.28.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
695 |
+
"visual.blocks.28.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
696 |
+
"visual.blocks.28.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
697 |
+
"visual.blocks.28.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
698 |
+
"visual.blocks.28.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
699 |
+
"visual.blocks.28.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
700 |
+
"visual.blocks.28.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
701 |
+
"visual.blocks.28.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
702 |
+
"visual.blocks.28.norm1.weight": "model-00001-of-00004.safetensors",
|
703 |
+
"visual.blocks.28.norm2.weight": "model-00001-of-00004.safetensors",
|
704 |
+
"visual.blocks.29.attn.proj.bias": "model-00001-of-00004.safetensors",
|
705 |
+
"visual.blocks.29.attn.proj.weight": "model-00001-of-00004.safetensors",
|
706 |
+
"visual.blocks.29.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
707 |
+
"visual.blocks.29.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
708 |
+
"visual.blocks.29.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
709 |
+
"visual.blocks.29.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
710 |
+
"visual.blocks.29.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
711 |
+
"visual.blocks.29.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
712 |
+
"visual.blocks.29.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
713 |
+
"visual.blocks.29.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
714 |
+
"visual.blocks.29.norm1.weight": "model-00001-of-00004.safetensors",
|
715 |
+
"visual.blocks.29.norm2.weight": "model-00001-of-00004.safetensors",
|
716 |
+
"visual.blocks.3.attn.proj.bias": "model-00001-of-00004.safetensors",
|
717 |
+
"visual.blocks.3.attn.proj.weight": "model-00001-of-00004.safetensors",
|
718 |
+
"visual.blocks.3.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
719 |
+
"visual.blocks.3.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
720 |
+
"visual.blocks.3.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
721 |
+
"visual.blocks.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
722 |
+
"visual.blocks.3.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
723 |
+
"visual.blocks.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
724 |
+
"visual.blocks.3.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
725 |
+
"visual.blocks.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
726 |
+
"visual.blocks.3.norm1.weight": "model-00001-of-00004.safetensors",
|
727 |
+
"visual.blocks.3.norm2.weight": "model-00001-of-00004.safetensors",
|
728 |
+
"visual.blocks.30.attn.proj.bias": "model-00001-of-00004.safetensors",
|
729 |
+
"visual.blocks.30.attn.proj.weight": "model-00001-of-00004.safetensors",
|
730 |
+
"visual.blocks.30.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
731 |
+
"visual.blocks.30.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
732 |
+
"visual.blocks.30.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
733 |
+
"visual.blocks.30.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
734 |
+
"visual.blocks.30.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
735 |
+
"visual.blocks.30.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
736 |
+
"visual.blocks.30.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
737 |
+
"visual.blocks.30.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
738 |
+
"visual.blocks.30.norm1.weight": "model-00001-of-00004.safetensors",
|
739 |
+
"visual.blocks.30.norm2.weight": "model-00001-of-00004.safetensors",
|
740 |
+
"visual.blocks.31.attn.proj.bias": "model-00001-of-00004.safetensors",
|
741 |
+
"visual.blocks.31.attn.proj.weight": "model-00001-of-00004.safetensors",
|
742 |
+
"visual.blocks.31.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
743 |
+
"visual.blocks.31.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
744 |
+
"visual.blocks.31.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
745 |
+
"visual.blocks.31.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
746 |
+
"visual.blocks.31.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
747 |
+
"visual.blocks.31.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
748 |
+
"visual.blocks.31.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
749 |
+
"visual.blocks.31.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
750 |
+
"visual.blocks.31.norm1.weight": "model-00001-of-00004.safetensors",
|
751 |
+
"visual.blocks.31.norm2.weight": "model-00001-of-00004.safetensors",
|
752 |
+
"visual.blocks.4.attn.proj.bias": "model-00001-of-00004.safetensors",
|
753 |
+
"visual.blocks.4.attn.proj.weight": "model-00001-of-00004.safetensors",
|
754 |
+
"visual.blocks.4.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
755 |
+
"visual.blocks.4.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
756 |
+
"visual.blocks.4.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
757 |
+
"visual.blocks.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
758 |
+
"visual.blocks.4.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
759 |
+
"visual.blocks.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
760 |
+
"visual.blocks.4.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
761 |
+
"visual.blocks.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
762 |
+
"visual.blocks.4.norm1.weight": "model-00001-of-00004.safetensors",
|
763 |
+
"visual.blocks.4.norm2.weight": "model-00001-of-00004.safetensors",
|
764 |
+
"visual.blocks.5.attn.proj.bias": "model-00001-of-00004.safetensors",
|
765 |
+
"visual.blocks.5.attn.proj.weight": "model-00001-of-00004.safetensors",
|
766 |
+
"visual.blocks.5.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
767 |
+
"visual.blocks.5.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
768 |
+
"visual.blocks.5.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
769 |
+
"visual.blocks.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
770 |
+
"visual.blocks.5.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
771 |
+
"visual.blocks.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
772 |
+
"visual.blocks.5.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
773 |
+
"visual.blocks.5.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
774 |
+
"visual.blocks.5.norm1.weight": "model-00001-of-00004.safetensors",
|
775 |
+
"visual.blocks.5.norm2.weight": "model-00001-of-00004.safetensors",
|
776 |
+
"visual.blocks.6.attn.proj.bias": "model-00001-of-00004.safetensors",
|
777 |
+
"visual.blocks.6.attn.proj.weight": "model-00001-of-00004.safetensors",
|
778 |
+
"visual.blocks.6.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
779 |
+
"visual.blocks.6.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
780 |
+
"visual.blocks.6.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
781 |
+
"visual.blocks.6.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
782 |
+
"visual.blocks.6.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
783 |
+
"visual.blocks.6.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
784 |
+
"visual.blocks.6.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
785 |
+
"visual.blocks.6.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
786 |
+
"visual.blocks.6.norm1.weight": "model-00001-of-00004.safetensors",
|
787 |
+
"visual.blocks.6.norm2.weight": "model-00001-of-00004.safetensors",
|
788 |
+
"visual.blocks.7.attn.proj.bias": "model-00001-of-00004.safetensors",
|
789 |
+
"visual.blocks.7.attn.proj.weight": "model-00001-of-00004.safetensors",
|
790 |
+
"visual.blocks.7.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
791 |
+
"visual.blocks.7.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
792 |
+
"visual.blocks.7.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
793 |
+
"visual.blocks.7.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
794 |
+
"visual.blocks.7.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
795 |
+
"visual.blocks.7.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
796 |
+
"visual.blocks.7.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
797 |
+
"visual.blocks.7.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
798 |
+
"visual.blocks.7.norm1.weight": "model-00001-of-00004.safetensors",
|
799 |
+
"visual.blocks.7.norm2.weight": "model-00001-of-00004.safetensors",
|
800 |
+
"visual.blocks.8.attn.proj.bias": "model-00001-of-00004.safetensors",
|
801 |
+
"visual.blocks.8.attn.proj.weight": "model-00001-of-00004.safetensors",
|
802 |
+
"visual.blocks.8.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
803 |
+
"visual.blocks.8.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
804 |
+
"visual.blocks.8.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
805 |
+
"visual.blocks.8.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
806 |
+
"visual.blocks.8.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
807 |
+
"visual.blocks.8.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
808 |
+
"visual.blocks.8.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
809 |
+
"visual.blocks.8.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
810 |
+
"visual.blocks.8.norm1.weight": "model-00001-of-00004.safetensors",
|
811 |
+
"visual.blocks.8.norm2.weight": "model-00001-of-00004.safetensors",
|
812 |
+
"visual.blocks.9.attn.proj.bias": "model-00001-of-00004.safetensors",
|
813 |
+
"visual.blocks.9.attn.proj.weight": "model-00001-of-00004.safetensors",
|
814 |
+
"visual.blocks.9.attn.qkv.bias": "model-00001-of-00004.safetensors",
|
815 |
+
"visual.blocks.9.attn.qkv.weight": "model-00001-of-00004.safetensors",
|
816 |
+
"visual.blocks.9.mlp.down_proj.bias": "model-00001-of-00004.safetensors",
|
817 |
+
"visual.blocks.9.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
818 |
+
"visual.blocks.9.mlp.gate_proj.bias": "model-00001-of-00004.safetensors",
|
819 |
+
"visual.blocks.9.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
820 |
+
"visual.blocks.9.mlp.up_proj.bias": "model-00001-of-00004.safetensors",
|
821 |
+
"visual.blocks.9.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
822 |
+
"visual.blocks.9.norm1.weight": "model-00001-of-00004.safetensors",
|
823 |
+
"visual.blocks.9.norm2.weight": "model-00001-of-00004.safetensors",
|
824 |
+
"visual.merger.ln_q.weight": "model-00001-of-00004.safetensors",
|
825 |
+
"visual.merger.mlp.0.bias": "model-00001-of-00004.safetensors",
|
826 |
+
"visual.merger.mlp.0.weight": "model-00001-of-00004.safetensors",
|
827 |
+
"visual.merger.mlp.2.bias": "model-00001-of-00004.safetensors",
|
828 |
+
"visual.merger.mlp.2.weight": "model-00001-of-00004.safetensors",
|
829 |
+
"visual.patch_embed.proj.weight": "model-00001-of-00004.safetensors"
|
830 |
+
}
|
831 |
+
}
|
modeling_bge_vl_screenshot.py
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import logging
|
2 |
+
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
|
3 |
+
import torch
|
4 |
+
from PIL import Image
|
5 |
+
from typing import List, Optional, Tuple, Union
|
6 |
+
|
7 |
+
|
8 |
+
logger = logging.getLogger(__name__)
|
9 |
+
|
10 |
+
class BGE_VL_Screenshot(Qwen2_5_VLForConditionalGeneration):
|
11 |
+
def __init__(self, config):
|
12 |
+
super().__init__(config)
|
13 |
+
|
14 |
+
def forward(
|
15 |
+
self,
|
16 |
+
input_ids: torch.LongTensor = None,
|
17 |
+
attention_mask: Optional[torch.Tensor] = None,
|
18 |
+
position_ids: Optional[torch.LongTensor] = None,
|
19 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
20 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
21 |
+
labels: Optional[torch.LongTensor] = None,
|
22 |
+
use_cache: Optional[bool] = None,
|
23 |
+
output_attentions: Optional[bool] = None,
|
24 |
+
output_hidden_states: Optional[bool] = None,
|
25 |
+
return_dict: Optional[bool] = None,
|
26 |
+
pixel_values: Optional[torch.Tensor] = None,
|
27 |
+
pixel_values_videos: Optional[torch.FloatTensor] = None,
|
28 |
+
image_grid_thw: Optional[torch.LongTensor] = None,
|
29 |
+
video_grid_thw: Optional[torch.LongTensor] = None,
|
30 |
+
rope_deltas: Optional[torch.LongTensor] = None,
|
31 |
+
cache_position: Optional[torch.LongTensor] = None,
|
32 |
+
second_per_grid_ts: Optional[torch.Tensor] = None,
|
33 |
+
):
|
34 |
+
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
35 |
+
output_hidden_states = (
|
36 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
37 |
+
)
|
38 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
39 |
+
|
40 |
+
if inputs_embeds is None:
|
41 |
+
inputs_embeds = self.model.embed_tokens(input_ids)
|
42 |
+
if pixel_values is not None:
|
43 |
+
pixel_values = pixel_values.type(self.visual.dtype)
|
44 |
+
image_embeds = self.visual(pixel_values, grid_thw=image_grid_thw)
|
45 |
+
n_image_tokens = (input_ids == self.config.image_token_id).sum().item()
|
46 |
+
n_image_features = image_embeds.shape[0]
|
47 |
+
if n_image_tokens != n_image_features:
|
48 |
+
raise ValueError(
|
49 |
+
f"Image features and image tokens do not match: tokens: {n_image_tokens}, features {n_image_features}"
|
50 |
+
)
|
51 |
+
|
52 |
+
mask = input_ids == self.config.image_token_id
|
53 |
+
mask_unsqueezed = mask.unsqueeze(-1)
|
54 |
+
mask_expanded = mask_unsqueezed.expand_as(inputs_embeds)
|
55 |
+
image_mask = mask_expanded.to(inputs_embeds.device)
|
56 |
+
|
57 |
+
image_embeds = image_embeds.to(inputs_embeds.device, inputs_embeds.dtype)
|
58 |
+
inputs_embeds = inputs_embeds.masked_scatter(image_mask, image_embeds)
|
59 |
+
|
60 |
+
if pixel_values_videos is not None:
|
61 |
+
pixel_values_videos = pixel_values_videos.type(self.visual.dtype)
|
62 |
+
video_embeds = self.visual(pixel_values_videos, grid_thw=video_grid_thw)
|
63 |
+
n_video_tokens = (input_ids == self.config.video_token_id).sum().item()
|
64 |
+
n_video_features = video_embeds.shape[0]
|
65 |
+
if n_video_tokens != n_video_features:
|
66 |
+
raise ValueError(
|
67 |
+
f"Video features and video tokens do not match: tokens: {n_video_tokens}, features {n_video_features}"
|
68 |
+
)
|
69 |
+
|
70 |
+
mask = input_ids == self.config.video_token_id
|
71 |
+
mask_unsqueezed = mask.unsqueeze(-1)
|
72 |
+
mask_expanded = mask_unsqueezed.expand_as(inputs_embeds)
|
73 |
+
video_mask = mask_expanded.to(inputs_embeds.device)
|
74 |
+
|
75 |
+
video_embeds = video_embeds.to(inputs_embeds.device, inputs_embeds.dtype)
|
76 |
+
inputs_embeds = inputs_embeds.masked_scatter(video_mask, video_embeds)
|
77 |
+
|
78 |
+
if attention_mask is not None:
|
79 |
+
attention_mask = attention_mask.to(inputs_embeds.device)
|
80 |
+
|
81 |
+
if position_ids is None and (attention_mask is None or attention_mask.ndim == 2):
|
82 |
+
# calculate RoPE index once per generation in the pre-fill stage only
|
83 |
+
if (
|
84 |
+
(cache_position is not None and cache_position[0] == 0)
|
85 |
+
or self.rope_deltas is None
|
86 |
+
or (past_key_values is None or past_key_values.get_seq_length() == 0)
|
87 |
+
):
|
88 |
+
position_ids, rope_deltas = self.get_rope_index(
|
89 |
+
input_ids,
|
90 |
+
image_grid_thw,
|
91 |
+
video_grid_thw,
|
92 |
+
second_per_grid_ts,
|
93 |
+
attention_mask,
|
94 |
+
)
|
95 |
+
self.rope_deltas = rope_deltas
|
96 |
+
# then use the prev pre-calculated rope-deltas to get the correct position ids
|
97 |
+
else:
|
98 |
+
batch_size, seq_length, _ = inputs_embeds.shape
|
99 |
+
delta = (
|
100 |
+
(cache_position[0] + self.rope_deltas).to(inputs_embeds.device)
|
101 |
+
if cache_position is not None
|
102 |
+
else 0
|
103 |
+
)
|
104 |
+
position_ids = torch.arange(seq_length, device=inputs_embeds.device)
|
105 |
+
position_ids = position_ids.view(1, -1).expand(batch_size, -1)
|
106 |
+
if cache_position is not None: # otherwise `deltas` is an int `0`
|
107 |
+
delta = delta.repeat_interleave(batch_size // delta.shape[0], dim=0)
|
108 |
+
position_ids = position_ids.add(delta)
|
109 |
+
position_ids = position_ids.unsqueeze(0).expand(3, -1, -1)
|
110 |
+
|
111 |
+
outputs = self.model(
|
112 |
+
input_ids=None,
|
113 |
+
position_ids=position_ids,
|
114 |
+
attention_mask=attention_mask,
|
115 |
+
past_key_values=past_key_values,
|
116 |
+
inputs_embeds=inputs_embeds,
|
117 |
+
use_cache=use_cache,
|
118 |
+
output_attentions=output_attentions,
|
119 |
+
output_hidden_states=output_hidden_states,
|
120 |
+
return_dict=return_dict,
|
121 |
+
cache_position=cache_position,
|
122 |
+
)
|
123 |
+
|
124 |
+
hidden_states = outputs[0] # (Bs, L, D)
|
125 |
+
embeddings = hidden_states[:, -1, :]
|
126 |
+
embeddings = torch.nn.functional.normalize(embeddings, dim=-1)
|
127 |
+
return embeddings
|
128 |
+
|
129 |
+
def set_processor(self, model_name_or_path, max_len=3072, eos_token_id=151643, min_image_token=64, max_image_token=2500):
|
130 |
+
self.max_len = max_len
|
131 |
+
self.eos_token_id = eos_token_id
|
132 |
+
self.processor = AutoProcessor.from_pretrained(
|
133 |
+
model_name_or_path,
|
134 |
+
padding_side='left',
|
135 |
+
min_pixels=min_image_token * 28 * 28,
|
136 |
+
max_pixels=max_image_token * 28 * 28
|
137 |
+
)
|
138 |
+
assert self.processor.tokenizer.padding_side == 'left'
|
139 |
+
|
140 |
+
def prepare_text_input(self, image=None, text=None, q_or_c=None, task_instruction=None):
|
141 |
+
assert q_or_c in ["query", "candidate", "q", "c"]
|
142 |
+
|
143 |
+
prompt_template = "<|im_start|>system\n{}<|im_end|>\n<|im_start|>user\n{}<|im_end|>\n<|im_start|>assistant\n<|endoftext|>"
|
144 |
+
|
145 |
+
if "q" in q_or_c:
|
146 |
+
if task_instruction is None:
|
147 |
+
system_prompt = "You are a helpful assistant."
|
148 |
+
task_instruction_example_csr = "Represent the given image with the given query."
|
149 |
+
print(f"""Warning: For optimal performance, UniSE-MLLM requires the task instruction to be specified in the query. For example, for the composed screenshot retrieval task, you might use a specific instruction like: {task_instruction_example_csr}.""")
|
150 |
+
else:
|
151 |
+
system_prompt = task_instruction
|
152 |
+
|
153 |
+
if image is None:
|
154 |
+
user_prompt = text
|
155 |
+
else:
|
156 |
+
if text is not None:
|
157 |
+
user_prompt = f"Query:{text}<|vision_start|><|image_pad|><|vision_end|>"
|
158 |
+
else:
|
159 |
+
user_prompt = "<|vision_start|><|image_pad|><|vision_end|>"
|
160 |
+
text_input = prompt_template.format(system_prompt, user_prompt)
|
161 |
+
else:
|
162 |
+
if text is not None:
|
163 |
+
system_prompt = "Represent the given text."
|
164 |
+
user_prompt = f"{text}"
|
165 |
+
if image is not None:
|
166 |
+
system_prompt = "Represent the given text-rich image, focusing on extracting and interpreting both its rich text content and visual features."
|
167 |
+
user_prompt = f"<|vision_start|><|image_pad|><|vision_end|>"
|
168 |
+
text_input = prompt_template.format(system_prompt, user_prompt)
|
169 |
+
# print(text_input)
|
170 |
+
# print("\n")
|
171 |
+
return text_input
|
172 |
+
|
173 |
+
def data_process(self, images=None, text=None, q_or_c=None, task_instruction=None):
|
174 |
+
if images is not None:
|
175 |
+
_is_list = isinstance(images, list)
|
176 |
+
elif text is not None:
|
177 |
+
_is_list = isinstance(text, list)
|
178 |
+
else:
|
179 |
+
raise ValueError("images and text cannot be both None.")
|
180 |
+
|
181 |
+
assert q_or_c in ["query", "candidate", "q", "c"]
|
182 |
+
|
183 |
+
if not _is_list :
|
184 |
+
text_input = self.prepare_text_input(images, text, q_or_c, task_instruction)
|
185 |
+
text_input = [text_input]
|
186 |
+
|
187 |
+
|
188 |
+
if images is not None:
|
189 |
+
images = Image.open(images).convert("RGB")
|
190 |
+
images = [images]
|
191 |
+
inputs = self.processor(images=images, text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
192 |
+
else:
|
193 |
+
inputs = self.processor(text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
194 |
+
if inputs.input_ids.size(-1) == self.max_len:
|
195 |
+
inputs.input_ids[:, -1] = self.eos_token_id
|
196 |
+
assert (inputs.input_ids[:, -1] == self.eos_token_id).all()
|
197 |
+
assert (inputs.attention_mask[:, -1] == 1).all()
|
198 |
+
|
199 |
+
else:
|
200 |
+
if text is None:
|
201 |
+
text = [None] * len(images)
|
202 |
+
text_input = [self.prepare_text_input(_image, _text, q_or_c, task_instruction) for _image, _text in zip(images, text)]
|
203 |
+
|
204 |
+
if images is not None:
|
205 |
+
images = [Image.open(_image).convert("RGB") for _image in images]
|
206 |
+
inputs = self.processor(images=images, text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
207 |
+
else:
|
208 |
+
inputs = self.processor(text=text_input, return_tensors="pt", padding=True, truncation=True, max_length=self.max_len)
|
209 |
+
if inputs.input_ids.size(-1) == self.max_len:
|
210 |
+
inputs.input_ids[:, -1] = self.eos_token_id
|
211 |
+
assert (inputs.input_ids[:, -1] == self.eos_token_id).all()
|
212 |
+
assert (inputs.attention_mask[:, -1] == 1).all()
|
213 |
+
|
214 |
+
inputs = inputs.to(self.device)
|
215 |
+
|
216 |
+
return inputs
|
preprocessor_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"min_pixels": 3136,
|
3 |
+
"max_pixels": 12845056,
|
4 |
+
"patch_size": 14,
|
5 |
+
"temporal_patch_size": 2,
|
6 |
+
"merge_size": 2,
|
7 |
+
"image_mean": [
|
8 |
+
0.48145466,
|
9 |
+
0.4578275,
|
10 |
+
0.40821073
|
11 |
+
],
|
12 |
+
"image_std": [
|
13 |
+
0.26862954,
|
14 |
+
0.26130258,
|
15 |
+
0.27577711
|
16 |
+
],
|
17 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
18 |
+
"processor_class": "Qwen2_5_VLProcessor"
|
19 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"151646": {
|
29 |
+
"content": "<|object_ref_start|>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"151647": {
|
37 |
+
"content": "<|object_ref_end|>",
|
38 |
+
"lstrip": false,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
},
|
44 |
+
"151648": {
|
45 |
+
"content": "<|box_start|>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": false,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false,
|
50 |
+
"special": true
|
51 |
+
},
|
52 |
+
"151649": {
|
53 |
+
"content": "<|box_end|>",
|
54 |
+
"lstrip": false,
|
55 |
+
"normalized": false,
|
56 |
+
"rstrip": false,
|
57 |
+
"single_word": false,
|
58 |
+
"special": true
|
59 |
+
},
|
60 |
+
"151650": {
|
61 |
+
"content": "<|quad_start|>",
|
62 |
+
"lstrip": false,
|
63 |
+
"normalized": false,
|
64 |
+
"rstrip": false,
|
65 |
+
"single_word": false,
|
66 |
+
"special": true
|
67 |
+
},
|
68 |
+
"151651": {
|
69 |
+
"content": "<|quad_end|>",
|
70 |
+
"lstrip": false,
|
71 |
+
"normalized": false,
|
72 |
+
"rstrip": false,
|
73 |
+
"single_word": false,
|
74 |
+
"special": true
|
75 |
+
},
|
76 |
+
"151652": {
|
77 |
+
"content": "<|vision_start|>",
|
78 |
+
"lstrip": false,
|
79 |
+
"normalized": false,
|
80 |
+
"rstrip": false,
|
81 |
+
"single_word": false,
|
82 |
+
"special": true
|
83 |
+
},
|
84 |
+
"151653": {
|
85 |
+
"content": "<|vision_end|>",
|
86 |
+
"lstrip": false,
|
87 |
+
"normalized": false,
|
88 |
+
"rstrip": false,
|
89 |
+
"single_word": false,
|
90 |
+
"special": true
|
91 |
+
},
|
92 |
+
"151654": {
|
93 |
+
"content": "<|vision_pad|>",
|
94 |
+
"lstrip": false,
|
95 |
+
"normalized": false,
|
96 |
+
"rstrip": false,
|
97 |
+
"single_word": false,
|
98 |
+
"special": true
|
99 |
+
},
|
100 |
+
"151655": {
|
101 |
+
"content": "<|image_pad|>",
|
102 |
+
"lstrip": false,
|
103 |
+
"normalized": false,
|
104 |
+
"rstrip": false,
|
105 |
+
"single_word": false,
|
106 |
+
"special": true
|
107 |
+
},
|
108 |
+
"151656": {
|
109 |
+
"content": "<|video_pad|>",
|
110 |
+
"lstrip": false,
|
111 |
+
"normalized": false,
|
112 |
+
"rstrip": false,
|
113 |
+
"single_word": false,
|
114 |
+
"special": true
|
115 |
+
},
|
116 |
+
"151657": {
|
117 |
+
"content": "<tool_call>",
|
118 |
+
"lstrip": false,
|
119 |
+
"normalized": false,
|
120 |
+
"rstrip": false,
|
121 |
+
"single_word": false,
|
122 |
+
"special": false
|
123 |
+
},
|
124 |
+
"151658": {
|
125 |
+
"content": "</tool_call>",
|
126 |
+
"lstrip": false,
|
127 |
+
"normalized": false,
|
128 |
+
"rstrip": false,
|
129 |
+
"single_word": false,
|
130 |
+
"special": false
|
131 |
+
},
|
132 |
+
"151659": {
|
133 |
+
"content": "<|fim_prefix|>",
|
134 |
+
"lstrip": false,
|
135 |
+
"normalized": false,
|
136 |
+
"rstrip": false,
|
137 |
+
"single_word": false,
|
138 |
+
"special": false
|
139 |
+
},
|
140 |
+
"151660": {
|
141 |
+
"content": "<|fim_middle|>",
|
142 |
+
"lstrip": false,
|
143 |
+
"normalized": false,
|
144 |
+
"rstrip": false,
|
145 |
+
"single_word": false,
|
146 |
+
"special": false
|
147 |
+
},
|
148 |
+
"151661": {
|
149 |
+
"content": "<|fim_suffix|>",
|
150 |
+
"lstrip": false,
|
151 |
+
"normalized": false,
|
152 |
+
"rstrip": false,
|
153 |
+
"single_word": false,
|
154 |
+
"special": false
|
155 |
+
},
|
156 |
+
"151662": {
|
157 |
+
"content": "<|fim_pad|>",
|
158 |
+
"lstrip": false,
|
159 |
+
"normalized": false,
|
160 |
+
"rstrip": false,
|
161 |
+
"single_word": false,
|
162 |
+
"special": false
|
163 |
+
},
|
164 |
+
"151663": {
|
165 |
+
"content": "<|repo_name|>",
|
166 |
+
"lstrip": false,
|
167 |
+
"normalized": false,
|
168 |
+
"rstrip": false,
|
169 |
+
"single_word": false,
|
170 |
+
"special": false
|
171 |
+
},
|
172 |
+
"151664": {
|
173 |
+
"content": "<|file_sep|>",
|
174 |
+
"lstrip": false,
|
175 |
+
"normalized": false,
|
176 |
+
"rstrip": false,
|
177 |
+
"single_word": false,
|
178 |
+
"special": false
|
179 |
+
}
|
180 |
+
},
|
181 |
+
"additional_special_tokens": [
|
182 |
+
"<|im_start|>",
|
183 |
+
"<|im_end|>",
|
184 |
+
"<|object_ref_start|>",
|
185 |
+
"<|object_ref_end|>",
|
186 |
+
"<|box_start|>",
|
187 |
+
"<|box_end|>",
|
188 |
+
"<|quad_start|>",
|
189 |
+
"<|quad_end|>",
|
190 |
+
"<|vision_start|>",
|
191 |
+
"<|vision_end|>",
|
192 |
+
"<|vision_pad|>",
|
193 |
+
"<|image_pad|>",
|
194 |
+
"<|video_pad|>"
|
195 |
+
],
|
196 |
+
"bos_token": null,
|
197 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
198 |
+
"clean_up_tokenization_spaces": false,
|
199 |
+
"eos_token": "<|im_end|>",
|
200 |
+
"errors": "replace",
|
201 |
+
"model_max_length": 131072,
|
202 |
+
"pad_token": "<|endoftext|>",
|
203 |
+
"split_special_tokens": false,
|
204 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
205 |
+
"unk_token": null,
|
206 |
+
"add_bos_token": false
|
207 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|