Pilcothink commited on
Commit
6b287f0
·
verified ·
1 Parent(s): 013813f

Upload Qwen3.5-9B MixedInt4 AutoRound

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3.5-9B
4
+ base_model_relation: quantized
5
+ library_name: transformers
6
+ pipeline_tag: image-text-to-text
7
+ tags:
8
+ - qwen
9
+ - qwen3.5
10
+ - multimodal
11
+ - autoround
12
+ - quantization
13
+ - int4
14
+ ---
15
+
16
+ # Qwen3.5-9B Mixed-INT4 AutoRound
17
+
18
+ This repository contains a Mixed-INT4 quantized version of
19
+ [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), produced using
20
+ [Intel AutoRound](https://github.com/intel/auto-round).
21
+
22
+ The model weights were quantized to reduce memory requirements while preserving
23
+ the original Qwen3.5 architecture, tokenizer, configuration, and multimodal
24
+ capabilities.
25
+
26
+ ## Model Information
27
+
28
+ * **Base model:** [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B)
29
+ * **Model type:** Multimodal causal language model with vision encoder
30
+ * **Quantization:** Mixed INT4
31
+ * **Quantization framework:** Intel AutoRound
32
+ * **Weight format:** Safetensors
33
+ * **Native context length:** 262,144 tokens
34
+ * **License:** Apache 2.0
35
+
36
+ ## Important Notice
37
+
38
+ This repository is an unofficial community quantization of Qwen3.5-9B.
39
+
40
+ The model architecture and original model behavior are provided by the Qwen
41
+ team. Quantization may cause small differences in output quality, numerical
42
+ precision, generation consistency, and benchmark performance compared with the
43
+ original model.
44
+
45
+ No independent benchmark results are currently provided for this quantized
46
+ version.
47
+
48
+ ## Serving with vLLM
49
+
50
+ If the installed vLLM version supports this model architecture and AutoRound
51
+ quantization format, the model can be served using:
52
+
53
+ ```bash
54
+ vllm serve YOUR_USERNAME/Qwen3.5-9B-MixedInt4-AutoRound \
55
+ --trust-remote-code
56
+ ```
57
+
58
+ Support for newly released model architectures and quantization formats may
59
+ require a recent development build of vLLM.
60
+
61
+ ## Quantization Details
62
+
63
+ * **Method:** Mixed-INT4 AutoRound quantization
64
+ * **Source weights:** Qwen/Qwen3.5-9B
65
+ * **Fine-tuning:** None
66
+ * **Architecture modifications:** None intended
67
+
68
+ Exact quantization settings, calibration dataset, group size, and AutoRound
69
+ version should be documented here when available.
70
+
71
+ ## Limitations
72
+
73
+ This model inherits the limitations of the original Qwen3.5-9B model.
74
+
75
+ Additional limitations may result from quantization:
76
+
77
+ * Reduced numerical precision
78
+ * Small changes in generated responses
79
+ * Possible degradation on sensitive reasoning or vision-language tasks
80
+ * Runtime compatibility differences between inference frameworks
81
+ * Potential differences in long-context behavior
82
+
83
+ Users should evaluate the model on their own workloads before production use.
84
+
85
+ ## Original Model
86
+
87
+ For complete information about the architecture, supported languages, context
88
+ length, multimodal usage, benchmarks, intended uses, and limitations, refer to
89
+ the original model card:
90
+
91
+ * [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B)
92
+
93
+ ## License
94
+
95
+ The original Qwen3.5-9B model is distributed under the Apache License 2.0.
96
+
97
+ This quantized repository follows the license and usage requirements of the
98
+ original model. Users are responsible for reviewing and complying with the
99
+ original license terms.
100
+
101
+ ## Credits
102
+
103
+ * Original model: [Qwen](https://huggingface.co/Qwen)
104
+ * Quantization framework: [Intel AutoRound](https://github.com/intel/auto-round)
chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "image_token_id": 248056,
7
+ "model_type": "qwen3_5",
8
+ "quantization_config": {
9
+ "autoround_version": "0.14.2",
10
+ "bits": 4,
11
+ "block_name_to_quantize": [
12
+ "model.language_model.layers",
13
+ "mtp.layers"
14
+ ],
15
+ "data_type": "int",
16
+ "extra_config": {
17
+ "model.language_model.layers.0.linear_attn.in_proj_a": {
18
+ "bits": 8
19
+ },
20
+ "model.language_model.layers.0.linear_attn.in_proj_b": {
21
+ "bits": 8
22
+ },
23
+ "model.language_model.layers.0.linear_attn.in_proj_qkv": {
24
+ "bits": 8
25
+ },
26
+ "model.language_model.layers.0.linear_attn.in_proj_z": {
27
+ "bits": 8
28
+ },
29
+ "model.language_model.layers.0.linear_attn.out_proj": {
30
+ "bits": 8
31
+ },
32
+ "model.language_model.layers.1.linear_attn.in_proj_a": {
33
+ "bits": 8
34
+ },
35
+ "model.language_model.layers.1.linear_attn.in_proj_b": {
36
+ "bits": 8
37
+ },
38
+ "model.language_model.layers.1.linear_attn.out_proj": {
39
+ "bits": 8
40
+ },
41
+ "model.language_model.layers.10.linear_attn.in_proj_a": {
42
+ "bits": 8
43
+ },
44
+ "model.language_model.layers.10.linear_attn.in_proj_b": {
45
+ "bits": 8
46
+ },
47
+ "model.language_model.layers.11.self_attn.o_proj": {
48
+ "bits": 8
49
+ },
50
+ "model.language_model.layers.12.linear_attn.in_proj_a": {
51
+ "bits": 8
52
+ },
53
+ "model.language_model.layers.12.linear_attn.in_proj_b": {
54
+ "bits": 8
55
+ },
56
+ "model.language_model.layers.13.linear_attn.in_proj_a": {
57
+ "bits": 8
58
+ },
59
+ "model.language_model.layers.13.linear_attn.in_proj_b": {
60
+ "bits": 8
61
+ },
62
+ "model.language_model.layers.14.linear_attn.in_proj_a": {
63
+ "bits": 8
64
+ },
65
+ "model.language_model.layers.14.linear_attn.in_proj_b": {
66
+ "bits": 8
67
+ },
68
+ "model.language_model.layers.16.linear_attn.in_proj_a": {
69
+ "bits": 8
70
+ },
71
+ "model.language_model.layers.16.linear_attn.in_proj_b": {
72
+ "bits": 8
73
+ },
74
+ "model.language_model.layers.17.linear_attn.in_proj_a": {
75
+ "bits": 8
76
+ },
77
+ "model.language_model.layers.17.linear_attn.in_proj_b": {
78
+ "bits": 8
79
+ },
80
+ "model.language_model.layers.18.linear_attn.in_proj_a": {
81
+ "bits": 8
82
+ },
83
+ "model.language_model.layers.18.linear_attn.in_proj_b": {
84
+ "bits": 8
85
+ },
86
+ "model.language_model.layers.2.linear_attn.in_proj_a": {
87
+ "bits": 8
88
+ },
89
+ "model.language_model.layers.2.linear_attn.in_proj_b": {
90
+ "bits": 8
91
+ },
92
+ "model.language_model.layers.2.linear_attn.out_proj": {
93
+ "bits": 8
94
+ },
95
+ "model.language_model.layers.2.mlp.down_proj": {
96
+ "bits": 8
97
+ },
98
+ "model.language_model.layers.20.linear_attn.in_proj_a": {
99
+ "bits": 8
100
+ },
101
+ "model.language_model.layers.20.linear_attn.in_proj_b": {
102
+ "bits": 8
103
+ },
104
+ "model.language_model.layers.21.linear_attn.in_proj_a": {
105
+ "bits": 8
106
+ },
107
+ "model.language_model.layers.21.linear_attn.in_proj_b": {
108
+ "bits": 8
109
+ },
110
+ "model.language_model.layers.22.linear_attn.in_proj_a": {
111
+ "bits": 8
112
+ },
113
+ "model.language_model.layers.22.linear_attn.in_proj_b": {
114
+ "bits": 8
115
+ },
116
+ "model.language_model.layers.24.linear_attn.in_proj_a": {
117
+ "bits": 8
118
+ },
119
+ "model.language_model.layers.24.linear_attn.in_proj_b": {
120
+ "bits": 8
121
+ },
122
+ "model.language_model.layers.25.linear_attn.in_proj_a": {
123
+ "bits": 8
124
+ },
125
+ "model.language_model.layers.25.linear_attn.in_proj_b": {
126
+ "bits": 8
127
+ },
128
+ "model.language_model.layers.26.linear_attn.in_proj_a": {
129
+ "bits": 8
130
+ },
131
+ "model.language_model.layers.26.linear_attn.in_proj_b": {
132
+ "bits": 8
133
+ },
134
+ "model.language_model.layers.28.linear_attn.in_proj_a": {
135
+ "bits": 8
136
+ },
137
+ "model.language_model.layers.28.linear_attn.in_proj_b": {
138
+ "bits": 8
139
+ },
140
+ "model.language_model.layers.29.linear_attn.in_proj_a": {
141
+ "bits": 8
142
+ },
143
+ "model.language_model.layers.29.linear_attn.in_proj_b": {
144
+ "bits": 8
145
+ },
146
+ "model.language_model.layers.3.self_attn.o_proj": {
147
+ "bits": 8
148
+ },
149
+ "model.language_model.layers.30.linear_attn.in_proj_a": {
150
+ "bits": 8
151
+ },
152
+ "model.language_model.layers.30.linear_attn.in_proj_b": {
153
+ "bits": 8
154
+ },
155
+ "model.language_model.layers.4.linear_attn.in_proj_a": {
156
+ "bits": 8
157
+ },
158
+ "model.language_model.layers.4.linear_attn.in_proj_b": {
159
+ "bits": 8
160
+ },
161
+ "model.language_model.layers.5.linear_attn.in_proj_a": {
162
+ "bits": 8
163
+ },
164
+ "model.language_model.layers.5.linear_attn.in_proj_b": {
165
+ "bits": 8
166
+ },
167
+ "model.language_model.layers.6.linear_attn.in_proj_a": {
168
+ "bits": 8
169
+ },
170
+ "model.language_model.layers.6.linear_attn.in_proj_b": {
171
+ "bits": 8
172
+ },
173
+ "model.language_model.layers.7.self_attn.o_proj": {
174
+ "bits": 8
175
+ },
176
+ "model.language_model.layers.8.linear_attn.in_proj_a": {
177
+ "bits": 8
178
+ },
179
+ "model.language_model.layers.8.linear_attn.in_proj_b": {
180
+ "bits": 8
181
+ },
182
+ "model.language_model.layers.9.linear_attn.in_proj_a": {
183
+ "bits": 8
184
+ },
185
+ "model.language_model.layers.9.linear_attn.in_proj_b": {
186
+ "bits": 8
187
+ },
188
+ "mtp.fc": {
189
+ "bits": 16,
190
+ "data_type": "fp"
191
+ }
192
+ },
193
+ "group_size": 32,
194
+ "packing_format": "auto_round:auto_gptq",
195
+ "quant_method": "auto-round",
196
+ "scale_dtype": "None",
197
+ "sym": true
198
+ },
199
+ "text_config": {
200
+ "attention_bias": false,
201
+ "attention_dropout": 0.0,
202
+ "attn_output_gate": true,
203
+ "bos_token_id": null,
204
+ "dtype": "bfloat16",
205
+ "eos_token_id": 248044,
206
+ "full_attention_interval": 4,
207
+ "head_dim": 256,
208
+ "hidden_act": "silu",
209
+ "hidden_size": 4096,
210
+ "initializer_range": 0.02,
211
+ "intermediate_size": 12288,
212
+ "layer_types": [
213
+ "linear_attention",
214
+ "linear_attention",
215
+ "linear_attention",
216
+ "full_attention",
217
+ "linear_attention",
218
+ "linear_attention",
219
+ "linear_attention",
220
+ "full_attention",
221
+ "linear_attention",
222
+ "linear_attention",
223
+ "linear_attention",
224
+ "full_attention",
225
+ "linear_attention",
226
+ "linear_attention",
227
+ "linear_attention",
228
+ "full_attention",
229
+ "linear_attention",
230
+ "linear_attention",
231
+ "linear_attention",
232
+ "full_attention",
233
+ "linear_attention",
234
+ "linear_attention",
235
+ "linear_attention",
236
+ "full_attention",
237
+ "linear_attention",
238
+ "linear_attention",
239
+ "linear_attention",
240
+ "full_attention",
241
+ "linear_attention",
242
+ "linear_attention",
243
+ "linear_attention",
244
+ "full_attention"
245
+ ],
246
+ "linear_conv_kernel_dim": 4,
247
+ "linear_key_head_dim": 128,
248
+ "linear_num_key_heads": 16,
249
+ "linear_num_value_heads": 32,
250
+ "linear_value_head_dim": 128,
251
+ "mamba_ssm_dtype": "float32",
252
+ "max_position_embeddings": 262144,
253
+ "mlp_only_layers": [],
254
+ "model_type": "qwen3_5_text",
255
+ "mtp_num_hidden_layers": 1,
256
+ "mtp_use_dedicated_embeddings": false,
257
+ "num_attention_heads": 16,
258
+ "num_hidden_layers": 32,
259
+ "num_key_value_heads": 4,
260
+ "pad_token_id": null,
261
+ "partial_rotary_factor": 0.25,
262
+ "rms_norm_eps": 1e-06,
263
+ "rope_parameters": {
264
+ "mrope_interleaved": true,
265
+ "mrope_section": [
266
+ 11,
267
+ 11,
268
+ 10
269
+ ],
270
+ "partial_rotary_factor": 0.25,
271
+ "rope_theta": 10000000,
272
+ "rope_type": "default"
273
+ },
274
+ "tie_word_embeddings": false,
275
+ "use_cache": true,
276
+ "vocab_size": 248320
277
+ },
278
+ "tie_word_embeddings": false,
279
+ "transformers_version": "5.14.1",
280
+ "video_token_id": 248057,
281
+ "vision_config": {
282
+ "deepstack_visual_indexes": [],
283
+ "depth": 27,
284
+ "dtype": "bfloat16",
285
+ "hidden_act": "gelu_pytorch_tanh",
286
+ "hidden_size": 1152,
287
+ "in_channels": 3,
288
+ "initializer_range": 0.02,
289
+ "intermediate_size": 4304,
290
+ "model_type": "qwen3_5_vision",
291
+ "num_heads": 16,
292
+ "num_position_embeddings": 2304,
293
+ "out_hidden_size": 4096,
294
+ "patch_size": 16,
295
+ "spatial_merge_size": 2,
296
+ "temporal_patch_size": 2
297
+ },
298
+ "vision_end_token_id": 248054,
299
+ "vision_start_token_id": 248053
300
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "do_sample": true,
4
+ "eos_token_id": 248044,
5
+ "transformers_version": "5.14.1",
6
+ "use_cache": true
7
+ }
model-00001-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a29308dfb41d66389c406c941fe15b7e5e3a0fc1b1fb60443844588fd6a95ea5
3
+ size 1067352584
model-00002-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f440e6b5d27590497d0c1726121cda6bb12f32febec6b88d91dd75ee278acd83
3
+ size 1068240424
model-00003-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0aa5de9f30b9bf4fb3d31491240957391423c8e818e27c06830c6cb7be19d8c
3
+ size 1069493496
model-00004-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd27a2aab13ace929ce1f852bdd269d25d55594f9db290961e2e89e2d0572dfc
3
+ size 1073191448
model-00005-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eaf9f25bc2e249949974e0741a72771b4cd065bfe2221c98aff443c6547d7c8f
3
+ size 742826888
model-00006-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a01f5aff6f0c0956b006370df5a0002afb8b0ee8f9996f4e18bbeac98893e8b3
3
+ size 2034237568
model-00007-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4c003d5ad014b20ae5ec24a67352bd051d3d69a81ae549dd63a4c9ac5ed2e2f
3
+ size 8296
model-00008-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:106ec926c62c1aac2c8ab808833db89012a9132c53f767fa7609ec69e377d4ab
3
+ size 2034237536
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
model_extra_tensors.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9ce1a16634a17dfe43dca1592c30d3f01b92e5dad06b5cc8d7313614382d75a
3
+ size 188395560
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "Qwen2VLImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "merge_size": 2,
18
+ "patch_size": 16,
19
+ "resample": 3,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "longest_edge": 16777216,
23
+ "shortest_edge": 65536
24
+ },
25
+ "temporal_patch_size": 2
26
+ }
processor_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "merge_size": 2,
19
+ "patch_size": 16,
20
+ "resample": 3,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 16777216,
24
+ "shortest_edge": 65536
25
+ },
26
+ "temporal_patch_size": 2
27
+ },
28
+ "processor_class": "Qwen3VLProcessor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": true,
35
+ "fps": 2,
36
+ "image_mean": [
37
+ 0.5,
38
+ 0.5,
39
+ 0.5
40
+ ],
41
+ "image_std": [
42
+ 0.5,
43
+ 0.5,
44
+ 0.5
45
+ ],
46
+ "max_frames": 768,
47
+ "merge_size": 2,
48
+ "min_frames": 4,
49
+ "patch_size": 16,
50
+ "resample": 3,
51
+ "rescale_factor": 0.00392156862745098,
52
+ "return_metadata": false,
53
+ "size": {
54
+ "longest_edge": 25165824,
55
+ "shortest_edge": 4096
56
+ },
57
+ "temporal_patch_size": 2,
58
+ "video_processor_type": "Qwen3VLVideoProcessor"
59
+ }
60
+ }
quantization_config.json ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "data_type": "int",
4
+ "group_size": 32,
5
+ "sym": true,
6
+ "scale_dtype": "None",
7
+ "autoround_version": "0.14.2",
8
+ "block_name_to_quantize": "model.language_model.layers",
9
+ "quant_method": "auto-round",
10
+ "packing_format": "auto_round:auto_gptq",
11
+ "extra_config": {
12
+ "model.language_model.layers.0.linear_attn.in_proj_qkv": {
13
+ "bits": 8
14
+ },
15
+ "model.language_model.layers.0.linear_attn.in_proj_z": {
16
+ "bits": 8
17
+ },
18
+ "model.language_model.layers.0.linear_attn.in_proj_b": {
19
+ "bits": 8
20
+ },
21
+ "model.language_model.layers.0.linear_attn.in_proj_a": {
22
+ "bits": 8
23
+ },
24
+ "model.language_model.layers.1.linear_attn.in_proj_b": {
25
+ "bits": 8
26
+ },
27
+ "model.language_model.layers.1.linear_attn.in_proj_a": {
28
+ "bits": 8
29
+ },
30
+ "model.language_model.layers.2.linear_attn.in_proj_b": {
31
+ "bits": 8
32
+ },
33
+ "model.language_model.layers.2.linear_attn.in_proj_a": {
34
+ "bits": 8
35
+ },
36
+ "model.language_model.layers.4.linear_attn.in_proj_b": {
37
+ "bits": 8
38
+ },
39
+ "model.language_model.layers.4.linear_attn.in_proj_a": {
40
+ "bits": 8
41
+ },
42
+ "model.language_model.layers.5.linear_attn.in_proj_b": {
43
+ "bits": 8
44
+ },
45
+ "model.language_model.layers.5.linear_attn.in_proj_a": {
46
+ "bits": 8
47
+ },
48
+ "model.language_model.layers.6.linear_attn.in_proj_b": {
49
+ "bits": 8
50
+ },
51
+ "model.language_model.layers.6.linear_attn.in_proj_a": {
52
+ "bits": 8
53
+ },
54
+ "model.language_model.layers.8.linear_attn.in_proj_b": {
55
+ "bits": 8
56
+ },
57
+ "model.language_model.layers.8.linear_attn.in_proj_a": {
58
+ "bits": 8
59
+ },
60
+ "model.language_model.layers.9.linear_attn.in_proj_b": {
61
+ "bits": 8
62
+ },
63
+ "model.language_model.layers.9.linear_attn.in_proj_a": {
64
+ "bits": 8
65
+ },
66
+ "model.language_model.layers.10.linear_attn.in_proj_b": {
67
+ "bits": 8
68
+ },
69
+ "model.language_model.layers.10.linear_attn.in_proj_a": {
70
+ "bits": 8
71
+ },
72
+ "model.language_model.layers.12.linear_attn.in_proj_b": {
73
+ "bits": 8
74
+ },
75
+ "model.language_model.layers.12.linear_attn.in_proj_a": {
76
+ "bits": 8
77
+ },
78
+ "model.language_model.layers.13.linear_attn.in_proj_b": {
79
+ "bits": 8
80
+ },
81
+ "model.language_model.layers.13.linear_attn.in_proj_a": {
82
+ "bits": 8
83
+ },
84
+ "model.language_model.layers.14.linear_attn.in_proj_b": {
85
+ "bits": 8
86
+ },
87
+ "model.language_model.layers.14.linear_attn.in_proj_a": {
88
+ "bits": 8
89
+ },
90
+ "model.language_model.layers.16.linear_attn.in_proj_b": {
91
+ "bits": 8
92
+ },
93
+ "model.language_model.layers.16.linear_attn.in_proj_a": {
94
+ "bits": 8
95
+ },
96
+ "model.language_model.layers.17.linear_attn.in_proj_b": {
97
+ "bits": 8
98
+ },
99
+ "model.language_model.layers.17.linear_attn.in_proj_a": {
100
+ "bits": 8
101
+ },
102
+ "model.language_model.layers.18.linear_attn.in_proj_b": {
103
+ "bits": 8
104
+ },
105
+ "model.language_model.layers.18.linear_attn.in_proj_a": {
106
+ "bits": 8
107
+ },
108
+ "model.language_model.layers.20.linear_attn.in_proj_b": {
109
+ "bits": 8
110
+ },
111
+ "model.language_model.layers.20.linear_attn.in_proj_a": {
112
+ "bits": 8
113
+ },
114
+ "model.language_model.layers.21.linear_attn.in_proj_b": {
115
+ "bits": 8
116
+ },
117
+ "model.language_model.layers.21.linear_attn.in_proj_a": {
118
+ "bits": 8
119
+ },
120
+ "model.language_model.layers.22.linear_attn.in_proj_b": {
121
+ "bits": 8
122
+ },
123
+ "model.language_model.layers.22.linear_attn.in_proj_a": {
124
+ "bits": 8
125
+ },
126
+ "model.language_model.layers.24.linear_attn.in_proj_b": {
127
+ "bits": 8
128
+ },
129
+ "model.language_model.layers.24.linear_attn.in_proj_a": {
130
+ "bits": 8
131
+ },
132
+ "model.language_model.layers.25.linear_attn.in_proj_b": {
133
+ "bits": 8
134
+ },
135
+ "model.language_model.layers.25.linear_attn.in_proj_a": {
136
+ "bits": 8
137
+ },
138
+ "model.language_model.layers.26.linear_attn.in_proj_b": {
139
+ "bits": 8
140
+ },
141
+ "model.language_model.layers.26.linear_attn.in_proj_a": {
142
+ "bits": 8
143
+ },
144
+ "model.language_model.layers.28.linear_attn.in_proj_b": {
145
+ "bits": 8
146
+ },
147
+ "model.language_model.layers.28.linear_attn.in_proj_a": {
148
+ "bits": 8
149
+ },
150
+ "model.language_model.layers.29.linear_attn.in_proj_b": {
151
+ "bits": 8
152
+ },
153
+ "model.language_model.layers.29.linear_attn.in_proj_a": {
154
+ "bits": 8
155
+ },
156
+ "model.language_model.layers.30.linear_attn.in_proj_b": {
157
+ "bits": 8
158
+ },
159
+ "model.language_model.layers.30.linear_attn.in_proj_a": {
160
+ "bits": 8
161
+ },
162
+ "model.language_model.layers.0.linear_attn.out_proj": {
163
+ "bits": 8
164
+ },
165
+ "model.language_model.layers.1.linear_attn.out_proj": {
166
+ "bits": 8
167
+ },
168
+ "model.language_model.layers.2.linear_attn.out_proj": {
169
+ "bits": 8
170
+ },
171
+ "model.language_model.layers.2.mlp.down_proj": {
172
+ "bits": 8
173
+ },
174
+ "model.language_model.layers.3.self_attn.o_proj": {
175
+ "bits": 8
176
+ },
177
+ "model.language_model.layers.7.self_attn.o_proj": {
178
+ "bits": 8
179
+ },
180
+ "model.language_model.layers.11.self_attn.o_proj": {
181
+ "bits": 8
182
+ }
183
+ }
184
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "local_files_only": false,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "processor_class": "Qwen3VLProcessor",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null,
30
+ "video_token": "<|video_pad|>",
31
+ "vision_bos_token": "<|vision_start|>",
32
+ "vision_eos_token": "<|vision_end|>"
33
+ }