Vanbitcase commited on
Commit
76af2d0
·
verified ·
1 Parent(s): 73f01d5

Upload Qwen2_5_VLForConditionalGeneration

Browse files
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2_5_VLForConditionalGeneration"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "dtype": "bfloat16",
7
+ "eos_token_id": 151645,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 3584,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 18944,
12
+ "max_position_embeddings": 32768,
13
+ "max_window_layers": 28,
14
+ "model_type": "qwen2_5_vl",
15
+ "num_attention_heads": 28,
16
+ "num_hidden_layers": 28,
17
+ "num_key_value_heads": 4,
18
+ "pad_token_id": 151654,
19
+ "quantization_config": {
20
+ "config_groups": {
21
+ "group_0": {
22
+ "format": "pack-quantized",
23
+ "input_activations": null,
24
+ "output_activations": null,
25
+ "targets": [
26
+ "Linear"
27
+ ],
28
+ "weights": {
29
+ "actorder": null,
30
+ "block_structure": null,
31
+ "dynamic": false,
32
+ "group_size": -1,
33
+ "num_bits": 4,
34
+ "observer": "mse",
35
+ "observer_kwargs": {},
36
+ "scale_dtype": null,
37
+ "strategy": "channel",
38
+ "symmetric": true,
39
+ "type": "int",
40
+ "zp_dtype": null
41
+ }
42
+ }
43
+ },
44
+ "format": "pack-quantized",
45
+ "global_compression_ratio": null,
46
+ "ignore": [
47
+ "lm_head"
48
+ ],
49
+ "kv_cache_scheme": null,
50
+ "quant_method": "compressed-tensors",
51
+ "quantization_status": "compressed",
52
+ "sparsity_config": {},
53
+ "transform_config": {},
54
+ "version": "0.13.0"
55
+ },
56
+ "rms_norm_eps": 1e-06,
57
+ "rope_scaling": {
58
+ "mrope_section": [
59
+ 16,
60
+ 24,
61
+ 24
62
+ ],
63
+ "rope_type": "default",
64
+ "type": "default"
65
+ },
66
+ "rope_theta": 1000000.0,
67
+ "sliding_window": 32768,
68
+ "text_config": {
69
+ "_name_or_path": "Vanbitcase/ier_qwen2.5_fp",
70
+ "architectures": [
71
+ "Qwen2_5_VLForConditionalGeneration"
72
+ ],
73
+ "attention_dropout": 0.0,
74
+ "dtype": "bfloat16",
75
+ "eos_token_id": 151645,
76
+ "hidden_act": "silu",
77
+ "hidden_size": 3584,
78
+ "image_token_id": 151655,
79
+ "initializer_range": 0.02,
80
+ "intermediate_size": 18944,
81
+ "layer_types": [
82
+ "full_attention",
83
+ "full_attention",
84
+ "full_attention",
85
+ "full_attention",
86
+ "full_attention",
87
+ "full_attention",
88
+ "full_attention",
89
+ "full_attention",
90
+ "full_attention",
91
+ "full_attention",
92
+ "full_attention",
93
+ "full_attention",
94
+ "full_attention",
95
+ "full_attention",
96
+ "full_attention",
97
+ "full_attention",
98
+ "full_attention",
99
+ "full_attention",
100
+ "full_attention",
101
+ "full_attention",
102
+ "full_attention",
103
+ "full_attention",
104
+ "full_attention",
105
+ "full_attention",
106
+ "full_attention",
107
+ "full_attention",
108
+ "full_attention",
109
+ "full_attention"
110
+ ],
111
+ "max_position_embeddings": 128000,
112
+ "max_window_layers": 28,
113
+ "model_type": "qwen2_5_vl_text",
114
+ "num_attention_heads": 28,
115
+ "num_hidden_layers": 28,
116
+ "num_key_value_heads": 4,
117
+ "pad_token_id": 151654,
118
+ "rms_norm_eps": 1e-06,
119
+ "rope_scaling": {
120
+ "mrope_section": [
121
+ 16,
122
+ 24,
123
+ 24
124
+ ],
125
+ "rope_type": "default",
126
+ "type": "default"
127
+ },
128
+ "rope_theta": 1000000.0,
129
+ "sliding_window": null,
130
+ "use_cache": true,
131
+ "use_sliding_window": false,
132
+ "video_token_id": 151656,
133
+ "vision_end_token_id": 151653,
134
+ "vision_start_token_id": 151652,
135
+ "vision_token_id": 151654,
136
+ "vocab_size": 152064
137
+ },
138
+ "tie_word_embeddings": false,
139
+ "transformers_version": "4.57.3",
140
+ "unsloth_fixed": true,
141
+ "unsloth_version": "2026.1.4",
142
+ "use_cache": true,
143
+ "use_sliding_window": false,
144
+ "vision_config": {
145
+ "depth": 32,
146
+ "dtype": "bfloat16",
147
+ "fullatt_block_indexes": [
148
+ 7,
149
+ 15,
150
+ 23,
151
+ 31
152
+ ],
153
+ "hidden_act": "silu",
154
+ "hidden_size": 1280,
155
+ "in_channels": 3,
156
+ "in_chans": 3,
157
+ "initializer_range": 0.02,
158
+ "intermediate_size": 3420,
159
+ "model_type": "qwen2_5_vl",
160
+ "num_heads": 16,
161
+ "out_hidden_size": 3584,
162
+ "patch_size": 14,
163
+ "spatial_merge_size": 2,
164
+ "spatial_patch_size": 14,
165
+ "temporal_patch_size": 2,
166
+ "tokens_per_second": 2,
167
+ "window_size": 112
168
+ },
169
+ "vision_token_id": 151654,
170
+ "vocab_size": 152064
171
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": 151645,
4
+ "pad_token_id": 151654,
5
+ "transformers_version": "4.57.3"
6
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38c0838afef72c14b5a7cabf1f9dd8c7fa8a5724db5064cde716dc073796d364
3
+ size 4698506184
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c859795ad3a627a9b95bcb762e059d5b768a4a36fdd4affeff269d93fdecc67
3
+ size 1089994880
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
recipe.yaml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ AWQModifier:
4
+ config_groups:
5
+ group_0:
6
+ targets: [Linear]
7
+ weights:
8
+ num_bits: 4
9
+ type: int
10
+ symmetric: true
11
+ group_size: -1
12
+ strategy: channel
13
+ block_structure: null
14
+ dynamic: false
15
+ actorder: null
16
+ scale_dtype: null
17
+ zp_dtype: null
18
+ observer: mse
19
+ observer_kwargs: {}
20
+ input_activations: null
21
+ output_activations: null
22
+ format: null
23
+ targets: [Linear]
24
+ ignore: [lm_head, model.embed_tokens, model.norm, visual.merger.mlp.0, visual.merger.mlp.2,
25
+ visual.patch_embed.proj, visual.blocks.0.attn.qkv, visual.blocks.0.attn.proj, visual.blocks.0.mlp.gate_proj,
26
+ visual.blocks.0.mlp.up_proj, visual.blocks.0.mlp.down_proj, visual.blocks.1.attn.qkv,
27
+ visual.blocks.1.attn.proj, visual.blocks.1.mlp.gate_proj, visual.blocks.1.mlp.up_proj,
28
+ visual.blocks.1.mlp.down_proj, visual.blocks.2.attn.qkv, visual.blocks.2.attn.proj,
29
+ visual.blocks.2.mlp.gate_proj, visual.blocks.2.mlp.up_proj, visual.blocks.2.mlp.down_proj,
30
+ visual.blocks.3.attn.qkv, visual.blocks.3.attn.proj, visual.blocks.3.mlp.gate_proj,
31
+ visual.blocks.3.mlp.up_proj, visual.blocks.3.mlp.down_proj, visual.blocks.4.attn.qkv,
32
+ visual.blocks.4.attn.proj, visual.blocks.4.mlp.gate_proj, visual.blocks.4.mlp.up_proj,
33
+ visual.blocks.4.mlp.down_proj, visual.blocks.5.attn.qkv, visual.blocks.5.attn.proj,
34
+ visual.blocks.5.mlp.gate_proj, visual.blocks.5.mlp.up_proj, visual.blocks.5.mlp.down_proj,
35
+ visual.blocks.6.attn.qkv, visual.blocks.6.attn.proj, visual.blocks.6.mlp.gate_proj,
36
+ visual.blocks.6.mlp.up_proj, visual.blocks.6.mlp.down_proj, visual.blocks.7.attn.qkv,
37
+ visual.blocks.7.attn.proj, visual.blocks.7.mlp.gate_proj, visual.blocks.7.mlp.up_proj,
38
+ visual.blocks.7.mlp.down_proj, visual.blocks.8.attn.qkv, visual.blocks.8.attn.proj,
39
+ visual.blocks.8.mlp.gate_proj, visual.blocks.8.mlp.up_proj, visual.blocks.8.mlp.down_proj,
40
+ visual.blocks.9.attn.qkv, visual.blocks.9.attn.proj, visual.blocks.9.mlp.gate_proj,
41
+ visual.blocks.9.mlp.up_proj, visual.blocks.9.mlp.down_proj, visual.blocks.10.attn.qkv,
42
+ visual.blocks.10.attn.proj, visual.blocks.10.mlp.gate_proj, visual.blocks.10.mlp.up_proj,
43
+ visual.blocks.10.mlp.down_proj, visual.blocks.11.attn.qkv, visual.blocks.11.attn.proj,
44
+ visual.blocks.11.mlp.gate_proj, visual.blocks.11.mlp.up_proj, visual.blocks.11.mlp.down_proj,
45
+ visual.blocks.12.attn.qkv, visual.blocks.12.attn.proj, visual.blocks.12.mlp.gate_proj,
46
+ visual.blocks.12.mlp.up_proj, visual.blocks.12.mlp.down_proj, visual.blocks.13.attn.qkv,
47
+ visual.blocks.13.attn.proj, visual.blocks.13.mlp.gate_proj, visual.blocks.13.mlp.up_proj,
48
+ visual.blocks.13.mlp.down_proj, visual.blocks.14.attn.qkv, visual.blocks.14.attn.proj,
49
+ visual.blocks.14.mlp.gate_proj, visual.blocks.14.mlp.up_proj, visual.blocks.14.mlp.down_proj,
50
+ visual.blocks.15.attn.qkv, visual.blocks.15.attn.proj, visual.blocks.15.mlp.gate_proj,
51
+ visual.blocks.15.mlp.up_proj, visual.blocks.15.mlp.down_proj, visual.blocks.16.attn.qkv,
52
+ visual.blocks.16.attn.proj, visual.blocks.16.mlp.gate_proj, visual.blocks.16.mlp.up_proj,
53
+ visual.blocks.16.mlp.down_proj, visual.blocks.17.attn.qkv, visual.blocks.17.attn.proj,
54
+ visual.blocks.17.mlp.gate_proj, visual.blocks.17.mlp.up_proj, visual.blocks.17.mlp.down_proj,
55
+ visual.blocks.18.attn.qkv, visual.blocks.18.attn.proj, visual.blocks.18.mlp.gate_proj,
56
+ visual.blocks.18.mlp.up_proj, visual.blocks.18.mlp.down_proj, visual.blocks.19.attn.qkv,
57
+ visual.blocks.19.attn.proj, visual.blocks.19.mlp.gate_proj, visual.blocks.19.mlp.up_proj,
58
+ visual.blocks.19.mlp.down_proj, visual.blocks.20.attn.qkv, visual.blocks.20.attn.proj,
59
+ visual.blocks.20.mlp.gate_proj, visual.blocks.20.mlp.up_proj, visual.blocks.20.mlp.down_proj,
60
+ visual.blocks.21.attn.qkv, visual.blocks.21.attn.proj, visual.blocks.21.mlp.gate_proj,
61
+ visual.blocks.21.mlp.up_proj, visual.blocks.21.mlp.down_proj, visual.blocks.22.attn.qkv,
62
+ visual.blocks.22.attn.proj, visual.blocks.22.mlp.gate_proj, visual.blocks.22.mlp.up_proj,
63
+ visual.blocks.22.mlp.down_proj, visual.blocks.23.attn.qkv, visual.blocks.23.attn.proj,
64
+ visual.blocks.23.mlp.gate_proj, visual.blocks.23.mlp.up_proj, visual.blocks.23.mlp.down_proj,
65
+ visual.blocks.24.attn.qkv, visual.blocks.24.attn.proj, visual.blocks.24.mlp.gate_proj,
66
+ visual.blocks.24.mlp.up_proj, visual.blocks.24.mlp.down_proj, visual.blocks.25.attn.qkv,
67
+ visual.blocks.25.attn.proj, visual.blocks.25.mlp.gate_proj, visual.blocks.25.mlp.up_proj,
68
+ visual.blocks.25.mlp.down_proj, visual.blocks.26.attn.qkv, visual.blocks.26.attn.proj,
69
+ visual.blocks.26.mlp.gate_proj, visual.blocks.26.mlp.up_proj, visual.blocks.26.mlp.down_proj,
70
+ visual.blocks.27.attn.qkv, visual.blocks.27.attn.proj, visual.blocks.27.mlp.gate_proj,
71
+ visual.blocks.27.mlp.up_proj, visual.blocks.27.mlp.down_proj, visual.blocks.28.attn.qkv,
72
+ visual.blocks.28.attn.proj, visual.blocks.28.mlp.gate_proj, visual.blocks.28.mlp.up_proj,
73
+ visual.blocks.28.mlp.down_proj, visual.blocks.29.attn.qkv, visual.blocks.29.attn.proj,
74
+ visual.blocks.29.mlp.gate_proj, visual.blocks.29.mlp.up_proj, visual.blocks.29.mlp.down_proj,
75
+ visual.blocks.30.attn.qkv, visual.blocks.30.attn.proj, visual.blocks.30.mlp.gate_proj,
76
+ visual.blocks.30.mlp.up_proj, visual.blocks.30.mlp.down_proj, visual.blocks.31.attn.qkv,
77
+ visual.blocks.31.attn.proj, visual.blocks.31.mlp.gate_proj, visual.blocks.31.mlp.up_proj,
78
+ visual.blocks.31.mlp.down_proj]
79
+ mappings:
80
+ - smooth_layer: re:model\.layers\.\d+\.input_layernorm
81
+ balance_layers: ['re:model\.layers\.\d+\.self_attn\.q_proj', 're:model\.layers\.\d+\.self_attn\.k_proj',
82
+ 're:model\.layers\.\d+\.self_attn\.v_proj']
83
+ - smooth_layer: re:model\.layers\.\d+\.post_attention_layernorm
84
+ balance_layers: ['re:model\.layers\.\d+\.mlp\.gate_proj', 're:model\.layers\.\d+\.mlp\.up_proj']
85
+ duo_scaling: true
86
+ n_grid: 20