SceneWorks commited on
Commit
b0efd86
·
verified ·
1 Parent(s): 17cd59f

SW-7202: expander mlx q8-full/q4-full tiers (inference 6d6b523d68cd49340c27b14580306389e410aa81)

Browse files
.gitattributes CHANGED
@@ -40,3 +40,5 @@ q8/tokenizer.json filter=lfs diff=lfs merge=lfs -text
40
  bf16/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  candle-q4-full/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  candle-q8-full/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
40
  bf16/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  candle-q4-full/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  candle-q8-full/tokenizer.json filter=lfs diff=lfs merge=lfs -text
43
+ q4-full/tokenizer.json filter=lfs diff=lfs merge=lfs -text
44
+ q8-full/tokenizer.json filter=lfs diff=lfs merge=lfs -text
q4-full/README.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # `q4-full/` — fully quantized tier (q4-full)
2
+
3
+ Produced by SceneWorks from `MiniMaxAI/MiniMax-H3-Image-PE` at revision `35603d4b63949afa12cb098227fffefedf081afa` with `prepare_snapshot ... q4-full` built from SceneWorks/inference `6d6b523d68cd49340c27b14580306389e410aa81`.
4
+
5
+ - Recipe: 4-bit body; `lm_head`, `embed_tokens` and every Gated DeltaNet `in_proj_a` / `in_proj_b` 8-bit.
6
+ - Storage: MLX group-wise affine quantized weights (group size 64), read by mlx-llm.
7
+ - The vision tower stays dense; the MTP head is stored as in the plain tier.
8
+
9
+ This folder is self-contained (config, tokenizer, chat template, weights). The plain tiers in this repository are unchanged. `SOURCE_REVISION.json` records the exact provenance.
10
+
11
+ License: MiniMax-H3-Image Community License Agreement (MiniMax Materials). The licensed prompt files are never copied here; read them from the upstream repository.
q4-full/SOURCE_REVISION.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_repo": "MiniMaxAI/MiniMax-H3-Image-PE",
3
+ "source_revision": "35603d4b63949afa12cb098227fffefedf081afa",
4
+ "source_format": "modelopt NVFP4, dequantized to bf16 on the CPU (modelopt_nvfp4_to_bf16)",
5
+ "producer": "SceneWorks/inference mlx-llm examples/prepare_snapshot",
6
+ "producer_revision": "6d6b523d68cd49340c27b14580306389e410aa81",
7
+ "recipe": "q4-full",
8
+ "recipe_description": "4-bit body; `lm_head`, `embed_tokens` and every Gated DeltaNet `in_proj_a` / `in_proj_b` 8-bit",
9
+ "storage": "MLX group-wise affine quantized weights (group size 64), read by mlx-llm",
10
+ "vision_tower": "dense, as in the plain tiers",
11
+ "mtp_head": "stored as in the plain tier of the same body width",
12
+ "workflow_run": "https://github.com/SceneWorks/inference/actions/runs/44410757637"
13
+ }
q4-full/chat_template.jinja ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {%- set reasoning_instructions = '' %}
46
+ {%- if enable_thinking is undefined or enable_thinking is true %}
47
+ {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
48
+ {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
49
+ {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
50
+ {%- endif %}
51
+ {%- if resolved_reasoning_effort == 'xhigh' %}
52
+ {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
53
+ {%- elif resolved_reasoning_effort == 'low' %}
54
+ {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
55
+ {%- endif %}
56
+ {%- endif %}
57
+ {%- if tools and tools is iterable and tools is not mapping %}
58
+ {{- '<|im_start|>system\n' }}
59
+ {%- if reasoning_instructions %}
60
+ {{- reasoning_instructions + '\n\n' }}
61
+ {%- endif %}
62
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
63
+ {%- for tool in tools %}
64
+ {{- "\n" }}
65
+ {{- tool | tojson }}
66
+ {%- endfor %}
67
+ {{- "\n</tools>" }}
68
+ {{- '\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>' }}
69
+ {%- if messages[0].role == 'system' %}
70
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
71
+ {%- if content %}
72
+ {{- '\n\n' + content }}
73
+ {%- endif %}
74
+ {%- endif %}
75
+ {{- '<|im_end|>\n' }}
76
+ {%- else %}
77
+ {%- if messages[0].role == 'system' %}
78
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
79
+ {%- if content %}
80
+ {{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + content + '<|im_end|>\n' }}
81
+ {%- elif reasoning_instructions %}
82
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
83
+ {%- endif %}
84
+ {%- elif reasoning_instructions %}
85
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
86
+ {%- endif %}
87
+ {%- endif %}
88
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
89
+ {%- for message in messages[::-1] %}
90
+ {%- set index = (messages|length - 1) - loop.index0 %}
91
+ {%- if ns.multi_step_tool and message.role == "user" %}
92
+ {%- set content = render_content(message.content, false)|trim %}
93
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
94
+ {%- set ns.multi_step_tool = false %}
95
+ {%- set ns.last_query_index = index %}
96
+ {%- endif %}
97
+ {%- endif %}
98
+ {%- endfor %}
99
+ {%- if ns.multi_step_tool %}
100
+ {{- raise_exception('No user query found in messages.') }}
101
+ {%- endif %}
102
+ {%- for message in messages %}
103
+ {%- set content = render_content(message.content, true)|trim %}
104
+ {%- if message.role == "system" %}
105
+ {%- if not loop.first %}
106
+ {{- raise_exception('System message must be at the beginning.') }}
107
+ {%- endif %}
108
+ {%- elif message.role == "user" %}
109
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
110
+ {%- elif message.role == "assistant" %}
111
+ {%- set reasoning_content = '' %}
112
+ {%- if message.reasoning_content is string %}
113
+ {%- set reasoning_content = message.reasoning_content %}
114
+ {%- endif %}
115
+ {%- set reasoning_content = reasoning_content|trim %}
116
+ {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
117
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
118
+ {%- else %}
119
+ {{- '<|im_start|>' + message.role + '\n' + content }}
120
+ {%- endif %}
121
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
122
+ {%- for tool_call in message.tool_calls %}
123
+ {%- if tool_call.function is defined %}
124
+ {%- set tool_call = tool_call.function %}
125
+ {%- endif %}
126
+ {%- if loop.first %}
127
+ {%- if content|trim %}
128
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
129
+ {%- else %}
130
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
131
+ {%- endif %}
132
+ {%- else %}
133
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
134
+ {%- endif %}
135
+ {%- if tool_call.arguments is defined and tool_call.arguments != '' %}
136
+ {%- for args_name, args_value in tool_call.arguments|items %}
137
+ {{- '<parameter=' + args_name + '>\n' }}
138
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
139
+ {{- args_value }}
140
+ {{- '\n</parameter>\n' }}
141
+ {%- endfor %}
142
+ {%- endif %}
143
+ {{- '</function>\n</tool_call>' }}
144
+ {%- endfor %}
145
+ {%- endif %}
146
+ {{- '<|im_end|>\n' }}
147
+ {%- elif message.role == "tool" %}
148
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
149
+ {{- '<|im_start|>user' }}
150
+ {%- endif %}
151
+ {{- '\n<tool_response>\n' }}
152
+ {{- content }}
153
+ {{- '\n</tool_response>' }}
154
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
155
+ {{- '<|im_end|>\n' }}
156
+ {%- elif loop.last %}
157
+ {{- '<|im_end|>\n' }}
158
+ {%- endif %}
159
+ {%- else %}
160
+ {{- raise_exception('Unexpected message role.') }}
161
+ {%- endif %}
162
+ {%- endfor %}
163
+ {%- if add_generation_prompt %}
164
+ {{- '<|im_start|>assistant\n' }}
165
+ {%- if enable_thinking is defined and enable_thinking is false %}
166
+ {{- '<think>\n\n</think>\n\n' }}
167
+ {%- else %}
168
+ {{- '<think>\n' }}
169
+ {%- endif %}
170
+ {%- endif %}
q4-full/config.json ADDED
@@ -0,0 +1,934 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "hidden_size": 5120,
7
+ "image_token_id": 248056,
8
+ "language_model_only": false,
9
+ "model_type": "qwen3_5",
10
+ "vision_start_token_id": 248053,
11
+ "text_config": {
12
+ "attention_bias": false,
13
+ "attention_dropout": 0.0,
14
+ "attn_output_gate": true,
15
+ "bos_token_id": 248044,
16
+ "dtype": "bfloat16",
17
+ "eos_token_id": 248046,
18
+ "full_attention_interval": 4,
19
+ "head_dim": 256,
20
+ "hidden_act": "silu",
21
+ "hidden_size": 5120,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 17408,
24
+ "layer_types": [
25
+ "linear_attention",
26
+ "linear_attention",
27
+ "linear_attention",
28
+ "full_attention",
29
+ "linear_attention",
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "full_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "full_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "full_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "full_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "full_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "full_attention",
53
+ "linear_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "full_attention",
57
+ "linear_attention",
58
+ "linear_attention",
59
+ "linear_attention",
60
+ "full_attention",
61
+ "linear_attention",
62
+ "linear_attention",
63
+ "linear_attention",
64
+ "full_attention",
65
+ "linear_attention",
66
+ "linear_attention",
67
+ "linear_attention",
68
+ "full_attention",
69
+ "linear_attention",
70
+ "linear_attention",
71
+ "linear_attention",
72
+ "full_attention",
73
+ "linear_attention",
74
+ "linear_attention",
75
+ "linear_attention",
76
+ "full_attention",
77
+ "linear_attention",
78
+ "linear_attention",
79
+ "linear_attention",
80
+ "full_attention",
81
+ "linear_attention",
82
+ "linear_attention",
83
+ "linear_attention",
84
+ "full_attention",
85
+ "linear_attention",
86
+ "linear_attention",
87
+ "linear_attention",
88
+ "full_attention"
89
+ ],
90
+ "linear_conv_kernel_dim": 4,
91
+ "linear_key_head_dim": 128,
92
+ "linear_num_key_heads": 16,
93
+ "linear_num_value_heads": 48,
94
+ "linear_value_head_dim": 128,
95
+ "mamba_ssm_dtype": "float32",
96
+ "max_position_embeddings": 262144,
97
+ "model_type": "qwen3_5_text",
98
+ "mtp_num_hidden_layers": 0,
99
+ "num_attention_heads": 24,
100
+ "num_hidden_layers": 64,
101
+ "num_key_value_heads": 4,
102
+ "output_gate_type": "swish",
103
+ "pad_token_id": 248044,
104
+ "partial_rotary_factor": 0.25,
105
+ "rms_norm_eps": 1e-6,
106
+ "rope_parameters": {
107
+ "mrope_interleaved": true,
108
+ "mrope_section": [
109
+ 11,
110
+ 11,
111
+ 10
112
+ ],
113
+ "partial_rotary_factor": 0.25,
114
+ "rope_theta": 10000000,
115
+ "rope_type": "default"
116
+ },
117
+ "tie_word_embeddings": false,
118
+ "use_cache": true,
119
+ "vocab_size": 248320,
120
+ "quantization": {
121
+ "group_size": 64,
122
+ "bits": 4,
123
+ "language_model.model.layers.24.linear_attn.in_proj_b": {
124
+ "group_size": 64,
125
+ "bits": 8
126
+ },
127
+ "language_model.model.layers.40.linear_attn.in_proj_a": {
128
+ "group_size": 64,
129
+ "bits": 8
130
+ },
131
+ "language_model.model.layers.48.linear_attn.in_proj_a": {
132
+ "group_size": 64,
133
+ "bits": 8
134
+ },
135
+ "language_model.model.layers.57.linear_attn.in_proj_a": {
136
+ "group_size": 64,
137
+ "bits": 8
138
+ },
139
+ "language_model.model.layers.14.linear_attn.in_proj_b": {
140
+ "group_size": 64,
141
+ "bits": 8
142
+ },
143
+ "language_model.model.layers.45.linear_attn.in_proj_b": {
144
+ "group_size": 64,
145
+ "bits": 8
146
+ },
147
+ "language_model.model.layers.28.linear_attn.in_proj_b": {
148
+ "group_size": 64,
149
+ "bits": 8
150
+ },
151
+ "language_model.model.layers.30.linear_attn.in_proj_b": {
152
+ "group_size": 64,
153
+ "bits": 8
154
+ },
155
+ "language_model.model.layers.44.linear_attn.in_proj_a": {
156
+ "group_size": 64,
157
+ "bits": 8
158
+ },
159
+ "language_model.model.layers.21.linear_attn.in_proj_b": {
160
+ "group_size": 64,
161
+ "bits": 8
162
+ },
163
+ "language_model.model.layers.53.linear_attn.in_proj_b": {
164
+ "group_size": 64,
165
+ "bits": 8
166
+ },
167
+ "language_model.model.layers.37.linear_attn.in_proj_a": {
168
+ "group_size": 64,
169
+ "bits": 8
170
+ },
171
+ "language_model.model.layers.26.linear_attn.in_proj_a": {
172
+ "group_size": 64,
173
+ "bits": 8
174
+ },
175
+ "language_model.model.layers.25.linear_attn.in_proj_b": {
176
+ "group_size": 64,
177
+ "bits": 8
178
+ },
179
+ "language_model.model.layers.45.linear_attn.in_proj_a": {
180
+ "group_size": 64,
181
+ "bits": 8
182
+ },
183
+ "language_model.model.layers.18.linear_attn.in_proj_a": {
184
+ "group_size": 64,
185
+ "bits": 8
186
+ },
187
+ "language_model.model.layers.13.linear_attn.in_proj_a": {
188
+ "group_size": 64,
189
+ "bits": 8
190
+ },
191
+ "language_model.model.layers.24.linear_attn.in_proj_a": {
192
+ "group_size": 64,
193
+ "bits": 8
194
+ },
195
+ "language_model.lm_head": {
196
+ "group_size": 64,
197
+ "bits": 8
198
+ },
199
+ "language_model.model.layers.50.linear_attn.in_proj_b": {
200
+ "group_size": 64,
201
+ "bits": 8
202
+ },
203
+ "language_model.model.layers.18.linear_attn.in_proj_b": {
204
+ "group_size": 64,
205
+ "bits": 8
206
+ },
207
+ "language_model.model.layers.13.linear_attn.in_proj_b": {
208
+ "group_size": 64,
209
+ "bits": 8
210
+ },
211
+ "language_model.model.layers.10.linear_attn.in_proj_b": {
212
+ "group_size": 64,
213
+ "bits": 8
214
+ },
215
+ "language_model.model.layers.21.linear_attn.in_proj_a": {
216
+ "group_size": 64,
217
+ "bits": 8
218
+ },
219
+ "language_model.model.layers.17.linear_attn.in_proj_b": {
220
+ "group_size": 64,
221
+ "bits": 8
222
+ },
223
+ "language_model.model.layers.56.linear_attn.in_proj_b": {
224
+ "group_size": 64,
225
+ "bits": 8
226
+ },
227
+ "language_model.model.layers.29.linear_attn.in_proj_b": {
228
+ "group_size": 64,
229
+ "bits": 8
230
+ },
231
+ "language_model.model.layers.12.linear_attn.in_proj_b": {
232
+ "group_size": 64,
233
+ "bits": 8
234
+ },
235
+ "language_model.model.layers.22.linear_attn.in_proj_a": {
236
+ "group_size": 64,
237
+ "bits": 8
238
+ },
239
+ "language_model.model.layers.41.linear_attn.in_proj_a": {
240
+ "group_size": 64,
241
+ "bits": 8
242
+ },
243
+ "language_model.model.layers.5.linear_attn.in_proj_b": {
244
+ "group_size": 64,
245
+ "bits": 8
246
+ },
247
+ "language_model.model.layers.38.linear_attn.in_proj_a": {
248
+ "group_size": 64,
249
+ "bits": 8
250
+ },
251
+ "language_model.model.layers.33.linear_attn.in_proj_a": {
252
+ "group_size": 64,
253
+ "bits": 8
254
+ },
255
+ "language_model.model.layers.44.linear_attn.in_proj_b": {
256
+ "group_size": 64,
257
+ "bits": 8
258
+ },
259
+ "language_model.model.layers.34.linear_attn.in_proj_a": {
260
+ "group_size": 64,
261
+ "bits": 8
262
+ },
263
+ "language_model.model.layers.28.linear_attn.in_proj_a": {
264
+ "group_size": 64,
265
+ "bits": 8
266
+ },
267
+ "language_model.model.layers.48.linear_attn.in_proj_b": {
268
+ "group_size": 64,
269
+ "bits": 8
270
+ },
271
+ "language_model.model.layers.1.linear_attn.in_proj_a": {
272
+ "group_size": 64,
273
+ "bits": 8
274
+ },
275
+ "language_model.model.layers.6.linear_attn.in_proj_b": {
276
+ "group_size": 64,
277
+ "bits": 8
278
+ },
279
+ "language_model.model.embed_tokens": {
280
+ "group_size": 64,
281
+ "bits": 8
282
+ },
283
+ "language_model.model.layers.10.linear_attn.in_proj_a": {
284
+ "group_size": 64,
285
+ "bits": 8
286
+ },
287
+ "language_model.model.layers.54.linear_attn.in_proj_b": {
288
+ "group_size": 64,
289
+ "bits": 8
290
+ },
291
+ "language_model.model.layers.14.linear_attn.in_proj_a": {
292
+ "group_size": 64,
293
+ "bits": 8
294
+ },
295
+ "language_model.model.layers.42.linear_attn.in_proj_a": {
296
+ "group_size": 64,
297
+ "bits": 8
298
+ },
299
+ "language_model.model.layers.57.linear_attn.in_proj_b": {
300
+ "group_size": 64,
301
+ "bits": 8
302
+ },
303
+ "language_model.model.layers.2.linear_attn.in_proj_b": {
304
+ "group_size": 64,
305
+ "bits": 8
306
+ },
307
+ "language_model.model.layers.53.linear_attn.in_proj_a": {
308
+ "group_size": 64,
309
+ "bits": 8
310
+ },
311
+ "language_model.model.layers.16.linear_attn.in_proj_a": {
312
+ "group_size": 64,
313
+ "bits": 8
314
+ },
315
+ "language_model.model.layers.4.linear_attn.in_proj_a": {
316
+ "group_size": 64,
317
+ "bits": 8
318
+ },
319
+ "language_model.model.layers.61.linear_attn.in_proj_b": {
320
+ "group_size": 64,
321
+ "bits": 8
322
+ },
323
+ "language_model.model.layers.36.linear_attn.in_proj_b": {
324
+ "group_size": 64,
325
+ "bits": 8
326
+ },
327
+ "language_model.model.layers.42.linear_attn.in_proj_b": {
328
+ "group_size": 64,
329
+ "bits": 8
330
+ },
331
+ "language_model.model.layers.29.linear_attn.in_proj_a": {
332
+ "group_size": 64,
333
+ "bits": 8
334
+ },
335
+ "language_model.model.layers.54.linear_attn.in_proj_a": {
336
+ "group_size": 64,
337
+ "bits": 8
338
+ },
339
+ "language_model.model.layers.1.linear_attn.in_proj_b": {
340
+ "group_size": 64,
341
+ "bits": 8
342
+ },
343
+ "language_model.model.layers.52.linear_attn.in_proj_b": {
344
+ "group_size": 64,
345
+ "bits": 8
346
+ },
347
+ "language_model.model.layers.56.linear_attn.in_proj_a": {
348
+ "group_size": 64,
349
+ "bits": 8
350
+ },
351
+ "language_model.model.layers.4.linear_attn.in_proj_b": {
352
+ "group_size": 64,
353
+ "bits": 8
354
+ },
355
+ "language_model.model.layers.25.linear_attn.in_proj_a": {
356
+ "group_size": 64,
357
+ "bits": 8
358
+ },
359
+ "language_model.model.layers.36.linear_attn.in_proj_a": {
360
+ "group_size": 64,
361
+ "bits": 8
362
+ },
363
+ "language_model.model.layers.16.linear_attn.in_proj_b": {
364
+ "group_size": 64,
365
+ "bits": 8
366
+ },
367
+ "language_model.model.layers.9.linear_attn.in_proj_a": {
368
+ "group_size": 64,
369
+ "bits": 8
370
+ },
371
+ "language_model.model.layers.58.linear_attn.in_proj_b": {
372
+ "group_size": 64,
373
+ "bits": 8
374
+ },
375
+ "language_model.model.layers.32.linear_attn.in_proj_a": {
376
+ "group_size": 64,
377
+ "bits": 8
378
+ },
379
+ "language_model.model.layers.20.linear_attn.in_proj_a": {
380
+ "group_size": 64,
381
+ "bits": 8
382
+ },
383
+ "language_model.model.layers.46.linear_attn.in_proj_a": {
384
+ "group_size": 64,
385
+ "bits": 8
386
+ },
387
+ "language_model.model.layers.34.linear_attn.in_proj_b": {
388
+ "group_size": 64,
389
+ "bits": 8
390
+ },
391
+ "language_model.model.layers.52.linear_attn.in_proj_a": {
392
+ "group_size": 64,
393
+ "bits": 8
394
+ },
395
+ "language_model.model.layers.60.linear_attn.in_proj_a": {
396
+ "group_size": 64,
397
+ "bits": 8
398
+ },
399
+ "language_model.model.layers.33.linear_attn.in_proj_b": {
400
+ "group_size": 64,
401
+ "bits": 8
402
+ },
403
+ "language_model.model.layers.62.linear_attn.in_proj_b": {
404
+ "group_size": 64,
405
+ "bits": 8
406
+ },
407
+ "language_model.model.layers.0.linear_attn.in_proj_b": {
408
+ "group_size": 64,
409
+ "bits": 8
410
+ },
411
+ "language_model.model.layers.50.linear_attn.in_proj_a": {
412
+ "group_size": 64,
413
+ "bits": 8
414
+ },
415
+ "language_model.model.layers.5.linear_attn.in_proj_a": {
416
+ "group_size": 64,
417
+ "bits": 8
418
+ },
419
+ "language_model.model.layers.30.linear_attn.in_proj_a": {
420
+ "group_size": 64,
421
+ "bits": 8
422
+ },
423
+ "language_model.model.layers.12.linear_attn.in_proj_a": {
424
+ "group_size": 64,
425
+ "bits": 8
426
+ },
427
+ "language_model.model.layers.40.linear_attn.in_proj_b": {
428
+ "group_size": 64,
429
+ "bits": 8
430
+ },
431
+ "language_model.model.layers.2.linear_attn.in_proj_a": {
432
+ "group_size": 64,
433
+ "bits": 8
434
+ },
435
+ "language_model.model.layers.32.linear_attn.in_proj_b": {
436
+ "group_size": 64,
437
+ "bits": 8
438
+ },
439
+ "language_model.model.layers.41.linear_attn.in_proj_b": {
440
+ "group_size": 64,
441
+ "bits": 8
442
+ },
443
+ "language_model.model.layers.58.linear_attn.in_proj_a": {
444
+ "group_size": 64,
445
+ "bits": 8
446
+ },
447
+ "language_model.model.layers.9.linear_attn.in_proj_b": {
448
+ "group_size": 64,
449
+ "bits": 8
450
+ },
451
+ "language_model.model.layers.20.linear_attn.in_proj_b": {
452
+ "group_size": 64,
453
+ "bits": 8
454
+ },
455
+ "language_model.model.layers.49.linear_attn.in_proj_b": {
456
+ "group_size": 64,
457
+ "bits": 8
458
+ },
459
+ "language_model.model.layers.62.linear_attn.in_proj_a": {
460
+ "group_size": 64,
461
+ "bits": 8
462
+ },
463
+ "language_model.model.layers.60.linear_attn.in_proj_b": {
464
+ "group_size": 64,
465
+ "bits": 8
466
+ },
467
+ "language_model.model.layers.22.linear_attn.in_proj_b": {
468
+ "group_size": 64,
469
+ "bits": 8
470
+ },
471
+ "language_model.model.layers.49.linear_attn.in_proj_a": {
472
+ "group_size": 64,
473
+ "bits": 8
474
+ },
475
+ "language_model.model.layers.38.linear_attn.in_proj_b": {
476
+ "group_size": 64,
477
+ "bits": 8
478
+ },
479
+ "language_model.model.layers.46.linear_attn.in_proj_b": {
480
+ "group_size": 64,
481
+ "bits": 8
482
+ },
483
+ "language_model.model.layers.17.linear_attn.in_proj_a": {
484
+ "group_size": 64,
485
+ "bits": 8
486
+ },
487
+ "language_model.model.layers.37.linear_attn.in_proj_b": {
488
+ "group_size": 64,
489
+ "bits": 8
490
+ },
491
+ "language_model.model.layers.0.linear_attn.in_proj_a": {
492
+ "group_size": 64,
493
+ "bits": 8
494
+ },
495
+ "language_model.model.layers.61.linear_attn.in_proj_a": {
496
+ "group_size": 64,
497
+ "bits": 8
498
+ },
499
+ "language_model.model.layers.6.linear_attn.in_proj_a": {
500
+ "group_size": 64,
501
+ "bits": 8
502
+ },
503
+ "language_model.model.layers.8.linear_attn.in_proj_a": {
504
+ "group_size": 64,
505
+ "bits": 8
506
+ },
507
+ "language_model.model.layers.8.linear_attn.in_proj_b": {
508
+ "group_size": 64,
509
+ "bits": 8
510
+ },
511
+ "language_model.model.layers.26.linear_attn.in_proj_b": {
512
+ "group_size": 64,
513
+ "bits": 8
514
+ }
515
+ }
516
+ },
517
+ "tie_word_embeddings": false,
518
+ "transformers_version": "5.14.1",
519
+ "video_token_id": 248057,
520
+ "vision_config": {
521
+ "deepstack_visual_indexes": [],
522
+ "depth": 27,
523
+ "dtype": "bfloat16",
524
+ "hidden_act": "gelu_pytorch_tanh",
525
+ "hidden_size": 1152,
526
+ "in_channels": 3,
527
+ "initializer_range": 0.02,
528
+ "intermediate_size": 4304,
529
+ "model_type": "qwen3_5_vision",
530
+ "num_heads": 16,
531
+ "num_position_embeddings": 2304,
532
+ "out_hidden_size": 5120,
533
+ "patch_size": 16,
534
+ "spatial_merge_size": 2,
535
+ "temporal_patch_size": 2
536
+ },
537
+ "vision_end_token_id": 248054,
538
+ "quantization": {
539
+ "group_size": 64,
540
+ "bits": 4,
541
+ "language_model.model.layers.24.linear_attn.in_proj_b": {
542
+ "group_size": 64,
543
+ "bits": 8
544
+ },
545
+ "language_model.model.layers.40.linear_attn.in_proj_a": {
546
+ "group_size": 64,
547
+ "bits": 8
548
+ },
549
+ "language_model.model.layers.48.linear_attn.in_proj_a": {
550
+ "group_size": 64,
551
+ "bits": 8
552
+ },
553
+ "language_model.model.layers.57.linear_attn.in_proj_a": {
554
+ "group_size": 64,
555
+ "bits": 8
556
+ },
557
+ "language_model.model.layers.14.linear_attn.in_proj_b": {
558
+ "group_size": 64,
559
+ "bits": 8
560
+ },
561
+ "language_model.model.layers.45.linear_attn.in_proj_b": {
562
+ "group_size": 64,
563
+ "bits": 8
564
+ },
565
+ "language_model.model.layers.28.linear_attn.in_proj_b": {
566
+ "group_size": 64,
567
+ "bits": 8
568
+ },
569
+ "language_model.model.layers.30.linear_attn.in_proj_b": {
570
+ "group_size": 64,
571
+ "bits": 8
572
+ },
573
+ "language_model.model.layers.44.linear_attn.in_proj_a": {
574
+ "group_size": 64,
575
+ "bits": 8
576
+ },
577
+ "language_model.model.layers.21.linear_attn.in_proj_b": {
578
+ "group_size": 64,
579
+ "bits": 8
580
+ },
581
+ "language_model.model.layers.53.linear_attn.in_proj_b": {
582
+ "group_size": 64,
583
+ "bits": 8
584
+ },
585
+ "language_model.model.layers.37.linear_attn.in_proj_a": {
586
+ "group_size": 64,
587
+ "bits": 8
588
+ },
589
+ "language_model.model.layers.26.linear_attn.in_proj_a": {
590
+ "group_size": 64,
591
+ "bits": 8
592
+ },
593
+ "language_model.model.layers.25.linear_attn.in_proj_b": {
594
+ "group_size": 64,
595
+ "bits": 8
596
+ },
597
+ "language_model.model.layers.45.linear_attn.in_proj_a": {
598
+ "group_size": 64,
599
+ "bits": 8
600
+ },
601
+ "language_model.model.layers.18.linear_attn.in_proj_a": {
602
+ "group_size": 64,
603
+ "bits": 8
604
+ },
605
+ "language_model.model.layers.13.linear_attn.in_proj_a": {
606
+ "group_size": 64,
607
+ "bits": 8
608
+ },
609
+ "language_model.model.layers.24.linear_attn.in_proj_a": {
610
+ "group_size": 64,
611
+ "bits": 8
612
+ },
613
+ "language_model.lm_head": {
614
+ "group_size": 64,
615
+ "bits": 8
616
+ },
617
+ "language_model.model.layers.50.linear_attn.in_proj_b": {
618
+ "group_size": 64,
619
+ "bits": 8
620
+ },
621
+ "language_model.model.layers.18.linear_attn.in_proj_b": {
622
+ "group_size": 64,
623
+ "bits": 8
624
+ },
625
+ "language_model.model.layers.13.linear_attn.in_proj_b": {
626
+ "group_size": 64,
627
+ "bits": 8
628
+ },
629
+ "language_model.model.layers.10.linear_attn.in_proj_b": {
630
+ "group_size": 64,
631
+ "bits": 8
632
+ },
633
+ "language_model.model.layers.21.linear_attn.in_proj_a": {
634
+ "group_size": 64,
635
+ "bits": 8
636
+ },
637
+ "language_model.model.layers.17.linear_attn.in_proj_b": {
638
+ "group_size": 64,
639
+ "bits": 8
640
+ },
641
+ "language_model.model.layers.56.linear_attn.in_proj_b": {
642
+ "group_size": 64,
643
+ "bits": 8
644
+ },
645
+ "language_model.model.layers.29.linear_attn.in_proj_b": {
646
+ "group_size": 64,
647
+ "bits": 8
648
+ },
649
+ "language_model.model.layers.12.linear_attn.in_proj_b": {
650
+ "group_size": 64,
651
+ "bits": 8
652
+ },
653
+ "language_model.model.layers.22.linear_attn.in_proj_a": {
654
+ "group_size": 64,
655
+ "bits": 8
656
+ },
657
+ "language_model.model.layers.41.linear_attn.in_proj_a": {
658
+ "group_size": 64,
659
+ "bits": 8
660
+ },
661
+ "language_model.model.layers.5.linear_attn.in_proj_b": {
662
+ "group_size": 64,
663
+ "bits": 8
664
+ },
665
+ "language_model.model.layers.38.linear_attn.in_proj_a": {
666
+ "group_size": 64,
667
+ "bits": 8
668
+ },
669
+ "language_model.model.layers.33.linear_attn.in_proj_a": {
670
+ "group_size": 64,
671
+ "bits": 8
672
+ },
673
+ "language_model.model.layers.44.linear_attn.in_proj_b": {
674
+ "group_size": 64,
675
+ "bits": 8
676
+ },
677
+ "language_model.model.layers.34.linear_attn.in_proj_a": {
678
+ "group_size": 64,
679
+ "bits": 8
680
+ },
681
+ "language_model.model.layers.28.linear_attn.in_proj_a": {
682
+ "group_size": 64,
683
+ "bits": 8
684
+ },
685
+ "language_model.model.layers.48.linear_attn.in_proj_b": {
686
+ "group_size": 64,
687
+ "bits": 8
688
+ },
689
+ "language_model.model.layers.1.linear_attn.in_proj_a": {
690
+ "group_size": 64,
691
+ "bits": 8
692
+ },
693
+ "language_model.model.layers.6.linear_attn.in_proj_b": {
694
+ "group_size": 64,
695
+ "bits": 8
696
+ },
697
+ "language_model.model.embed_tokens": {
698
+ "group_size": 64,
699
+ "bits": 8
700
+ },
701
+ "language_model.model.layers.10.linear_attn.in_proj_a": {
702
+ "group_size": 64,
703
+ "bits": 8
704
+ },
705
+ "language_model.model.layers.54.linear_attn.in_proj_b": {
706
+ "group_size": 64,
707
+ "bits": 8
708
+ },
709
+ "language_model.model.layers.14.linear_attn.in_proj_a": {
710
+ "group_size": 64,
711
+ "bits": 8
712
+ },
713
+ "language_model.model.layers.42.linear_attn.in_proj_a": {
714
+ "group_size": 64,
715
+ "bits": 8
716
+ },
717
+ "language_model.model.layers.57.linear_attn.in_proj_b": {
718
+ "group_size": 64,
719
+ "bits": 8
720
+ },
721
+ "language_model.model.layers.2.linear_attn.in_proj_b": {
722
+ "group_size": 64,
723
+ "bits": 8
724
+ },
725
+ "language_model.model.layers.53.linear_attn.in_proj_a": {
726
+ "group_size": 64,
727
+ "bits": 8
728
+ },
729
+ "language_model.model.layers.16.linear_attn.in_proj_a": {
730
+ "group_size": 64,
731
+ "bits": 8
732
+ },
733
+ "language_model.model.layers.4.linear_attn.in_proj_a": {
734
+ "group_size": 64,
735
+ "bits": 8
736
+ },
737
+ "language_model.model.layers.61.linear_attn.in_proj_b": {
738
+ "group_size": 64,
739
+ "bits": 8
740
+ },
741
+ "language_model.model.layers.36.linear_attn.in_proj_b": {
742
+ "group_size": 64,
743
+ "bits": 8
744
+ },
745
+ "language_model.model.layers.42.linear_attn.in_proj_b": {
746
+ "group_size": 64,
747
+ "bits": 8
748
+ },
749
+ "language_model.model.layers.29.linear_attn.in_proj_a": {
750
+ "group_size": 64,
751
+ "bits": 8
752
+ },
753
+ "language_model.model.layers.54.linear_attn.in_proj_a": {
754
+ "group_size": 64,
755
+ "bits": 8
756
+ },
757
+ "language_model.model.layers.1.linear_attn.in_proj_b": {
758
+ "group_size": 64,
759
+ "bits": 8
760
+ },
761
+ "language_model.model.layers.52.linear_attn.in_proj_b": {
762
+ "group_size": 64,
763
+ "bits": 8
764
+ },
765
+ "language_model.model.layers.56.linear_attn.in_proj_a": {
766
+ "group_size": 64,
767
+ "bits": 8
768
+ },
769
+ "language_model.model.layers.4.linear_attn.in_proj_b": {
770
+ "group_size": 64,
771
+ "bits": 8
772
+ },
773
+ "language_model.model.layers.25.linear_attn.in_proj_a": {
774
+ "group_size": 64,
775
+ "bits": 8
776
+ },
777
+ "language_model.model.layers.36.linear_attn.in_proj_a": {
778
+ "group_size": 64,
779
+ "bits": 8
780
+ },
781
+ "language_model.model.layers.16.linear_attn.in_proj_b": {
782
+ "group_size": 64,
783
+ "bits": 8
784
+ },
785
+ "language_model.model.layers.9.linear_attn.in_proj_a": {
786
+ "group_size": 64,
787
+ "bits": 8
788
+ },
789
+ "language_model.model.layers.58.linear_attn.in_proj_b": {
790
+ "group_size": 64,
791
+ "bits": 8
792
+ },
793
+ "language_model.model.layers.32.linear_attn.in_proj_a": {
794
+ "group_size": 64,
795
+ "bits": 8
796
+ },
797
+ "language_model.model.layers.20.linear_attn.in_proj_a": {
798
+ "group_size": 64,
799
+ "bits": 8
800
+ },
801
+ "language_model.model.layers.46.linear_attn.in_proj_a": {
802
+ "group_size": 64,
803
+ "bits": 8
804
+ },
805
+ "language_model.model.layers.34.linear_attn.in_proj_b": {
806
+ "group_size": 64,
807
+ "bits": 8
808
+ },
809
+ "language_model.model.layers.52.linear_attn.in_proj_a": {
810
+ "group_size": 64,
811
+ "bits": 8
812
+ },
813
+ "language_model.model.layers.60.linear_attn.in_proj_a": {
814
+ "group_size": 64,
815
+ "bits": 8
816
+ },
817
+ "language_model.model.layers.33.linear_attn.in_proj_b": {
818
+ "group_size": 64,
819
+ "bits": 8
820
+ },
821
+ "language_model.model.layers.62.linear_attn.in_proj_b": {
822
+ "group_size": 64,
823
+ "bits": 8
824
+ },
825
+ "language_model.model.layers.0.linear_attn.in_proj_b": {
826
+ "group_size": 64,
827
+ "bits": 8
828
+ },
829
+ "language_model.model.layers.50.linear_attn.in_proj_a": {
830
+ "group_size": 64,
831
+ "bits": 8
832
+ },
833
+ "language_model.model.layers.5.linear_attn.in_proj_a": {
834
+ "group_size": 64,
835
+ "bits": 8
836
+ },
837
+ "language_model.model.layers.30.linear_attn.in_proj_a": {
838
+ "group_size": 64,
839
+ "bits": 8
840
+ },
841
+ "language_model.model.layers.12.linear_attn.in_proj_a": {
842
+ "group_size": 64,
843
+ "bits": 8
844
+ },
845
+ "language_model.model.layers.40.linear_attn.in_proj_b": {
846
+ "group_size": 64,
847
+ "bits": 8
848
+ },
849
+ "language_model.model.layers.2.linear_attn.in_proj_a": {
850
+ "group_size": 64,
851
+ "bits": 8
852
+ },
853
+ "language_model.model.layers.32.linear_attn.in_proj_b": {
854
+ "group_size": 64,
855
+ "bits": 8
856
+ },
857
+ "language_model.model.layers.41.linear_attn.in_proj_b": {
858
+ "group_size": 64,
859
+ "bits": 8
860
+ },
861
+ "language_model.model.layers.58.linear_attn.in_proj_a": {
862
+ "group_size": 64,
863
+ "bits": 8
864
+ },
865
+ "language_model.model.layers.9.linear_attn.in_proj_b": {
866
+ "group_size": 64,
867
+ "bits": 8
868
+ },
869
+ "language_model.model.layers.20.linear_attn.in_proj_b": {
870
+ "group_size": 64,
871
+ "bits": 8
872
+ },
873
+ "language_model.model.layers.49.linear_attn.in_proj_b": {
874
+ "group_size": 64,
875
+ "bits": 8
876
+ },
877
+ "language_model.model.layers.62.linear_attn.in_proj_a": {
878
+ "group_size": 64,
879
+ "bits": 8
880
+ },
881
+ "language_model.model.layers.60.linear_attn.in_proj_b": {
882
+ "group_size": 64,
883
+ "bits": 8
884
+ },
885
+ "language_model.model.layers.22.linear_attn.in_proj_b": {
886
+ "group_size": 64,
887
+ "bits": 8
888
+ },
889
+ "language_model.model.layers.49.linear_attn.in_proj_a": {
890
+ "group_size": 64,
891
+ "bits": 8
892
+ },
893
+ "language_model.model.layers.38.linear_attn.in_proj_b": {
894
+ "group_size": 64,
895
+ "bits": 8
896
+ },
897
+ "language_model.model.layers.46.linear_attn.in_proj_b": {
898
+ "group_size": 64,
899
+ "bits": 8
900
+ },
901
+ "language_model.model.layers.17.linear_attn.in_proj_a": {
902
+ "group_size": 64,
903
+ "bits": 8
904
+ },
905
+ "language_model.model.layers.37.linear_attn.in_proj_b": {
906
+ "group_size": 64,
907
+ "bits": 8
908
+ },
909
+ "language_model.model.layers.0.linear_attn.in_proj_a": {
910
+ "group_size": 64,
911
+ "bits": 8
912
+ },
913
+ "language_model.model.layers.61.linear_attn.in_proj_a": {
914
+ "group_size": 64,
915
+ "bits": 8
916
+ },
917
+ "language_model.model.layers.6.linear_attn.in_proj_a": {
918
+ "group_size": 64,
919
+ "bits": 8
920
+ },
921
+ "language_model.model.layers.8.linear_attn.in_proj_a": {
922
+ "group_size": 64,
923
+ "bits": 8
924
+ },
925
+ "language_model.model.layers.8.linear_attn.in_proj_b": {
926
+ "group_size": 64,
927
+ "bits": 8
928
+ },
929
+ "language_model.model.layers.26.linear_attn.in_proj_b": {
930
+ "group_size": 64,
931
+ "bits": 8
932
+ }
933
+ }
934
+ }
q4-full/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 248044,
4
+ "eos_token_id": 248046,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 248044,
8
+ "transformers_version": "5.14.1",
9
+ "use_cache": true,
10
+ "do_sample": true,
11
+ "temperature": 1.0,
12
+ "top_p": 0.95,
13
+ "top_k": 20
14
+ }
q4-full/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eba8891fb20432ca151f7a4c84717042086b895a14f2e899c082f66b63d179c2
3
+ size 17337739125
q4-full/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
+ }
q4-full/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
q4-full/tokenizer_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 262144,
13
+ "model_specific_special_tokens": {
14
+ "audio_bos_token": "<|audio_start|>",
15
+ "audio_eos_token": "<|audio_end|>",
16
+ "audio_token": "<|audio_pad|>",
17
+ "image_token": "<|image_pad|>",
18
+ "video_token": "<|video_pad|>",
19
+ "vision_bos_token": "<|vision_start|>",
20
+ "vision_eos_token": "<|vision_end|>"
21
+ },
22
+ "pad_token": "<|endoftext|>",
23
+ "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+",
24
+ "processor_class": "Qwen3VLProcessor",
25
+ "split_special_tokens": false,
26
+ "tokenizer_class": "Qwen2Tokenizer",
27
+ "unk_token": null,
28
+ "video_token": "<|video_pad|>",
29
+ "vision_bos_token": "<|vision_start|>",
30
+ "vision_eos_token": "<|vision_end|>"
31
+ }
q8-full/README.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # `q8-full/` — fully quantized tier (q8-full)
2
+
3
+ Produced by SceneWorks from `MiniMaxAI/MiniMax-H3-Image-PE` at revision `35603d4b63949afa12cb098227fffefedf081afa` with `prepare_snapshot ... q8-full` built from SceneWorks/inference `6d6b523d68cd49340c27b14580306389e410aa81`.
4
+
5
+ - Recipe: every language-model matrix 8-bit, including `lm_head`, `embed_tokens` and every Gated DeltaNet `in_proj_a` / `in_proj_b`.
6
+ - Storage: MLX group-wise affine quantized weights (group size 64), read by mlx-llm.
7
+ - The vision tower stays dense; the MTP head is stored as in the plain tier.
8
+
9
+ This folder is self-contained (config, tokenizer, chat template, weights). The plain tiers in this repository are unchanged. `SOURCE_REVISION.json` records the exact provenance.
10
+
11
+ License: MiniMax-H3-Image Community License Agreement (MiniMax Materials). The licensed prompt files are never copied here; read them from the upstream repository.
q8-full/SOURCE_REVISION.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_repo": "MiniMaxAI/MiniMax-H3-Image-PE",
3
+ "source_revision": "35603d4b63949afa12cb098227fffefedf081afa",
4
+ "source_format": "modelopt NVFP4, dequantized to bf16 on the CPU (modelopt_nvfp4_to_bf16)",
5
+ "producer": "SceneWorks/inference mlx-llm examples/prepare_snapshot",
6
+ "producer_revision": "6d6b523d68cd49340c27b14580306389e410aa81",
7
+ "recipe": "q8-full",
8
+ "recipe_description": "every language-model matrix 8-bit, including `lm_head`, `embed_tokens` and every Gated DeltaNet `in_proj_a` / `in_proj_b`",
9
+ "storage": "MLX group-wise affine quantized weights (group size 64), read by mlx-llm",
10
+ "vision_tower": "dense, as in the plain tiers",
11
+ "mtp_head": "stored as in the plain tier of the same body width",
12
+ "workflow_run": "https://github.com/SceneWorks/inference/actions/runs/44410757637"
13
+ }
q8-full/chat_template.jinja ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {%- set reasoning_instructions = '' %}
46
+ {%- if enable_thinking is undefined or enable_thinking is true %}
47
+ {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
48
+ {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
49
+ {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
50
+ {%- endif %}
51
+ {%- if resolved_reasoning_effort == 'xhigh' %}
52
+ {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
53
+ {%- elif resolved_reasoning_effort == 'low' %}
54
+ {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
55
+ {%- endif %}
56
+ {%- endif %}
57
+ {%- if tools and tools is iterable and tools is not mapping %}
58
+ {{- '<|im_start|>system\n' }}
59
+ {%- if reasoning_instructions %}
60
+ {{- reasoning_instructions + '\n\n' }}
61
+ {%- endif %}
62
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
63
+ {%- for tool in tools %}
64
+ {{- "\n" }}
65
+ {{- tool | tojson }}
66
+ {%- endfor %}
67
+ {{- "\n</tools>" }}
68
+ {{- '\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>' }}
69
+ {%- if messages[0].role == 'system' %}
70
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
71
+ {%- if content %}
72
+ {{- '\n\n' + content }}
73
+ {%- endif %}
74
+ {%- endif %}
75
+ {{- '<|im_end|>\n' }}
76
+ {%- else %}
77
+ {%- if messages[0].role == 'system' %}
78
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
79
+ {%- if content %}
80
+ {{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + content + '<|im_end|>\n' }}
81
+ {%- elif reasoning_instructions %}
82
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
83
+ {%- endif %}
84
+ {%- elif reasoning_instructions %}
85
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
86
+ {%- endif %}
87
+ {%- endif %}
88
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
89
+ {%- for message in messages[::-1] %}
90
+ {%- set index = (messages|length - 1) - loop.index0 %}
91
+ {%- if ns.multi_step_tool and message.role == "user" %}
92
+ {%- set content = render_content(message.content, false)|trim %}
93
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
94
+ {%- set ns.multi_step_tool = false %}
95
+ {%- set ns.last_query_index = index %}
96
+ {%- endif %}
97
+ {%- endif %}
98
+ {%- endfor %}
99
+ {%- if ns.multi_step_tool %}
100
+ {{- raise_exception('No user query found in messages.') }}
101
+ {%- endif %}
102
+ {%- for message in messages %}
103
+ {%- set content = render_content(message.content, true)|trim %}
104
+ {%- if message.role == "system" %}
105
+ {%- if not loop.first %}
106
+ {{- raise_exception('System message must be at the beginning.') }}
107
+ {%- endif %}
108
+ {%- elif message.role == "user" %}
109
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
110
+ {%- elif message.role == "assistant" %}
111
+ {%- set reasoning_content = '' %}
112
+ {%- if message.reasoning_content is string %}
113
+ {%- set reasoning_content = message.reasoning_content %}
114
+ {%- endif %}
115
+ {%- set reasoning_content = reasoning_content|trim %}
116
+ {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
117
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
118
+ {%- else %}
119
+ {{- '<|im_start|>' + message.role + '\n' + content }}
120
+ {%- endif %}
121
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
122
+ {%- for tool_call in message.tool_calls %}
123
+ {%- if tool_call.function is defined %}
124
+ {%- set tool_call = tool_call.function %}
125
+ {%- endif %}
126
+ {%- if loop.first %}
127
+ {%- if content|trim %}
128
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
129
+ {%- else %}
130
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
131
+ {%- endif %}
132
+ {%- else %}
133
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
134
+ {%- endif %}
135
+ {%- if tool_call.arguments is defined and tool_call.arguments != '' %}
136
+ {%- for args_name, args_value in tool_call.arguments|items %}
137
+ {{- '<parameter=' + args_name + '>\n' }}
138
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
139
+ {{- args_value }}
140
+ {{- '\n</parameter>\n' }}
141
+ {%- endfor %}
142
+ {%- endif %}
143
+ {{- '</function>\n</tool_call>' }}
144
+ {%- endfor %}
145
+ {%- endif %}
146
+ {{- '<|im_end|>\n' }}
147
+ {%- elif message.role == "tool" %}
148
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
149
+ {{- '<|im_start|>user' }}
150
+ {%- endif %}
151
+ {{- '\n<tool_response>\n' }}
152
+ {{- content }}
153
+ {{- '\n</tool_response>' }}
154
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
155
+ {{- '<|im_end|>\n' }}
156
+ {%- elif loop.last %}
157
+ {{- '<|im_end|>\n' }}
158
+ {%- endif %}
159
+ {%- else %}
160
+ {{- raise_exception('Unexpected message role.') }}
161
+ {%- endif %}
162
+ {%- endfor %}
163
+ {%- if add_generation_prompt %}
164
+ {{- '<|im_start|>assistant\n' }}
165
+ {%- if enable_thinking is defined and enable_thinking is false %}
166
+ {{- '<think>\n\n</think>\n\n' }}
167
+ {%- else %}
168
+ {{- '<think>\n' }}
169
+ {%- endif %}
170
+ {%- endif %}
q8-full/config.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "hidden_size": 5120,
7
+ "image_token_id": 248056,
8
+ "language_model_only": false,
9
+ "model_type": "qwen3_5",
10
+ "vision_start_token_id": 248053,
11
+ "text_config": {
12
+ "attention_bias": false,
13
+ "attention_dropout": 0.0,
14
+ "attn_output_gate": true,
15
+ "bos_token_id": 248044,
16
+ "dtype": "bfloat16",
17
+ "eos_token_id": 248046,
18
+ "full_attention_interval": 4,
19
+ "head_dim": 256,
20
+ "hidden_act": "silu",
21
+ "hidden_size": 5120,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 17408,
24
+ "layer_types": [
25
+ "linear_attention",
26
+ "linear_attention",
27
+ "linear_attention",
28
+ "full_attention",
29
+ "linear_attention",
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "full_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "full_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "full_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "full_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "full_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "full_attention",
53
+ "linear_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "full_attention",
57
+ "linear_attention",
58
+ "linear_attention",
59
+ "linear_attention",
60
+ "full_attention",
61
+ "linear_attention",
62
+ "linear_attention",
63
+ "linear_attention",
64
+ "full_attention",
65
+ "linear_attention",
66
+ "linear_attention",
67
+ "linear_attention",
68
+ "full_attention",
69
+ "linear_attention",
70
+ "linear_attention",
71
+ "linear_attention",
72
+ "full_attention",
73
+ "linear_attention",
74
+ "linear_attention",
75
+ "linear_attention",
76
+ "full_attention",
77
+ "linear_attention",
78
+ "linear_attention",
79
+ "linear_attention",
80
+ "full_attention",
81
+ "linear_attention",
82
+ "linear_attention",
83
+ "linear_attention",
84
+ "full_attention",
85
+ "linear_attention",
86
+ "linear_attention",
87
+ "linear_attention",
88
+ "full_attention"
89
+ ],
90
+ "linear_conv_kernel_dim": 4,
91
+ "linear_key_head_dim": 128,
92
+ "linear_num_key_heads": 16,
93
+ "linear_num_value_heads": 48,
94
+ "linear_value_head_dim": 128,
95
+ "mamba_ssm_dtype": "float32",
96
+ "max_position_embeddings": 262144,
97
+ "model_type": "qwen3_5_text",
98
+ "mtp_num_hidden_layers": 0,
99
+ "num_attention_heads": 24,
100
+ "num_hidden_layers": 64,
101
+ "num_key_value_heads": 4,
102
+ "output_gate_type": "swish",
103
+ "pad_token_id": 248044,
104
+ "partial_rotary_factor": 0.25,
105
+ "rms_norm_eps": 1e-6,
106
+ "rope_parameters": {
107
+ "mrope_interleaved": true,
108
+ "mrope_section": [
109
+ 11,
110
+ 11,
111
+ 10
112
+ ],
113
+ "partial_rotary_factor": 0.25,
114
+ "rope_theta": 10000000,
115
+ "rope_type": "default"
116
+ },
117
+ "tie_word_embeddings": false,
118
+ "use_cache": true,
119
+ "vocab_size": 248320,
120
+ "quantization": {
121
+ "group_size": 64,
122
+ "bits": 8
123
+ }
124
+ },
125
+ "tie_word_embeddings": false,
126
+ "transformers_version": "5.14.1",
127
+ "video_token_id": 248057,
128
+ "vision_config": {
129
+ "deepstack_visual_indexes": [],
130
+ "depth": 27,
131
+ "dtype": "bfloat16",
132
+ "hidden_act": "gelu_pytorch_tanh",
133
+ "hidden_size": 1152,
134
+ "in_channels": 3,
135
+ "initializer_range": 0.02,
136
+ "intermediate_size": 4304,
137
+ "model_type": "qwen3_5_vision",
138
+ "num_heads": 16,
139
+ "num_position_embeddings": 2304,
140
+ "out_hidden_size": 5120,
141
+ "patch_size": 16,
142
+ "spatial_merge_size": 2,
143
+ "temporal_patch_size": 2
144
+ },
145
+ "vision_end_token_id": 248054,
146
+ "quantization": {
147
+ "group_size": 64,
148
+ "bits": 8
149
+ }
150
+ }
q8-full/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 248044,
4
+ "eos_token_id": 248046,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 248044,
8
+ "transformers_version": "5.14.1",
9
+ "use_cache": true,
10
+ "do_sample": true,
11
+ "temperature": 1.0,
12
+ "top_p": 0.95,
13
+ "top_k": 20
14
+ }
q8-full/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:127106fbba2820a5a496080eb44b6d69d8231650452d68a274d8672ebca0e612
3
+ size 29501221957
q8-full/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
+ }
q8-full/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
q8-full/tokenizer_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 262144,
13
+ "model_specific_special_tokens": {
14
+ "audio_bos_token": "<|audio_start|>",
15
+ "audio_eos_token": "<|audio_end|>",
16
+ "audio_token": "<|audio_pad|>",
17
+ "image_token": "<|image_pad|>",
18
+ "video_token": "<|video_pad|>",
19
+ "vision_bos_token": "<|vision_start|>",
20
+ "vision_eos_token": "<|vision_end|>"
21
+ },
22
+ "pad_token": "<|endoftext|>",
23
+ "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+",
24
+ "processor_class": "Qwen3VLProcessor",
25
+ "split_special_tokens": false,
26
+ "tokenizer_class": "Qwen2Tokenizer",
27
+ "unk_token": null,
28
+ "video_token": "<|video_pad|>",
29
+ "vision_bos_token": "<|vision_start|>",
30
+ "vision_eos_token": "<|vision_end|>"
31
+ }