Image-Text-to-Text
MLX
Safetensors
Transformers
English
gemma4
2-bit
text-generation-inference
unsloth
reasoning
conversational
4-bit precision
zecanard commited on
Commit
8ee2dc0
·
verified ·
1 Parent(s): 770c2db

Add files using upload-large-folder tool

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,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: TeichAI/gemma-4-31B-it-Claude-Opus-Distill-v2
3
+ language: en
4
+ pipeline_tag: image-text-to-text
5
+ library_name: mlx
6
+ tags:
7
+ - mlx
8
+ - 2-bit
9
+ - text-generation-inference
10
+ - transformers
11
+ - unsloth
12
+ - gemma4
13
+ - reasoning
14
+ license: apache-2.0
15
+ datasets:
16
+ - TeichAI/Claude-Opus-4.6-Reasoning-887x
17
+ - TeichAI/claude-4.5-opus-high-reasoning-250x
18
+ - Crownelius/Opus-4.6-Reasoning-2100x-formatted
19
+ ---
20
+ # 🦆 zecanard/gemma-4-31B-it-Claude-Opus-Distilled-v2-MLX-2bit-mixed_2_6
21
+
22
+ [This model](https://huggingface.co/zecanard/gemma-4-31B-it-Claude-Opus-Distilled-v2-MLX-2bit-mixed_2_6) was converted to MLX from [`TeichAI/gemma-4-31B-it-Claude-Opus-Distill-v2`](https://huggingface.co/TeichAI/gemma-4-31B-it-Claude-Opus-Distill-v2) using `mlx-vlm` version **0.5.0**.
23
+ Please refer to the [original model card](https://huggingface.co/TeichAI/gemma-4-31B-it-Claude-Opus-Distill-v2) for more details.
24
+
25
+ ## 🌟 Quality
26
+
27
+ Mixed-precision quantized vision language model with an effective **3.449 bits per weight**. Combines the size and speed benefits of a 2-bit quant with higher precision where it matters most.
28
+
29
+ `mlx_vlm.convert --quantize --q-group-size 32 --quant-predicate mixed_2_6`
30
+
31
+ ## 🛠️ Customizations
32
+
33
+ This quant is aware of the current date, and also enables thinking (if available). You may disable this behavior by deleting the following line from the chat template, or changing `true` to `false`:
34
+
35
+ `{%- set enable_thinking = true %}`
36
+
37
+ You may also need to adjust your environment’s **Reasoning Section Parsing** to recognize `<|channel>thought` as the **Start String**, and `<channel|>` as the **End String**.
38
+
39
+ ## 🖥️ Use with `mlx`
40
+
41
+ ```bash
42
+ pip install -U mlx-vlm
43
+ ```
44
+
45
+ ```bash
46
+ mlx_vlm.generate --model zecanard/gemma-4-31B-it-Claude-Opus-Distilled-v2-MLX-2bit-mixed_2_6 --max-tokens 100 --temperature 0 --prompt "Describe this image." --image <path_to_image>
47
+ ```
chat_template.jinja ADDED
@@ -0,0 +1,365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- Template customizations by @zecanard. #}
2
+ {%- set enable_thinking = true %}
3
+ {%- set preserve_thinking = true %}
4
+ {%- if strftime_now is defined %}
5
+ {%- set currentDate = strftime_now('%Y-%m-%d %G:%i:%s') %}
6
+ {%- elif not currentDate is defined %}
7
+ {%- set currentDate = '2026-04-20' %}
8
+ {%- endif %}
9
+ {{- 'The current date is: ' + currentDate + ".\n\n" }}
10
+ {#- Template customizations by @zecanard. #}
11
+ {%- set enable_thinking = enable_thinking if enable_thinking is defined else true -%}
12
+ {%- macro format_parameters(properties, required, filter_keys=false) -%}
13
+ {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}
14
+ {%- set ns = namespace(found_first=false) -%}
15
+ {%- for key, value in properties | dictsort -%}
16
+ {%- set add_comma = false -%}
17
+ {%- if not filter_keys or key not in standard_keys -%}
18
+ {%- if ns.found_first %},{% endif -%}
19
+ {%- set ns.found_first = true -%}
20
+ {{ key }}:{
21
+ {%- if value['description'] -%}
22
+ description:<|"|>{{ value['description'] }}<|"|>
23
+ {%- set add_comma = true -%}
24
+ {%- endif -%}
25
+ {%- if value['type'] | upper == 'STRING' -%}
26
+ {%- if value['enum'] -%}
27
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
28
+ enum:{{ format_argument(value['enum']) }}
29
+ {%- endif -%}
30
+ {%- elif value['type'] | upper == 'ARRAY' -%}
31
+ {%- if value['items'] is mapping and value['items'] -%}
32
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
33
+ items:{
34
+ {%- set ns_items = namespace(found_first=false) -%}
35
+ {%- for item_key, item_value in value['items'] | dictsort -%}
36
+ {%- if item_value is not none -%}
37
+ {%- if ns_items.found_first %},{% endif -%}
38
+ {%- set ns_items.found_first = true -%}
39
+ {%- if item_key == 'properties' -%}
40
+ properties:{
41
+ {%- if item_value is mapping -%}
42
+ {{- format_parameters(item_value, value['items']['required'] | default([])) -}}
43
+ {%- endif -%}
44
+ }
45
+ {%- elif item_key == 'required' -%}
46
+ required:[
47
+ {%- for req_item in item_value -%}
48
+ <|"|>{{- req_item -}}<|"|>
49
+ {%- if not loop.last %},{% endif -%}
50
+ {%- endfor -%}
51
+ ]
52
+ {%- elif item_key == 'type' -%}
53
+ {%- if item_value is string -%}
54
+ type:{{ format_argument(item_value | upper) }}
55
+ {%- else -%}
56
+ type:{{ format_argument(item_value | map('upper') | list) }}
57
+ {%- endif -%}
58
+ {%- else -%}
59
+ {{ item_key }}:{{ format_argument(item_value) }}
60
+ {%- endif -%}
61
+ {%- endif -%}
62
+ {%- endfor -%}
63
+ }
64
+ {%- endif -%}
65
+ {%- endif -%}
66
+ {%- if value['nullable'] %}
67
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
68
+ nullable:true
69
+ {%- endif -%}
70
+ {%- if value['type'] | upper == 'OBJECT' -%}
71
+ {%- if value['properties'] is defined and value['properties'] is mapping -%}
72
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
73
+ properties:{
74
+ {{- format_parameters(value['properties'], value['required'] | default([])) -}}
75
+ }
76
+ {%- elif value is mapping -%}
77
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
78
+ properties:{
79
+ {{- format_parameters(value, value['required'] | default([]), filter_keys=true) -}}
80
+ }
81
+ {%- endif -%}
82
+ {%- if value['required'] -%}
83
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
84
+ required:[
85
+ {%- for item in value['required'] | default([]) -%}
86
+ <|"|>{{- item -}}<|"|>
87
+ {%- if not loop.last %},{% endif -%}
88
+ {%- endfor -%}
89
+ ]
90
+ {%- endif -%}
91
+ {%- endif -%}
92
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
93
+ type:<|"|>{{ value['type'] | upper }}<|"|>}
94
+ {%- endif -%}
95
+ {%- endfor -%}
96
+ {%- endmacro -%}
97
+ {%- macro format_function_declaration(tool_data) -%}
98
+ declaration:{{- tool_data['function']['name'] -}}{description:<|"|>{{- tool_data['function']['description'] -}}<|"|>
99
+ {%- set params = tool_data['function']['parameters'] -%}
100
+ {%- if params -%}
101
+ ,parameters:{
102
+ {%- if params['properties'] -%}
103
+ properties:{ {{- format_parameters(params['properties'], params['required']) -}} },
104
+ {%- endif -%}
105
+ {%- if params['required'] -%}
106
+ required:[
107
+ {%- for item in params['required'] -%}
108
+ <|"|>{{- item -}}<|"|>
109
+ {{- ',' if not loop.last -}}
110
+ {%- endfor -%}
111
+ ],
112
+ {%- endif -%}
113
+ {%- if params['type'] -%}
114
+ type:<|"|>{{- params['type'] | upper -}}<|"|>}
115
+ {%- endif -%}
116
+ {%- endif -%}
117
+ {%- if 'response' in tool_data['function'] -%}
118
+ {%- set response_declaration = tool_data['function']['response'] -%}
119
+ ,response:{
120
+ {%- if response_declaration['description'] -%}
121
+ description:<|"|>{{- response_declaration['description'] -}}<|"|>,
122
+ {%- endif -%}
123
+ {%- if response_declaration['type'] | upper == 'OBJECT' -%}
124
+ type:<|"|>{{- response_declaration['type'] | upper -}}<|"|>}
125
+ {%- endif -%}
126
+ {%- endif -%}
127
+ }
128
+ {%- endmacro -%}
129
+ {%- macro format_argument(argument, escape_keys=True) -%}
130
+ {%- if argument is string -%}
131
+ {{- '<|"|>' + argument + '<|"|>' -}}
132
+ {%- elif argument is boolean -%}
133
+ {{- 'true' if argument else 'false' -}}
134
+ {%- elif argument is mapping -%}
135
+ {{- '{' -}}
136
+ {%- set ns = namespace(found_first=false) -%}
137
+ {%- for key, value in argument | dictsort -%}
138
+ {%- if ns.found_first %},{% endif -%}
139
+ {%- set ns.found_first = true -%}
140
+ {%- if escape_keys -%}
141
+ {{- '<|"|>' + key + '<|"|>' -}}
142
+ {%- else -%}
143
+ {{- key -}}
144
+ {%- endif -%}
145
+ :{{- format_argument(value, escape_keys=escape_keys) -}}
146
+ {%- endfor -%}
147
+ {{- '}' -}}
148
+ {%- elif argument is sequence -%}
149
+ {{- '[' -}}
150
+ {%- for item in argument -%}
151
+ {{- format_argument(item, escape_keys=escape_keys) -}}
152
+ {%- if not loop.last %},{% endif -%}
153
+ {%- endfor -%}
154
+ {{- ']' -}}
155
+ {%- else -%}
156
+ {{- argument -}}
157
+ {%- endif -%}
158
+ {%- endmacro -%}
159
+ {%- macro strip_thinking(text) -%}
160
+ {%- set ns = namespace(result='') -%}
161
+ {%- for part in text.split('<channel|>') -%}
162
+ {%- if '<|channel>' in part -%}
163
+ {%- set ns.result = ns.result + part.split('<|channel>')[0] -%}
164
+ {%- else -%}
165
+ {%- set ns.result = ns.result + part -%}
166
+ {%- endif -%}
167
+ {%- endfor -%}
168
+ {{- ns.result | trim -}}
169
+ {%- endmacro -%}
170
+
171
+ {%- macro format_tool_response_block(tool_name, response) -%}
172
+ {{- '<|tool_response>' -}}
173
+ {%- if response is mapping -%}
174
+ {{- 'response:' + tool_name + '{' -}}
175
+ {%- for key, value in response | dictsort -%}
176
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
177
+ {%- if not loop.last %},{% endif -%}
178
+ {%- endfor -%}
179
+ {{- '}' -}}
180
+ {%- else -%}
181
+ {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}
182
+ {%- endif -%}
183
+ {{- '<tool_response|>' -}}
184
+ {%- endmacro -%}
185
+
186
+ {%- set ns = namespace(prev_message_type=None) -%}
187
+ {%- set loop_messages = messages -%}
188
+ {{- bos_token -}}
189
+ {#- Handle System/Tool Definitions Block -#}
190
+ {%- if (enable_thinking is defined and enable_thinking) or tools or messages[0]['role'] in ['system', 'developer'] -%}
191
+ {{- '<|turn>system\n' -}}
192
+ {#- Inject Thinking token at the very top of the FIRST system turn -#}
193
+ {%- if enable_thinking is defined and enable_thinking -%}
194
+ {{- '<|think|>\n' -}}
195
+ {%- set ns.prev_message_type = 'think' -%}
196
+ {%- endif -%}
197
+ {%- if messages[0]['role'] in ['system', 'developer'] -%}
198
+ {%- if messages[0]['content'] is string -%}
199
+ {{- messages[0]['content'] | trim -}}
200
+ {%- elif messages[0]['content'] is sequence -%}
201
+ {%- for item in messages[0]['content'] -%}
202
+ {{- item['text'] | trim + ' '-}}
203
+ {%- endfor -%}
204
+ {%- endif -%}
205
+ {%- set loop_messages = messages[1:] -%}
206
+ {%- endif -%}
207
+ {%- if tools -%}
208
+ {%- for tool in tools %}
209
+ {{- '<|tool>' -}}
210
+ {{- format_function_declaration(tool) | trim -}}
211
+ {{- '<tool|>' -}}
212
+ {%- endfor %}
213
+ {%- set ns.prev_message_type = 'tool' -%}
214
+ {%- endif -%}
215
+ {{- '<turn|>\n' -}}
216
+ {%- endif %}
217
+
218
+ {#- Pre-scan: find last user message index for reasoning guard -#}
219
+ {%- set ns_turn = namespace(last_user_idx=-1) -%}
220
+ {%- for i in range(loop_messages | length) -%}
221
+ {%- if loop_messages[i]['role'] == 'user' -%}
222
+ {%- set ns_turn.last_user_idx = i -%}
223
+ {%- endif -%}
224
+ {%- endfor -%}
225
+
226
+ {#- Loop through messages -#}
227
+ {%- for message in loop_messages -%}
228
+ {%- if message['role'] != 'tool' -%}
229
+ {%- set ns.prev_message_type = None -%}
230
+ {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}
231
+ {#- Detect continuation: suppress duplicate <|turn>model when previous non-tool message was also assistant -#}
232
+ {%- set prev_nt = namespace(role=None, found=false) -%}
233
+ {%- if loop.index0 > 0 -%}
234
+ {%- for j in range(loop.index0 - 1, -1, -1) -%}
235
+ {%- if not prev_nt.found -%}
236
+ {%- if loop_messages[j]['role'] != 'tool' -%}
237
+ {%- set prev_nt.role = loop_messages[j]['role'] -%}
238
+ {%- set prev_nt.found = true -%}
239
+ {%- endif -%}
240
+ {%- endif -%}
241
+ {%- endfor -%}
242
+ {%- endif -%}
243
+ {%- set continue_same_model_turn = (role == 'model' and prev_nt.role == 'assistant') -%}
244
+ {%- if not continue_same_model_turn -%}
245
+ {{- '<|turn>' + role + '\n' }}
246
+ {%- endif -%}
247
+
248
+ {#- Render reasoning/reasoning_content as thinking channel -#}
249
+ {%- set thinking_text = message.get('reasoning') or message.get('reasoning_content') -%}
250
+ {%- if thinking_text and loop.index0 > ns_turn.last_user_idx and message.get('tool_calls') -%}
251
+ {{- '<|channel>thought\n' + thinking_text + '\n<channel|>' -}}
252
+ {%- endif -%}
253
+
254
+ {%- if message['tool_calls'] -%}
255
+ {%- for tool_call in message['tool_calls'] -%}
256
+ {%- set function = tool_call['function'] -%}
257
+ {{- '<|tool_call>call:' + function['name'] + '{' -}}
258
+ {%- if function['arguments'] is mapping -%}
259
+ {%- set ns_args = namespace(found_first=false) -%}
260
+ {%- for key, value in function['arguments'] | dictsort -%}
261
+ {%- if ns_args.found_first %},{% endif -%}
262
+ {%- set ns_args.found_first = true -%}
263
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
264
+ {%- endfor -%}
265
+ {%- elif function['arguments'] is string -%}
266
+ {{- function['arguments'] -}}
267
+ {%- endif -%}
268
+ {{- '}<tool_call|>' -}}
269
+ {%- endfor -%}
270
+ {%- set ns.prev_message_type = 'tool_call' -%}
271
+ {%- endif -%}
272
+
273
+ {%- set ns_tr_out = namespace(flag=false) -%}
274
+ {%- if message.get('tool_responses') -%}
275
+ {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}
276
+ {%- for tool_response in message['tool_responses'] -%}
277
+ {{- format_tool_response_block(tool_response['name'] | default('unknown'), tool_response['response']) -}}
278
+ {%- set ns_tr_out.flag = true -%}
279
+ {%- set ns.prev_message_type = 'tool_response' -%}
280
+ {%- endfor -%}
281
+ {%- elif message.get('tool_calls') -%}
282
+ {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}
283
+ {%- set ns_tool_scan = namespace(stopped=false) -%}
284
+ {%- for k in range(loop.index0 + 1, loop_messages | length) -%}
285
+ {%- if ns_tool_scan.stopped -%}
286
+ {%- elif loop_messages[k]['role'] != 'tool' -%}
287
+ {%- set ns_tool_scan.stopped = true -%}
288
+ {%- else -%}
289
+ {%- set follow = loop_messages[k] -%}
290
+ {#- Resolve tool_call_id to function name -#}
291
+ {%- set ns_tname = namespace(name=follow.get('name') | default('unknown')) -%}
292
+ {%- for tc in message['tool_calls'] -%}
293
+ {%- if tc.get('id') == follow.get('tool_call_id') -%}
294
+ {%- set ns_tname.name = tc['function']['name'] -%}
295
+ {%- endif -%}
296
+ {%- endfor -%}
297
+ {#- Handle content as string or content-parts array -#}
298
+ {%- set tool_body = follow.get('content') -%}
299
+ {%- if tool_body is string -%}
300
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
301
+ {%- elif tool_body is sequence and tool_body is not string -%}
302
+ {%- set ns_txt = namespace(s='') -%}
303
+ {%- for part in tool_body -%}
304
+ {%- if part.get('type') == 'text' -%}
305
+ {%- set ns_txt.s = ns_txt.s + (part.get('text') | default('')) -%}
306
+ {%- endif -%}
307
+ {%- endfor -%}
308
+ {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
309
+ {%- else -%}
310
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
311
+ {%- endif -%}
312
+ {%- set ns_tr_out.flag = true -%}
313
+ {%- set ns.prev_message_type = 'tool_response' -%}
314
+ {%- endif -%}
315
+ {%- endfor -%}
316
+ {%- endif -%}
317
+
318
+ {%- set captured_content -%}
319
+ {%- if message['content'] is string -%}
320
+ {%- if role == 'model' -%}
321
+ {{- strip_thinking(message['content']) -}}
322
+ {%- else -%}
323
+ {{- message['content'] | trim -}}
324
+ {%- endif -%}
325
+ {%- elif message['content'] is sequence -%}
326
+ {%- for item in message['content'] -%}
327
+ {%- if item['type'] == 'text' -%}
328
+ {%- if role == 'model' -%}
329
+ {{- strip_thinking(item['text']) -}}
330
+ {%- else -%}
331
+ {{- item['text'] | trim -}}
332
+ {%- endif -%}
333
+ {%- elif item['type'] == 'image' -%}
334
+ {{- '<|image|>' -}}
335
+ {%- set ns.prev_message_type = 'image' -%}
336
+ {%- elif item['type'] == 'audio' -%}
337
+ {{- '<|audio|>' -}}
338
+ {%- set ns.prev_message_type = 'audio' -%}
339
+ {%- elif item['type'] == 'video' -%}
340
+ {{- '<|video|>' -}}
341
+ {%- set ns.prev_message_type = 'video' -%}
342
+ {%- endif -%}
343
+ {%- endfor -%}
344
+ {%- endif -%}
345
+ {%- endset -%}
346
+
347
+ {{- captured_content -}}
348
+ {%- set has_content = captured_content | trim | length > 0 -%}
349
+
350
+ {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
351
+ {{- '<|tool_response>' -}}
352
+ {%- elif not (ns_tr_out.flag and not has_content) -%}
353
+ {{- '<turn|>\n' -}}
354
+ {%- endif -%}
355
+ {%- endif -%}
356
+ {%- endfor -%}
357
+
358
+ {%- if add_generation_prompt -%}
359
+ {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
360
+ {{- '<|turn>model\n' -}}
361
+ {%- if not enable_thinking | default(false) -%}
362
+ {{- '<|channel>thought\n<channel|>' -}}
363
+ {%- endif -%}
364
+ {%- endif -%}
365
+ {%- endif -%}
config.json ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e063d5191d9ab0f70c8b22051500b5006e6dfdab9853f11359c8821a1a1e72f
3
+ size 5346431501
model-00002-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87e44f2e14261324c3360077657c359926b449e5434e8e6e4133a37ddf1f46ce
3
+ size 5312749279
model-00003-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33d0dfdf9d8e62e9138804854202b0f459fe8e5fbd3456250e051b26d8ef3021
3
+ size 2813280909
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
processor_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_seq_length": 750,
3
+ "image_processor": {
4
+ "do_convert_rgb": true,
5
+ "do_normalize": false,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.0,
10
+ 0.0,
11
+ 0.0
12
+ ],
13
+ "image_processor_type": "Gemma4ImageProcessor",
14
+ "image_seq_length": 280,
15
+ "image_std": [
16
+ 1.0,
17
+ 1.0,
18
+ 1.0
19
+ ],
20
+ "max_soft_tokens": 280,
21
+ "patch_size": 16,
22
+ "pooling_kernel_size": 3,
23
+ "resample": 3,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "height": 224,
27
+ "width": 224
28
+ }
29
+ },
30
+ "image_seq_length": 280,
31
+ "processor_class": "Gemma4Processor",
32
+ "feature_extractor": {
33
+ "feature_extractor_type": "Gemma4AudioFeatureExtractor",
34
+ "sampling_rate": 16000,
35
+ "num_mel_filters": 128,
36
+ "fft_length": 512,
37
+ "hop_length": 160,
38
+ "chunk_duration": 8.0,
39
+ "overlap_duration": 1.0
40
+ },
41
+ "audio_ms_per_token": 40
42
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
3
+ size 32169626
tokenizer_config.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_token": "<|audio|>",
3
+ "backend": "tokenizers",
4
+ "boa_token": "<|audio>",
5
+ "boi_token": "<|image>",
6
+ "bos_token": "<bos>",
7
+ "eoa_token": "<audio|>",
8
+ "eoc_token": "<channel|>",
9
+ "eoi_token": "<image|>",
10
+ "eos_token": "<eos>",
11
+ "eot_token": "<turn|>",
12
+ "escape_token": "<|\"|>",
13
+ "etc_token": "<tool_call|>",
14
+ "etd_token": "<tool|>",
15
+ "etr_token": "<tool_response|>",
16
+ "extra_special_tokens": [
17
+ "<|video|>"
18
+ ],
19
+ "image_token": "<|image|>",
20
+ "is_local": true,
21
+ "local_files_only": true,
22
+ "mask_token": "<mask>",
23
+ "model_max_length": 1000000000000000019884624838656,
24
+ "model_specific_special_tokens": {
25
+ "audio_token": "<|audio|>",
26
+ "boa_token": "<|audio>",
27
+ "boi_token": "<|image>",
28
+ "eoa_token": "<audio|>",
29
+ "eoc_token": "<channel|>",
30
+ "eoi_token": "<image|>",
31
+ "eot_token": "<turn|>",
32
+ "escape_token": "<|\"|>",
33
+ "etc_token": "<tool_call|>",
34
+ "etd_token": "<tool|>",
35
+ "etr_token": "<tool_response|>",
36
+ "image_token": "<|image|>",
37
+ "soc_token": "<|channel>",
38
+ "sot_token": "<|turn>",
39
+ "stc_token": "<|tool_call>",
40
+ "std_token": "<|tool>",
41
+ "str_token": "<|tool_response>",
42
+ "think_token": "<|think|>"
43
+ },
44
+ "pad_token": "<pad>",
45
+ "padding_side": "left",
46
+ "processor_class": "Gemma4Processor",
47
+ "response_schema": {
48
+ "properties": {
49
+ "content": {
50
+ "type": "string"
51
+ },
52
+ "role": {
53
+ "const": "assistant"
54
+ },
55
+ "thinking": {
56
+ "type": "string"
57
+ },
58
+ "tool_calls": {
59
+ "items": {
60
+ "properties": {
61
+ "function": {
62
+ "properties": {
63
+ "arguments": {
64
+ "additionalProperties": {},
65
+ "type": "object",
66
+ "x-parser": "gemma4-tool-call"
67
+ },
68
+ "name": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "type": "object",
73
+ "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})"
74
+ },
75
+ "type": {
76
+ "const": "function"
77
+ }
78
+ },
79
+ "type": "object"
80
+ },
81
+ "type": "array",
82
+ "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>"
83
+ }
84
+ },
85
+ "type": "object",
86
+ "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<content>(?:(?!\\<\\|tool_call\\>)(?!\\<turn\\|\\>).)+)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?:\\<turn\\|\\>)?"
87
+ },
88
+ "soc_token": "<|channel>",
89
+ "sot_token": "<|turn>",
90
+ "stc_token": "<|tool_call>",
91
+ "std_token": "<|tool>",
92
+ "str_token": "<|tool_response>",
93
+ "think_token": "<|think|>",
94
+ "tokenizer_class": "GemmaTokenizer",
95
+ "unk_token": "<unk>"
96
+ }