codeShare commited on
Commit
8506a9c
·
verified ·
1 Parent(s): d1676ed

Delete gemma4_preencoded_dataset

Browse files
gemma4_preencoded_dataset/manifest.json DELETED
The diff for this file is too large to render. See raw diff
 
gemma4_preencoded_dataset/processor/chat_template.jinja DELETED
@@ -1,330 +0,0 @@
1
- {%- macro format_parameters(properties, required) -%}
2
- {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}
3
- {%- set ns = namespace(found_first=false) -%}
4
- {%- for key, value in properties | dictsort -%}
5
- {%- set add_comma = false -%}
6
- {%- if key not in standard_keys -%}
7
- {%- if ns.found_first %},{% endif -%}
8
- {%- set ns.found_first = true -%}
9
- {{ key }}:{
10
- {%- if value['description'] -%}
11
- description:<|"|>{{ value['description'] }}<|"|>
12
- {%- set add_comma = true -%}
13
- {%- endif -%}
14
- {%- if value['type'] | upper == 'STRING' -%}
15
- {%- if value['enum'] -%}
16
- {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
17
- enum:{{ format_argument(value['enum']) }}
18
- {%- endif -%}
19
- {%- elif value['type'] | upper == 'ARRAY' -%}
20
- {%- if value['items'] is mapping and value['items'] -%}
21
- {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
22
- items:{
23
- {%- set ns_items = namespace(found_first=false) -%}
24
- {%- for item_key, item_value in value['items'] | dictsort -%}
25
- {%- if item_value is not none -%}
26
- {%- if ns_items.found_first %},{% endif -%}
27
- {%- set ns_items.found_first = true -%}
28
- {%- if item_key == 'properties' -%}
29
- properties:{
30
- {%- if item_value is mapping -%}
31
- {{- format_parameters(item_value, value['items']['required'] | default([])) -}}
32
- {%- endif -%}
33
- }
34
- {%- elif item_key == 'required' -%}
35
- required:[
36
- {%- for req_item in item_value -%}
37
- <|"|>{{- req_item -}}<|"|>
38
- {%- if not loop.last %},{% endif -%}
39
- {%- endfor -%}
40
- ]
41
- {%- elif item_key == 'type' -%}
42
- {%- if item_value is string -%}
43
- type:{{ format_argument(item_value | upper) }}
44
- {%- else -%}
45
- type:{{ format_argument(item_value | map('upper') | list) }}
46
- {%- endif -%}
47
- {%- else -%}
48
- {{ item_key }}:{{ format_argument(item_value) }}
49
- {%- endif -%}
50
- {%- endif -%}
51
- {%- endfor -%}
52
- }
53
- {%- endif -%}
54
- {%- endif -%}
55
- {%- if value['nullable'] %}
56
- {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
57
- nullable:true
58
- {%- endif -%}
59
- {%- if value['type'] | upper == 'OBJECT' -%}
60
- {%- if value['properties'] is defined and value['properties'] is mapping -%}
61
- {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
62
- properties:{
63
- {{- format_parameters(value['properties'], value['required'] | default([])) -}}
64
- }
65
- {%- elif value is mapping -%}
66
- {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
67
- properties:{
68
- {{- format_parameters(value, value['required'] | default([])) -}}
69
- }
70
- {%- endif -%}
71
- {%- if value['required'] -%}
72
- {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
73
- required:[
74
- {%- for item in value['required'] | default([]) -%}
75
- <|"|>{{- item -}}<|"|>
76
- {%- if not loop.last %},{% endif -%}
77
- {%- endfor -%}
78
- ]
79
- {%- endif -%}
80
- {%- endif -%}
81
- {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
82
- type:<|"|>{{ value['type'] | upper }}<|"|>}
83
- {%- endif -%}
84
- {%- endfor -%}
85
- {%- endmacro -%}
86
- {%- macro format_function_declaration(tool_data) -%}
87
- declaration:{{- tool_data['function']['name'] -}}{description:<|"|>{{- tool_data['function']['description'] -}}<|"|>
88
- {%- set params = tool_data['function']['parameters'] -%}
89
- {%- if params -%}
90
- ,parameters:{
91
- {%- if params['properties'] -%}
92
- properties:{ {{- format_parameters(params['properties'], params['required']) -}} },
93
- {%- endif -%}
94
- {%- if params['required'] -%}
95
- required:[
96
- {%- for item in params['required'] -%}
97
- <|"|>{{- item -}}<|"|>
98
- {{- ',' if not loop.last -}}
99
- {%- endfor -%}
100
- ],
101
- {%- endif -%}
102
- {%- if params['type'] -%}
103
- type:<|"|>{{- params['type'] | upper -}}<|"|>}
104
- {%- endif -%}
105
- {%- endif -%}
106
- {%- if 'response' in tool_data['function'] -%}
107
- {%- set response_declaration = tool_data['function']['response'] -%}
108
- ,response:{
109
- {%- if response_declaration['description'] -%}
110
- description:<|"|>{{- response_declaration['description'] -}}<|"|>,
111
- {%- endif -%}
112
- {%- if response_declaration['type'] | upper == 'OBJECT' -%}
113
- type:<|"|>{{- response_declaration['type'] | upper -}}<|"|>}
114
- {%- endif -%}
115
- {%- endif -%}
116
- }
117
- {%- endmacro -%}
118
- {%- macro format_argument(argument, escape_keys=True) -%}
119
- {%- if argument is string -%}
120
- {{- '<|"|>' + argument + '<|"|>' -}}
121
- {%- elif argument is boolean -%}
122
- {{- 'true' if argument else 'false' -}}
123
- {%- elif argument is mapping -%}
124
- {{- '{' -}}
125
- {%- set ns = namespace(found_first=false) -%}
126
- {%- for key, value in argument | dictsort -%}
127
- {%- if ns.found_first %},{% endif -%}
128
- {%- set ns.found_first = true -%}
129
- {%- if escape_keys -%}
130
- {{- '<|"|>' + key + '<|"|>' -}}
131
- {%- else -%}
132
- {{- key -}}
133
- {%- endif -%}
134
- :{{- format_argument(value, escape_keys=escape_keys) -}}
135
- {%- endfor -%}
136
- {{- '}' -}}
137
- {%- elif argument is sequence -%}
138
- {{- '[' -}}
139
- {%- for item in argument -%}
140
- {{- format_argument(item, escape_keys=escape_keys) -}}
141
- {%- if not loop.last %},{% endif -%}
142
- {%- endfor -%}
143
- {{- ']' -}}
144
- {%- else -%}
145
- {{- argument -}}
146
- {%- endif -%}
147
- {%- endmacro -%}
148
- {%- macro strip_thinking(text) -%}
149
- {%- set ns = namespace(result='') -%}
150
- {%- for part in text.split('<channel|>') -%}
151
- {%- if '<|channel>' in part -%}
152
- {%- set ns.result = ns.result + part.split('<|channel>')[0] -%}
153
- {%- else -%}
154
- {%- set ns.result = ns.result + part -%}
155
- {%- endif -%}
156
- {%- endfor -%}
157
- {{- ns.result | trim -}}
158
- {%- endmacro -%}
159
- {%- macro format_tool_response_block(tool_name, response) -%}
160
- {{- '<|tool_response>' -}}
161
- {%- if response is mapping -%}
162
- {{- 'response:' + tool_name + '{' -}}
163
- {%- for key, value in response | dictsort -%}
164
- {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
165
- {%- if not loop.last %},{% endif -%}
166
- {%- endfor -%}
167
- {{- '}' -}}
168
- {%- else -%}
169
- {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}
170
- {%- endif -%}
171
- {{- '<tool_response|>' -}}
172
- {%- endmacro -%}
173
- {%- set ns = namespace(prev_message_type=None) -%}
174
- {%- set loop_messages = messages -%}
175
- {{- bos_token -}}
176
- {#- Handle System/Tool Definitions Block -#}
177
- {%- if (enable_thinking is defined and enable_thinking) or tools or messages[0]['role'] in ['system', 'developer'] -%}
178
- {{- '<|turn>system\n' -}}
179
- {#- Inject Thinking token at the very top of the FIRST system turn -#}
180
- {%- if enable_thinking is defined and enable_thinking -%}
181
- {{- '<|think|>\n' -}}
182
- {%- set ns.prev_message_type = 'think' -%}
183
- {%- endif -%}
184
- {%- if messages[0]['role'] in ['system', 'developer'] -%}
185
- {{- messages[0]['content'] | trim -}}
186
- {%- set loop_messages = messages[1:] -%}
187
- {%- endif -%}
188
- {%- if tools -%}
189
- {%- for tool in tools %}
190
- {{- '<|tool>' -}}
191
- {{- format_function_declaration(tool) | trim -}}
192
- {{- '<tool|>' -}}
193
- {%- endfor %}
194
- {%- set ns.prev_message_type = 'tool' -%}
195
- {%- endif -%}
196
- {{- '<turn|>\n' -}}
197
- {%- endif %}
198
- {#- Pre-scan: find last user message index for reasoning guard -#}
199
- {%- set ns_turn = namespace(last_user_idx=-1) -%}
200
- {%- for i in range(loop_messages | length) -%}
201
- {%- if loop_messages[i]['role'] == 'user' -%}
202
- {%- set ns_turn.last_user_idx = i -%}
203
- {%- endif -%}
204
- {%- endfor -%}
205
- {#- Loop through messages -#}
206
- {%- for message in loop_messages -%}
207
- {%- if message['role'] != 'tool' -%}
208
- {%- set ns.prev_message_type = None -%}
209
- {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}
210
- {#- Detect continuation: suppress duplicate <|turn>model when previous non-tool message was also assistant -#}
211
- {%- set prev_nt = namespace(role=None, found=false) -%}
212
- {%- if loop.index0 > 0 -%}
213
- {%- for j in range(loop.index0 - 1, -1, -1) -%}
214
- {%- if not prev_nt.found -%}
215
- {%- if loop_messages[j]['role'] != 'tool' -%}
216
- {%- set prev_nt.role = loop_messages[j]['role'] -%}
217
- {%- set prev_nt.found = true -%}
218
- {%- endif -%}
219
- {%- endif -%}
220
- {%- endfor -%}
221
- {%- endif -%}
222
- {%- set continue_same_model_turn = (role == 'model' and prev_nt.role == 'assistant') -%}
223
- {%- if not continue_same_model_turn -%}
224
- {{- '<|turn>' + role + '\n' }}
225
- {%- endif -%}
226
- {#- Render reasoning/reasoning_content as thinking channel -#}
227
- {%- set thinking_text = message.get('reasoning') or message.get('reasoning_content') -%}
228
- {%- if thinking_text and loop.index0 > ns_turn.last_user_idx and message.get('tool_calls') -%}
229
- {{- '<|channel>thought\n' + thinking_text + '\n<channel|>' -}}
230
- {%- endif -%}
231
- {%- if message['tool_calls'] -%}
232
- {%- for tool_call in message['tool_calls'] -%}
233
- {%- set function = tool_call['function'] -%}
234
- {{- '<|tool_call>call:' + function['name'] + '{' -}}
235
- {%- if function['arguments'] is mapping -%}
236
- {%- set ns_args = namespace(found_first=false) -%}
237
- {%- for key, value in function['arguments'] | dictsort -%}
238
- {%- if ns_args.found_first %},{% endif -%}
239
- {%- set ns_args.found_first = true -%}
240
- {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
241
- {%- endfor -%}
242
- {%- elif function['arguments'] is string -%}
243
- {{- function['arguments'] -}}
244
- {%- endif -%}
245
- {{- '}<tool_call|>' -}}
246
- {%- endfor -%}
247
- {%- set ns.prev_message_type = 'tool_call' -%}
248
- {%- endif -%}
249
- {%- set ns_tr_out = namespace(flag=false) -%}
250
- {%- if message.get('tool_responses') -%}
251
- {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}
252
- {%- for tool_response in message['tool_responses'] -%}
253
- {{- format_tool_response_block(tool_response['name'] | default('unknown'), tool_response['response']) -}}
254
- {%- set ns_tr_out.flag = true -%}
255
- {%- set ns.prev_message_type = 'tool_response' -%}
256
- {%- endfor -%}
257
- {%- elif message.get('tool_calls') -%}
258
- {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}
259
- {%- set ns_tool_scan = namespace(stopped=false) -%}
260
- {%- for k in range(loop.index0 + 1, loop_messages | length) -%}
261
- {%- if ns_tool_scan.stopped -%}
262
- {%- elif loop_messages[k]['role'] != 'tool' -%}
263
- {%- set ns_tool_scan.stopped = true -%}
264
- {%- else -%}
265
- {%- set follow = loop_messages[k] -%}
266
- {#- Resolve tool_call_id to function name -#}
267
- {%- set ns_tname = namespace(name=follow.get('name') | default('unknown')) -%}
268
- {%- for tc in message['tool_calls'] -%}
269
- {%- if tc.get('id') == follow.get('tool_call_id') -%}
270
- {%- set ns_tname.name = tc['function']['name'] -%}
271
- {%- endif -%}
272
- {%- endfor -%}
273
- {#- Handle content as string or content-parts array -#}
274
- {%- set tool_body = follow.get('content') -%}
275
- {%- if tool_body is string -%}
276
- {{- format_tool_response_block(ns_tname.name, tool_body) -}}
277
- {%- elif tool_body is sequence and tool_body is not string -%}
278
- {%- set ns_txt = namespace(s='') -%}
279
- {%- for part in tool_body -%}
280
- {%- if part.get('type') == 'text' -%}
281
- {%- set ns_txt.s = ns_txt.s + (part.get('text') | default('')) -%}
282
- {%- endif -%}
283
- {%- endfor -%}
284
- {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
285
- {%- else -%}
286
- {{- format_tool_response_block(ns_tname.name, tool_body) -}}
287
- {%- endif -%}
288
- {%- set ns_tr_out.flag = true -%}
289
- {%- set ns.prev_message_type = 'tool_response' -%}
290
- {%- endif -%}
291
- {%- endfor -%}
292
- {%- endif -%}
293
- {%- if message['content'] is string -%}
294
- {%- if role == 'model' -%}
295
- {{- strip_thinking(message['content']) -}}
296
- {%- else -%}
297
- {{- message['content'] | trim -}}
298
- {%- endif -%}
299
- {%- elif message['content'] is sequence -%}
300
- {%- for item in message['content'] -%}
301
- {%- if item['type'] == 'text' -%}
302
- {%- if role == 'model' -%}
303
- {{- strip_thinking(item['text']) -}}
304
- {%- else -%}
305
- {{- item['text'] | trim -}}
306
- {%- endif -%}
307
- {%- elif item['type'] == 'image' -%}
308
- {{- '<|image|>' -}}
309
- {%- set ns.prev_message_type = 'image' -%}
310
- {%- elif item['type'] == 'audio' -%}
311
- {{- '<|audio|>' -}}
312
- {%- set ns.prev_message_type = 'audio' -%}
313
- {%- elif item['type'] == 'video' -%}
314
- {{- '<|video|>' -}}
315
- {%- set ns.prev_message_type = 'video' -%}
316
- {%- endif -%}
317
- {%- endfor -%}
318
- {%- endif -%}
319
- {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
320
- {{- '<|tool_response>' -}}
321
- {%- elif not (ns_tr_out.flag and not message.get('content')) -%}
322
- {{- '<turn|>\n' -}}
323
- {%- endif -%}
324
- {%- endif -%}
325
- {%- endfor -%}
326
- {%- if add_generation_prompt -%}
327
- {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
328
- {{- '<|turn>model\n' -}}
329
- {%- endif -%}
330
- {%- endif -%}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
gemma4_preencoded_dataset/processor/processor_config.json DELETED
@@ -1,290 +0,0 @@
1
- {
2
- "audio_ms_per_token": 40,
3
- "audio_seq_length": 750,
4
- "feature_extractor": {
5
- "audio_ms_per_token": 40,
6
- "audio_seq_length": 750,
7
- "dither": 0.0,
8
- "feature_extractor": {
9
- "dither": 0.0,
10
- "feature_extractor_type": "Gemma4AudioFeatureExtractor",
11
- "feature_size": 128,
12
- "fft_length": 512,
13
- "fft_overdrive": false,
14
- "frame_length": 320,
15
- "hop_length": 160,
16
- "input_scale_factor": 1.0,
17
- "max_frequency": 8000.0,
18
- "mel_floor": 0.001,
19
- "min_frequency": 0.0,
20
- "padding_side": "right",
21
- "padding_value": 0.0,
22
- "per_bin_mean": null,
23
- "per_bin_stddev": null,
24
- "preemphasis": 0.0,
25
- "preemphasis_htk_flavor": true,
26
- "return_attention_mask": true,
27
- "sampling_rate": 16000
28
- },
29
- "feature_extractor_type": "Gemma4AudioFeatureExtractor",
30
- "feature_size": 128,
31
- "fft_length": 512,
32
- "fft_overdrive": false,
33
- "frame_length": 320,
34
- "hop_length": 160,
35
- "image_processor": {
36
- "do_convert_rgb": true,
37
- "do_normalize": false,
38
- "do_rescale": true,
39
- "do_resize": true,
40
- "image_mean": [
41
- 0.0,
42
- 0.0,
43
- 0.0
44
- ],
45
- "image_processor_type": "Gemma4ImageProcessor",
46
- "image_seq_length": 280,
47
- "image_std": [
48
- 1.0,
49
- 1.0,
50
- 1.0
51
- ],
52
- "max_soft_tokens": 280,
53
- "patch_size": 16,
54
- "pooling_kernel_size": 3,
55
- "resample": 3,
56
- "rescale_factor": 0.00392156862745098
57
- },
58
- "image_seq_length": 280,
59
- "input_scale_factor": 1.0,
60
- "max_frequency": 8000.0,
61
- "mel_floor": 0.001,
62
- "min_frequency": 0.0,
63
- "padding_side": "right",
64
- "padding_value": 0.0,
65
- "per_bin_mean": null,
66
- "per_bin_stddev": null,
67
- "preemphasis": 0.0,
68
- "preemphasis_htk_flavor": true,
69
- "return_attention_mask": true,
70
- "sampling_rate": 16000,
71
- "video_processor": {
72
- "do_convert_rgb": true,
73
- "do_normalize": true,
74
- "do_rescale": true,
75
- "do_resize": true,
76
- "do_sample_frames": true,
77
- "image_mean": [
78
- 0.0,
79
- 0.0,
80
- 0.0
81
- ],
82
- "image_std": [
83
- 1.0,
84
- 1.0,
85
- 1.0
86
- ],
87
- "max_soft_tokens": 70,
88
- "num_frames": 32,
89
- "patch_size": 16,
90
- "pooling_kernel_size": 3,
91
- "resample": 3,
92
- "rescale_factor": 0.00392156862745098,
93
- "return_metadata": false,
94
- "video_processor_type": "Gemma4VideoProcessor"
95
- }
96
- },
97
- "image_processor": {
98
- "audio_ms_per_token": 40,
99
- "audio_seq_length": 750,
100
- "do_convert_rgb": true,
101
- "do_normalize": false,
102
- "do_rescale": true,
103
- "do_resize": true,
104
- "feature_extractor": {
105
- "dither": 0.0,
106
- "feature_extractor_type": "Gemma4AudioFeatureExtractor",
107
- "feature_size": 128,
108
- "fft_length": 512,
109
- "fft_overdrive": false,
110
- "frame_length": 320,
111
- "hop_length": 160,
112
- "input_scale_factor": 1.0,
113
- "max_frequency": 8000.0,
114
- "mel_floor": 0.001,
115
- "min_frequency": 0.0,
116
- "padding_side": "right",
117
- "padding_value": 0.0,
118
- "per_bin_mean": null,
119
- "per_bin_stddev": null,
120
- "preemphasis": 0.0,
121
- "preemphasis_htk_flavor": true,
122
- "return_attention_mask": true,
123
- "sampling_rate": 16000
124
- },
125
- "image_mean": [
126
- 0.0,
127
- 0.0,
128
- 0.0
129
- ],
130
- "image_processor": {
131
- "do_convert_rgb": true,
132
- "do_normalize": false,
133
- "do_rescale": true,
134
- "do_resize": true,
135
- "image_mean": [
136
- 0.0,
137
- 0.0,
138
- 0.0
139
- ],
140
- "image_processor_type": "Gemma4ImageProcessor",
141
- "image_seq_length": 280,
142
- "image_std": [
143
- 1.0,
144
- 1.0,
145
- 1.0
146
- ],
147
- "max_soft_tokens": 280,
148
- "patch_size": 16,
149
- "pooling_kernel_size": 3,
150
- "resample": 3,
151
- "rescale_factor": 0.00392156862745098
152
- },
153
- "image_processor_type": "Gemma4ImageProcessor",
154
- "image_seq_length": 280,
155
- "image_std": [
156
- 1.0,
157
- 1.0,
158
- 1.0
159
- ],
160
- "max_soft_tokens": 280,
161
- "patch_size": 16,
162
- "pooling_kernel_size": 3,
163
- "resample": 3,
164
- "rescale_factor": 0.00392156862745098,
165
- "video_processor": {
166
- "do_convert_rgb": true,
167
- "do_normalize": true,
168
- "do_rescale": true,
169
- "do_resize": true,
170
- "do_sample_frames": true,
171
- "image_mean": [
172
- 0.0,
173
- 0.0,
174
- 0.0
175
- ],
176
- "image_std": [
177
- 1.0,
178
- 1.0,
179
- 1.0
180
- ],
181
- "max_soft_tokens": 70,
182
- "num_frames": 32,
183
- "patch_size": 16,
184
- "pooling_kernel_size": 3,
185
- "resample": 3,
186
- "rescale_factor": 0.00392156862745098,
187
- "return_metadata": false,
188
- "video_processor_type": "Gemma4VideoProcessor"
189
- }
190
- },
191
- "image_seq_length": 280,
192
- "processor_class": "Gemma4Processor",
193
- "video_processor": {
194
- "audio_ms_per_token": 40,
195
- "audio_seq_length": 750,
196
- "do_convert_rgb": true,
197
- "do_normalize": true,
198
- "do_rescale": true,
199
- "do_resize": true,
200
- "do_sample_frames": true,
201
- "feature_extractor": {
202
- "dither": 0.0,
203
- "feature_extractor_type": "Gemma4AudioFeatureExtractor",
204
- "feature_size": 128,
205
- "fft_length": 512,
206
- "fft_overdrive": false,
207
- "frame_length": 320,
208
- "hop_length": 160,
209
- "input_scale_factor": 1.0,
210
- "max_frequency": 8000.0,
211
- "mel_floor": 0.001,
212
- "min_frequency": 0.0,
213
- "padding_side": "right",
214
- "padding_value": 0.0,
215
- "per_bin_mean": null,
216
- "per_bin_stddev": null,
217
- "preemphasis": 0.0,
218
- "preemphasis_htk_flavor": true,
219
- "return_attention_mask": true,
220
- "sampling_rate": 16000
221
- },
222
- "image_mean": [
223
- 0.0,
224
- 0.0,
225
- 0.0
226
- ],
227
- "image_processor": {
228
- "do_convert_rgb": true,
229
- "do_normalize": false,
230
- "do_rescale": true,
231
- "do_resize": true,
232
- "image_mean": [
233
- 0.0,
234
- 0.0,
235
- 0.0
236
- ],
237
- "image_processor_type": "Gemma4ImageProcessor",
238
- "image_seq_length": 280,
239
- "image_std": [
240
- 1.0,
241
- 1.0,
242
- 1.0
243
- ],
244
- "max_soft_tokens": 280,
245
- "patch_size": 16,
246
- "pooling_kernel_size": 3,
247
- "resample": 3,
248
- "rescale_factor": 0.00392156862745098
249
- },
250
- "image_seq_length": 280,
251
- "image_std": [
252
- 1.0,
253
- 1.0,
254
- 1.0
255
- ],
256
- "max_soft_tokens": 70,
257
- "num_frames": 32,
258
- "patch_size": 16,
259
- "pooling_kernel_size": 3,
260
- "resample": 3,
261
- "rescale_factor": 0.00392156862745098,
262
- "return_metadata": false,
263
- "video_processor": {
264
- "do_convert_rgb": true,
265
- "do_normalize": true,
266
- "do_rescale": true,
267
- "do_resize": true,
268
- "do_sample_frames": true,
269
- "image_mean": [
270
- 0.0,
271
- 0.0,
272
- 0.0
273
- ],
274
- "image_std": [
275
- 1.0,
276
- 1.0,
277
- 1.0
278
- ],
279
- "max_soft_tokens": 70,
280
- "num_frames": 32,
281
- "patch_size": 16,
282
- "pooling_kernel_size": 3,
283
- "resample": 3,
284
- "rescale_factor": 0.00392156862745098,
285
- "return_metadata": false,
286
- "video_processor_type": "Gemma4VideoProcessor"
287
- },
288
- "video_processor_type": "Gemma4VideoProcessor"
289
- }
290
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
gemma4_preencoded_dataset/processor/tokenizer.json DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
3
- size 32169626
 
 
 
 
gemma4_preencoded_dataset/processor/tokenizer_config.json DELETED
@@ -1,96 +0,0 @@
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": false,
21
- "local_files_only": false,
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": "right",
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<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
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
- }