jq commited on
Commit
79e43c7
·
verified ·
1 Parent(s): 06bb39e

Upload folder using huggingface_hub

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
chat_template.jinja ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- macro format_parameters(properties, required, filter_keys=false) -%}
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 not filter_keys or 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([]), filter_keys=true) -}}
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
+
160
+ {%- macro format_tool_response_block(tool_name, response) -%}
161
+ {{- '<|tool_response>' -}}
162
+ {%- if response is mapping -%}
163
+ {{- 'response:' + tool_name + '{' -}}
164
+ {%- for key, value in response | dictsort -%}
165
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
166
+ {%- if not loop.last %},{% endif -%}
167
+ {%- endfor -%}
168
+ {{- '}' -}}
169
+ {%- else -%}
170
+ {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}
171
+ {%- endif -%}
172
+ {{- '<tool_response|>' -}}
173
+ {%- endmacro -%}
174
+
175
+ {%- set ns = namespace(prev_message_type=None) -%}
176
+ {%- set loop_messages = messages -%}
177
+ {{- bos_token -}}
178
+ {#- Handle System/Tool Definitions Block -#}
179
+ {%- if (enable_thinking is defined and enable_thinking) or tools or messages[0]['role'] in ['system', 'developer'] -%}
180
+ {{- '<|turn>system\n' -}}
181
+ {#- Inject Thinking token at the very top of the FIRST system turn -#}
182
+ {%- if enable_thinking is defined and enable_thinking -%}
183
+ {{- '<|think|>\n' -}}
184
+ {%- set ns.prev_message_type = 'think' -%}
185
+ {%- endif -%}
186
+ {%- if messages[0]['role'] in ['system', 'developer'] -%}
187
+ {%- if messages[0]['content'] is string -%}
188
+ {{- messages[0]['content'] | trim -}}
189
+ {%- elif messages[0]['content'] is sequence -%}
190
+ {%- for item in messages[0]['content'] -%}
191
+ {{- item['text'] | trim + ' '-}}
192
+ {%- endfor -%}
193
+ {%- endif -%}
194
+ {%- set loop_messages = messages[1:] -%}
195
+ {%- endif -%}
196
+ {%- if tools -%}
197
+ {%- for tool in tools %}
198
+ {{- '<|tool>' -}}
199
+ {{- format_function_declaration(tool) | trim -}}
200
+ {{- '<tool|>' -}}
201
+ {%- endfor %}
202
+ {%- set ns.prev_message_type = 'tool' -%}
203
+ {%- endif -%}
204
+ {{- '<turn|>\n' -}}
205
+ {%- endif %}
206
+
207
+ {#- Pre-scan: find last user message index for reasoning guard -#}
208
+ {%- set ns_turn = namespace(last_user_idx=-1) -%}
209
+ {%- for i in range(loop_messages | length) -%}
210
+ {%- if loop_messages[i]['role'] == 'user' -%}
211
+ {%- set ns_turn.last_user_idx = i -%}
212
+ {%- endif -%}
213
+ {%- endfor -%}
214
+
215
+ {#- Loop through messages -#}
216
+ {%- for message in loop_messages -%}
217
+ {%- if message['role'] != 'tool' -%}
218
+ {%- set ns.prev_message_type = None -%}
219
+ {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}
220
+ {#- Detect continuation: suppress duplicate <|turn>model when previous non-tool message was also assistant -#}
221
+ {%- set prev_nt = namespace(role=None, found=false) -%}
222
+ {%- if loop.index0 > 0 -%}
223
+ {%- for j in range(loop.index0 - 1, -1, -1) -%}
224
+ {%- if not prev_nt.found -%}
225
+ {%- if loop_messages[j]['role'] != 'tool' -%}
226
+ {%- set prev_nt.role = loop_messages[j]['role'] -%}
227
+ {%- set prev_nt.found = true -%}
228
+ {%- endif -%}
229
+ {%- endif -%}
230
+ {%- endfor -%}
231
+ {%- endif -%}
232
+ {%- set continue_same_model_turn = (role == 'model' and prev_nt.role == 'assistant') -%}
233
+ {%- if not continue_same_model_turn -%}
234
+ {{- '<|turn>' + role + '\n' }}
235
+ {%- endif -%}
236
+
237
+ {#- Render reasoning/reasoning_content as thinking channel -#}
238
+ {%- set thinking_text = message.get('reasoning') or message.get('reasoning_content') -%}
239
+ {%- if thinking_text and loop.index0 > ns_turn.last_user_idx and message.get('tool_calls') -%}
240
+ {{- '<|channel>thought\n' + thinking_text + '\n<channel|>' -}}
241
+ {%- endif -%}
242
+
243
+ {%- if message['tool_calls'] -%}
244
+ {%- for tool_call in message['tool_calls'] -%}
245
+ {%- set function = tool_call['function'] -%}
246
+ {{- '<|tool_call>call:' + function['name'] + '{' -}}
247
+ {%- if function['arguments'] is mapping -%}
248
+ {%- set ns_args = namespace(found_first=false) -%}
249
+ {%- for key, value in function['arguments'] | dictsort -%}
250
+ {%- if ns_args.found_first %},{% endif -%}
251
+ {%- set ns_args.found_first = true -%}
252
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
253
+ {%- endfor -%}
254
+ {%- elif function['arguments'] is string -%}
255
+ {{- function['arguments'] -}}
256
+ {%- endif -%}
257
+ {{- '}<tool_call|>' -}}
258
+ {%- endfor -%}
259
+ {%- set ns.prev_message_type = 'tool_call' -%}
260
+ {%- endif -%}
261
+
262
+ {%- set ns_tr_out = namespace(flag=false) -%}
263
+ {%- if message.get('tool_responses') -%}
264
+ {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}
265
+ {%- for tool_response in message['tool_responses'] -%}
266
+ {{- format_tool_response_block(tool_response['name'] | default('unknown'), tool_response['response']) -}}
267
+ {%- set ns_tr_out.flag = true -%}
268
+ {%- set ns.prev_message_type = 'tool_response' -%}
269
+ {%- endfor -%}
270
+ {%- elif message.get('tool_calls') -%}
271
+ {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}
272
+ {%- set ns_tool_scan = namespace(stopped=false) -%}
273
+ {%- for k in range(loop.index0 + 1, loop_messages | length) -%}
274
+ {%- if ns_tool_scan.stopped -%}
275
+ {%- elif loop_messages[k]['role'] != 'tool' -%}
276
+ {%- set ns_tool_scan.stopped = true -%}
277
+ {%- else -%}
278
+ {%- set follow = loop_messages[k] -%}
279
+ {#- Resolve tool_call_id to function name -#}
280
+ {%- set ns_tname = namespace(name=follow.get('name') | default('unknown')) -%}
281
+ {%- for tc in message['tool_calls'] -%}
282
+ {%- if tc.get('id') == follow.get('tool_call_id') -%}
283
+ {%- set ns_tname.name = tc['function']['name'] -%}
284
+ {%- endif -%}
285
+ {%- endfor -%}
286
+ {#- Handle content as string or content-parts array -#}
287
+ {%- set tool_body = follow.get('content') -%}
288
+ {%- if tool_body is string -%}
289
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
290
+ {%- elif tool_body is sequence and tool_body is not string -%}
291
+ {%- set ns_txt = namespace(s='') -%}
292
+ {%- for part in tool_body -%}
293
+ {%- if part.get('type') == 'text' -%}
294
+ {%- set ns_txt.s = ns_txt.s + (part.get('text') | default('')) -%}
295
+ {%- endif -%}
296
+ {%- endfor -%}
297
+ {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
298
+ {%- else -%}
299
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
300
+ {%- endif -%}
301
+ {%- set ns_tr_out.flag = true -%}
302
+ {%- set ns.prev_message_type = 'tool_response' -%}
303
+ {%- endif -%}
304
+ {%- endfor -%}
305
+ {%- endif -%}
306
+
307
+ {%- set captured_content -%}
308
+ {%- if message['content'] is string -%}
309
+ {%- if role == 'model' -%}
310
+ {{- strip_thinking(message['content']) -}}
311
+ {%- else -%}
312
+ {{- message['content'] | trim -}}
313
+ {%- endif -%}
314
+ {%- elif message['content'] is sequence -%}
315
+ {%- for item in message['content'] -%}
316
+ {%- if item['type'] == 'text' -%}
317
+ {%- if role == 'model' -%}
318
+ {{- strip_thinking(item['text']) -}}
319
+ {%- else -%}
320
+ {{- item['text'] | trim -}}
321
+ {%- endif -%}
322
+ {%- elif item['type'] == 'image' -%}
323
+ {{- '<|image|>' -}}
324
+ {%- set ns.prev_message_type = 'image' -%}
325
+ {%- elif item['type'] == 'audio' -%}
326
+ {{- '<|audio|>' -}}
327
+ {%- set ns.prev_message_type = 'audio' -%}
328
+ {%- elif item['type'] == 'video' -%}
329
+ {{- '<|video|>' -}}
330
+ {%- set ns.prev_message_type = 'video' -%}
331
+ {%- endif -%}
332
+ {%- endfor -%}
333
+ {%- endif -%}
334
+ {%- endset -%}
335
+
336
+ {{- captured_content -}}
337
+ {%- set has_content = captured_content | trim | length > 0 -%}
338
+
339
+ {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
340
+ {{- '<|tool_response>' -}}
341
+ {%- elif not (ns_tr_out.flag and not has_content) -%}
342
+ {{- '<turn|>\n' -}}
343
+ {%- endif -%}
344
+ {%- endif -%}
345
+ {%- endfor -%}
346
+
347
+ {%- if add_generation_prompt -%}
348
+ {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
349
+ {{- '<|turn>model\n' -}}
350
+ {%- endif -%}
351
+ {%- endif -%}
config.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma4ForConditionalGeneration"
4
+ ],
5
+ "audio_config": {
6
+ "_name_or_path": "",
7
+ "architectures": null,
8
+ "attention_chunk_size": 12,
9
+ "attention_context_left": 13,
10
+ "attention_context_right": 0,
11
+ "attention_invalid_logits_value": -1000000000.0,
12
+ "attention_logit_cap": 50.0,
13
+ "chunk_size_feed_forward": 0,
14
+ "conv_kernel_size": 5,
15
+ "dtype": "bfloat16",
16
+ "gradient_clipping": 10000000000.0,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "LABEL_0",
21
+ "1": "LABEL_1"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "is_encoder_decoder": false,
25
+ "label2id": {
26
+ "LABEL_0": 0,
27
+ "LABEL_1": 1
28
+ },
29
+ "model_type": "gemma4_audio",
30
+ "num_attention_heads": 8,
31
+ "num_hidden_layers": 12,
32
+ "output_attentions": false,
33
+ "output_hidden_states": false,
34
+ "output_proj_dims": 1536,
35
+ "problem_type": null,
36
+ "residual_weight": 0.5,
37
+ "return_dict": true,
38
+ "rms_norm_eps": 1e-06,
39
+ "subsampling_conv_channels": [
40
+ 128,
41
+ 32
42
+ ],
43
+ "use_clipped_linears": true
44
+ },
45
+ "audio_token_id": 258881,
46
+ "boa_token_id": 256000,
47
+ "boi_token_id": 255999,
48
+ "bos_token_id": 2,
49
+ "dtype": "bfloat16",
50
+ "eoa_token_id": 258883,
51
+ "eoa_token_index": 258883,
52
+ "eoi_token_id": 258882,
53
+ "eos_token_id": 1,
54
+ "image_token_id": 258880,
55
+ "initializer_range": 0.02,
56
+ "model_name": "jq/gemma4-e2b-fft-asr-uga",
57
+ "model_type": "gemma4",
58
+ "pad_token_id": 0,
59
+ "text_config": {
60
+ "attention_bias": false,
61
+ "attention_dropout": 0.0,
62
+ "attention_k_eq_v": false,
63
+ "bos_token_id": 2,
64
+ "dtype": "bfloat16",
65
+ "enable_moe_block": false,
66
+ "eos_token_id": 1,
67
+ "expert_intermediate_size": null,
68
+ "final_logit_softcapping": 30.0,
69
+ "global_head_dim": 512,
70
+ "head_dim": 256,
71
+ "hidden_activation": "gelu_pytorch_tanh",
72
+ "hidden_size": 1536,
73
+ "hidden_size_per_layer_input": 256,
74
+ "initializer_range": 0.02,
75
+ "intermediate_size": 6144,
76
+ "layer_types": [
77
+ "sliding_attention",
78
+ "sliding_attention",
79
+ "sliding_attention",
80
+ "sliding_attention",
81
+ "full_attention",
82
+ "sliding_attention",
83
+ "sliding_attention",
84
+ "sliding_attention",
85
+ "sliding_attention",
86
+ "full_attention",
87
+ "sliding_attention",
88
+ "sliding_attention",
89
+ "sliding_attention",
90
+ "sliding_attention",
91
+ "full_attention",
92
+ "sliding_attention",
93
+ "sliding_attention",
94
+ "sliding_attention",
95
+ "sliding_attention",
96
+ "full_attention",
97
+ "sliding_attention",
98
+ "sliding_attention",
99
+ "sliding_attention",
100
+ "sliding_attention",
101
+ "full_attention",
102
+ "sliding_attention",
103
+ "sliding_attention",
104
+ "sliding_attention",
105
+ "sliding_attention",
106
+ "full_attention",
107
+ "sliding_attention",
108
+ "sliding_attention",
109
+ "sliding_attention",
110
+ "sliding_attention",
111
+ "full_attention"
112
+ ],
113
+ "max_position_embeddings": 131072,
114
+ "model_type": "gemma4_text",
115
+ "moe_intermediate_size": null,
116
+ "num_attention_heads": 8,
117
+ "num_experts": null,
118
+ "num_global_key_value_heads": null,
119
+ "num_hidden_layers": 35,
120
+ "num_key_value_heads": 1,
121
+ "num_kv_shared_layers": 20,
122
+ "pad_token_id": 0,
123
+ "rms_norm_eps": 1e-06,
124
+ "rope_parameters": {
125
+ "full_attention": {
126
+ "partial_rotary_factor": 0.25,
127
+ "rope_theta": 1000000.0,
128
+ "rope_type": "proportional"
129
+ },
130
+ "sliding_attention": {
131
+ "rope_theta": 10000.0,
132
+ "rope_type": "default"
133
+ }
134
+ },
135
+ "sliding_window": 512,
136
+ "tie_word_embeddings": true,
137
+ "top_k_experts": null,
138
+ "use_bidirectional_attention": null,
139
+ "use_cache": true,
140
+ "use_double_wide_mlp": true,
141
+ "vocab_size": 262144,
142
+ "vocab_size_per_layer_input": 262144
143
+ },
144
+ "tie_word_embeddings": true,
145
+ "transformers_version": "5.8.0",
146
+ "unsloth_version": "2026.5.2",
147
+ "use_cache": false,
148
+ "video_token_id": 258884,
149
+ "vision_config": {
150
+ "_name_or_path": "",
151
+ "architectures": null,
152
+ "attention_bias": false,
153
+ "attention_dropout": 0.0,
154
+ "chunk_size_feed_forward": 0,
155
+ "default_output_length": 280,
156
+ "dtype": "bfloat16",
157
+ "global_head_dim": 64,
158
+ "head_dim": 64,
159
+ "hidden_activation": "gelu_pytorch_tanh",
160
+ "hidden_size": 768,
161
+ "id2label": {
162
+ "0": "LABEL_0",
163
+ "1": "LABEL_1"
164
+ },
165
+ "initializer_range": 0.02,
166
+ "intermediate_size": 3072,
167
+ "is_encoder_decoder": false,
168
+ "label2id": {
169
+ "LABEL_0": 0,
170
+ "LABEL_1": 1
171
+ },
172
+ "max_position_embeddings": 131072,
173
+ "model_type": "gemma4_vision",
174
+ "num_attention_heads": 12,
175
+ "num_hidden_layers": 16,
176
+ "num_key_value_heads": 12,
177
+ "output_attentions": false,
178
+ "output_hidden_states": false,
179
+ "patch_size": 16,
180
+ "pooling_kernel_size": 3,
181
+ "position_embedding_size": 10240,
182
+ "problem_type": null,
183
+ "return_dict": true,
184
+ "rms_norm_eps": 1e-06,
185
+ "rope_parameters": {
186
+ "rope_theta": 100.0,
187
+ "rope_type": "default"
188
+ },
189
+ "standardize": false,
190
+ "use_clipped_linears": true
191
+ },
192
+ "vision_soft_tokens_per_image": 280
193
+ }
generation_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 1,
6
+ 1,
7
+ 106,
8
+ 50
9
+ ],
10
+ "pad_token_id": 0,
11
+ "temperature": 1.0,
12
+ "top_k": 64,
13
+ "top_p": 0.95,
14
+ "transformers_version": "5.8.0"
15
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea6cc0002ac99d442c85e1d2cdd9b7577e61ecc0fb78d4409421e6b92e3464ce
3
+ size 10208852910
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87ee2f2ae8de49581bfeb04ce113841200a5b6fdd727c9383b4d28dadbf204e2
3
+ size 14645
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e776e741fba5a953308d206a95e50abed2908736b9041a4ce113333636585ee
3
+ size 1465
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1d8bced9d66859cd2c3f4dcd8ab427197d4d46af3d9598b72af9fcf80b8392e
3
+ size 32169781
tokenizer_config.json ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": null,
24
+ "model_max_length": 1000000000000000019884624838656,
25
+ "model_specific_special_tokens": {
26
+ "audio_token": "<|audio|>",
27
+ "boa_token": "<|audio>",
28
+ "boi_token": "<|image>",
29
+ "eoa_token": "<audio|>",
30
+ "eoc_token": "<channel|>",
31
+ "eoi_token": "<image|>",
32
+ "eot_token": "<turn|>",
33
+ "escape_token": "<|\"|>",
34
+ "etc_token": "<tool_call|>",
35
+ "etd_token": "<tool|>",
36
+ "etr_token": "<tool_response|>",
37
+ "image_token": "<|image|>",
38
+ "soc_token": "<|channel>",
39
+ "sot_token": "<|turn>",
40
+ "stc_token": "<|tool_call>",
41
+ "std_token": "<|tool>",
42
+ "str_token": "<|tool_response>",
43
+ "think_token": "<|think|>"
44
+ },
45
+ "pad_to_multiple_of": null,
46
+ "pad_token": "<pad>",
47
+ "pad_token_type_id": 0,
48
+ "padding_side": "right",
49
+ "processor_class": "Gemma4Processor",
50
+ "response_schema": {
51
+ "properties": {
52
+ "content": {
53
+ "type": "string"
54
+ },
55
+ "role": {
56
+ "const": "assistant"
57
+ },
58
+ "thinking": {
59
+ "type": "string"
60
+ },
61
+ "tool_calls": {
62
+ "items": {
63
+ "properties": {
64
+ "function": {
65
+ "properties": {
66
+ "arguments": {
67
+ "additionalProperties": {},
68
+ "type": "object",
69
+ "x-parser": "gemma4-tool-call"
70
+ },
71
+ "name": {
72
+ "type": "string"
73
+ }
74
+ },
75
+ "type": "object",
76
+ "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})"
77
+ },
78
+ "type": {
79
+ "const": "function"
80
+ }
81
+ },
82
+ "type": "object"
83
+ },
84
+ "type": "array",
85
+ "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>"
86
+ }
87
+ },
88
+ "type": "object",
89
+ "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
90
+ },
91
+ "soc_token": "<|channel>",
92
+ "sot_token": "<|turn>",
93
+ "stc_token": "<|tool_call>",
94
+ "std_token": "<|tool>",
95
+ "str_token": "<|tool_response>",
96
+ "think_token": "<|think|>",
97
+ "tokenizer_class": "GemmaTokenizer",
98
+ "unk_token": "<unk>",
99
+ "added_tokens_decoder": {
100
+ "0": {
101
+ "content": "<pad>",
102
+ "single_word": false,
103
+ "lstrip": false,
104
+ "rstrip": false,
105
+ "normalized": false,
106
+ "special": true
107
+ },
108
+ "1": {
109
+ "content": "<eos>",
110
+ "single_word": false,
111
+ "lstrip": false,
112
+ "rstrip": false,
113
+ "normalized": false,
114
+ "special": true
115
+ },
116
+ "2": {
117
+ "content": "<bos>",
118
+ "single_word": false,
119
+ "lstrip": false,
120
+ "rstrip": false,
121
+ "normalized": false,
122
+ "special": true
123
+ },
124
+ "3": {
125
+ "content": "<unk>",
126
+ "single_word": false,
127
+ "lstrip": false,
128
+ "rstrip": false,
129
+ "normalized": false,
130
+ "special": true
131
+ },
132
+ "4": {
133
+ "content": "<mask>",
134
+ "single_word": false,
135
+ "lstrip": false,
136
+ "rstrip": false,
137
+ "normalized": false,
138
+ "special": true
139
+ },
140
+ "46": {
141
+ "content": "<|tool>",
142
+ "single_word": false,
143
+ "lstrip": false,
144
+ "rstrip": false,
145
+ "normalized": false,
146
+ "special": true
147
+ },
148
+ "47": {
149
+ "content": "<tool|>",
150
+ "single_word": false,
151
+ "lstrip": false,
152
+ "rstrip": false,
153
+ "normalized": false,
154
+ "special": true
155
+ },
156
+ "48": {
157
+ "content": "<|tool_call>",
158
+ "single_word": false,
159
+ "lstrip": false,
160
+ "rstrip": false,
161
+ "normalized": false,
162
+ "special": true
163
+ },
164
+ "49": {
165
+ "content": "<tool_call|>",
166
+ "single_word": false,
167
+ "lstrip": false,
168
+ "rstrip": false,
169
+ "normalized": false,
170
+ "special": true
171
+ },
172
+ "50": {
173
+ "content": "<|tool_response>",
174
+ "single_word": false,
175
+ "lstrip": false,
176
+ "rstrip": false,
177
+ "normalized": false,
178
+ "special": true
179
+ },
180
+ "51": {
181
+ "content": "<tool_response|>",
182
+ "single_word": false,
183
+ "lstrip": false,
184
+ "rstrip": false,
185
+ "normalized": false,
186
+ "special": true
187
+ },
188
+ "52": {
189
+ "content": "<|\"|>",
190
+ "single_word": false,
191
+ "lstrip": false,
192
+ "rstrip": false,
193
+ "normalized": false,
194
+ "special": true
195
+ },
196
+ "98": {
197
+ "content": "<|think|>",
198
+ "single_word": false,
199
+ "lstrip": false,
200
+ "rstrip": false,
201
+ "normalized": false,
202
+ "special": true
203
+ },
204
+ "100": {
205
+ "content": "<|channel>",
206
+ "single_word": false,
207
+ "lstrip": false,
208
+ "rstrip": false,
209
+ "normalized": false,
210
+ "special": true
211
+ },
212
+ "101": {
213
+ "content": "<channel|>",
214
+ "single_word": false,
215
+ "lstrip": false,
216
+ "rstrip": false,
217
+ "normalized": false,
218
+ "special": true
219
+ },
220
+ "105": {
221
+ "content": "<|turn>",
222
+ "single_word": false,
223
+ "lstrip": false,
224
+ "rstrip": false,
225
+ "normalized": false,
226
+ "special": true
227
+ },
228
+ "106": {
229
+ "content": "<turn|>",
230
+ "single_word": false,
231
+ "lstrip": false,
232
+ "rstrip": false,
233
+ "normalized": false,
234
+ "special": true
235
+ },
236
+ "255999": {
237
+ "content": "<|image>",
238
+ "single_word": false,
239
+ "lstrip": false,
240
+ "rstrip": false,
241
+ "normalized": false,
242
+ "special": true
243
+ },
244
+ "256000": {
245
+ "content": "<|audio>",
246
+ "single_word": false,
247
+ "lstrip": false,
248
+ "rstrip": false,
249
+ "normalized": false,
250
+ "special": true
251
+ },
252
+ "258880": {
253
+ "content": "<|image|>",
254
+ "single_word": false,
255
+ "lstrip": false,
256
+ "rstrip": false,
257
+ "normalized": false,
258
+ "special": true
259
+ },
260
+ "258881": {
261
+ "content": "<|audio|>",
262
+ "single_word": false,
263
+ "lstrip": false,
264
+ "rstrip": false,
265
+ "normalized": false,
266
+ "special": true
267
+ },
268
+ "258882": {
269
+ "content": "<image|>",
270
+ "single_word": false,
271
+ "lstrip": false,
272
+ "rstrip": false,
273
+ "normalized": false,
274
+ "special": true
275
+ },
276
+ "258883": {
277
+ "content": "<audio|>",
278
+ "single_word": false,
279
+ "lstrip": false,
280
+ "rstrip": false,
281
+ "normalized": false,
282
+ "special": true
283
+ },
284
+ "258884": {
285
+ "content": "<|video|>",
286
+ "single_word": false,
287
+ "lstrip": false,
288
+ "rstrip": false,
289
+ "normalized": false,
290
+ "special": true
291
+ }
292
+ }
293
+ }
trainer_state.json ADDED
@@ -0,0 +1,505 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 143,
7
+ "global_step": 572,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.0175054704595186,
14
+ "grad_norm": 1.09375,
15
+ "learning_rate": 4.5e-06,
16
+ "loss": 0.3692042827606201,
17
+ "step": 10
18
+ },
19
+ {
20
+ "epoch": 0.0350109409190372,
21
+ "grad_norm": 0.93359375,
22
+ "learning_rate": 9.5e-06,
23
+ "loss": 0.35977413654327395,
24
+ "step": 20
25
+ },
26
+ {
27
+ "epoch": 0.0525164113785558,
28
+ "grad_norm": 1.046875,
29
+ "learning_rate": 1.45e-05,
30
+ "loss": 0.36324713230133054,
31
+ "step": 30
32
+ },
33
+ {
34
+ "epoch": 0.0700218818380744,
35
+ "grad_norm": 1.0625,
36
+ "learning_rate": 1.9500000000000003e-05,
37
+ "loss": 0.33168764114379884,
38
+ "step": 40
39
+ },
40
+ {
41
+ "epoch": 0.087527352297593,
42
+ "grad_norm": 0.828125,
43
+ "learning_rate": 2.45e-05,
44
+ "loss": 0.33778228759765627,
45
+ "step": 50
46
+ },
47
+ {
48
+ "epoch": 0.1050328227571116,
49
+ "grad_norm": 1.078125,
50
+ "learning_rate": 2.95e-05,
51
+ "loss": 0.2982091665267944,
52
+ "step": 60
53
+ },
54
+ {
55
+ "epoch": 0.12253829321663019,
56
+ "grad_norm": 0.859375,
57
+ "learning_rate": 3.45e-05,
58
+ "loss": 0.3437821626663208,
59
+ "step": 70
60
+ },
61
+ {
62
+ "epoch": 0.1400437636761488,
63
+ "grad_norm": 1.015625,
64
+ "learning_rate": 3.9500000000000005e-05,
65
+ "loss": 0.29782021045684814,
66
+ "step": 80
67
+ },
68
+ {
69
+ "epoch": 0.1575492341356674,
70
+ "grad_norm": 0.6171875,
71
+ "learning_rate": 4.4500000000000004e-05,
72
+ "loss": 0.30974411964416504,
73
+ "step": 90
74
+ },
75
+ {
76
+ "epoch": 0.175054704595186,
77
+ "grad_norm": 0.6796875,
78
+ "learning_rate": 4.9500000000000004e-05,
79
+ "loss": 0.31342487335205077,
80
+ "step": 100
81
+ },
82
+ {
83
+ "epoch": 0.1925601750547046,
84
+ "grad_norm": 0.62890625,
85
+ "learning_rate": 4.995515841989726e-05,
86
+ "loss": 0.2926024436950684,
87
+ "step": 110
88
+ },
89
+ {
90
+ "epoch": 0.2100656455142232,
91
+ "grad_norm": 0.5703125,
92
+ "learning_rate": 4.9800356999122746e-05,
93
+ "loss": 0.2794817924499512,
94
+ "step": 120
95
+ },
96
+ {
97
+ "epoch": 0.2275711159737418,
98
+ "grad_norm": 0.98828125,
99
+ "learning_rate": 4.953572751052924e-05,
100
+ "loss": 0.32305901050567626,
101
+ "step": 130
102
+ },
103
+ {
104
+ "epoch": 0.24507658643326038,
105
+ "grad_norm": 0.99609375,
106
+ "learning_rate": 4.916244186246555e-05,
107
+ "loss": 0.29492759704589844,
108
+ "step": 140
109
+ },
110
+ {
111
+ "epoch": 0.25032822757111595,
112
+ "eval_text_loss": 1.3007618188858032,
113
+ "eval_text_model_preparation_time": 0.0138,
114
+ "eval_text_runtime": 5.3163,
115
+ "eval_text_samples_per_second": 11.286,
116
+ "eval_text_steps_per_second": 11.286,
117
+ "step": 143
118
+ },
119
+ {
120
+ "epoch": 0.25032822757111595,
121
+ "eval_audio_loss": 0.7166803479194641,
122
+ "eval_audio_model_preparation_time": 0.0138,
123
+ "eval_audio_runtime": 23.1192,
124
+ "eval_audio_samples_per_second": 5.753,
125
+ "eval_audio_steps_per_second": 5.753,
126
+ "step": 143
127
+ },
128
+ {
129
+ "epoch": 0.26258205689277897,
130
+ "grad_norm": 1.0390625,
131
+ "learning_rate": 4.868215314571065e-05,
132
+ "loss": 0.31501500606536864,
133
+ "step": 150
134
+ },
135
+ {
136
+ "epoch": 0.2800875273522976,
137
+ "grad_norm": 0.609375,
138
+ "learning_rate": 4.8096988312782174e-05,
139
+ "loss": 0.3073582649230957,
140
+ "step": 160
141
+ },
142
+ {
143
+ "epoch": 0.2975929978118162,
144
+ "grad_norm": 1.1171875,
145
+ "learning_rate": 4.74095387587539e-05,
146
+ "loss": 0.3264436960220337,
147
+ "step": 170
148
+ },
149
+ {
150
+ "epoch": 0.3150984682713348,
151
+ "grad_norm": 0.6796875,
152
+ "learning_rate": 4.662284884529549e-05,
153
+ "loss": 0.3189807653427124,
154
+ "step": 180
155
+ },
156
+ {
157
+ "epoch": 0.33260393873085337,
158
+ "grad_norm": 0.87109375,
159
+ "learning_rate": 4.5740402418755246e-05,
160
+ "loss": 0.3061279535293579,
161
+ "step": 190
162
+ },
163
+ {
164
+ "epoch": 0.350109409190372,
165
+ "grad_norm": 0.85546875,
166
+ "learning_rate": 4.476610738199053e-05,
167
+ "loss": 0.2863796234130859,
168
+ "step": 200
169
+ },
170
+ {
171
+ "epoch": 0.3676148796498906,
172
+ "grad_norm": 0.81640625,
173
+ "learning_rate": 4.370427838826934e-05,
174
+ "loss": 0.30284264087677004,
175
+ "step": 210
176
+ },
177
+ {
178
+ "epoch": 0.3851203501094092,
179
+ "grad_norm": 0.6796875,
180
+ "learning_rate": 4.2559617733882754e-05,
181
+ "loss": 0.28477931022644043,
182
+ "step": 220
183
+ },
184
+ {
185
+ "epoch": 0.4026258205689278,
186
+ "grad_norm": 1.2265625,
187
+ "learning_rate": 4.13371945340852e-05,
188
+ "loss": 0.29639883041381837,
189
+ "step": 230
190
+ },
191
+ {
192
+ "epoch": 0.4201312910284464,
193
+ "grad_norm": 0.7734375,
194
+ "learning_rate": 4.004242227458158e-05,
195
+ "loss": 0.30428614616394045,
196
+ "step": 240
197
+ },
198
+ {
199
+ "epoch": 0.437636761487965,
200
+ "grad_norm": 0.7890625,
201
+ "learning_rate": 3.868103483797414e-05,
202
+ "loss": 0.28317761421203613,
203
+ "step": 250
204
+ },
205
+ {
206
+ "epoch": 0.4551422319474836,
207
+ "grad_norm": 0.78515625,
208
+ "learning_rate": 3.725906111133579e-05,
209
+ "loss": 0.2817823886871338,
210
+ "step": 260
211
+ },
212
+ {
213
+ "epoch": 0.4726477024070022,
214
+ "grad_norm": 0.5859375,
215
+ "learning_rate": 3.578279828735983e-05,
216
+ "loss": 0.2978217601776123,
217
+ "step": 270
218
+ },
219
+ {
220
+ "epoch": 0.49015317286652077,
221
+ "grad_norm": 0.77734375,
222
+ "learning_rate": 3.4258783977321615e-05,
223
+ "loss": 0.28665401935577395,
224
+ "step": 280
225
+ },
226
+ {
227
+ "epoch": 0.5006564551422319,
228
+ "eval_text_loss": 1.2351676225662231,
229
+ "eval_text_model_preparation_time": 0.0138,
230
+ "eval_text_runtime": 5.5155,
231
+ "eval_text_samples_per_second": 10.878,
232
+ "eval_text_steps_per_second": 10.878,
233
+ "step": 286
234
+ },
235
+ {
236
+ "epoch": 0.5006564551422319,
237
+ "eval_audio_loss": 0.7075363397598267,
238
+ "eval_audio_model_preparation_time": 0.0138,
239
+ "eval_audio_runtime": 24.8383,
240
+ "eval_audio_samples_per_second": 5.355,
241
+ "eval_audio_steps_per_second": 5.355,
242
+ "step": 286
243
+ },
244
+ {
245
+ "epoch": 0.5076586433260394,
246
+ "grad_norm": 0.91015625,
247
+ "learning_rate": 3.2693767259349574e-05,
248
+ "loss": 0.30377969741821287,
249
+ "step": 290
250
+ },
251
+ {
252
+ "epoch": 0.5251641137855579,
253
+ "grad_norm": 0.72265625,
254
+ "learning_rate": 3.109467879021793e-05,
255
+ "loss": 0.2989386320114136,
256
+ "step": 300
257
+ },
258
+ {
259
+ "epoch": 0.5426695842450766,
260
+ "grad_norm": 0.765625,
261
+ "learning_rate": 2.9468600113020715e-05,
262
+ "loss": 0.2834346771240234,
263
+ "step": 310
264
+ },
265
+ {
266
+ "epoch": 0.5601750547045952,
267
+ "grad_norm": 0.80859375,
268
+ "learning_rate": 2.7822732296647548e-05,
269
+ "loss": 0.3039692401885986,
270
+ "step": 320
271
+ },
272
+ {
273
+ "epoch": 0.5776805251641138,
274
+ "grad_norm": 0.8046875,
275
+ "learning_rate": 2.6164364045941042e-05,
276
+ "loss": 0.3042268753051758,
277
+ "step": 330
278
+ },
279
+ {
280
+ "epoch": 0.5951859956236324,
281
+ "grad_norm": 0.70703125,
282
+ "learning_rate": 2.450083942375939e-05,
283
+ "loss": 0.2903634548187256,
284
+ "step": 340
285
+ },
286
+ {
287
+ "epoch": 0.612691466083151,
288
+ "grad_norm": 0.6328125,
289
+ "learning_rate": 2.2839525327886768e-05,
290
+ "loss": 0.2882160425186157,
291
+ "step": 350
292
+ },
293
+ {
294
+ "epoch": 0.6301969365426696,
295
+ "grad_norm": 0.98046875,
296
+ "learning_rate": 2.1187778866819505e-05,
297
+ "loss": 0.2965713024139404,
298
+ "step": 360
299
+ },
300
+ {
301
+ "epoch": 0.6477024070021882,
302
+ "grad_norm": 0.859375,
303
+ "learning_rate": 1.955291477890399e-05,
304
+ "loss": 0.2957930564880371,
305
+ "step": 370
306
+ },
307
+ {
308
+ "epoch": 0.6652078774617067,
309
+ "grad_norm": 0.83203125,
310
+ "learning_rate": 1.7942173039110305e-05,
311
+ "loss": 0.299970006942749,
312
+ "step": 380
313
+ },
314
+ {
315
+ "epoch": 0.6827133479212254,
316
+ "grad_norm": 0.70703125,
317
+ "learning_rate": 1.6362686796894435e-05,
318
+ "loss": 0.2794990062713623,
319
+ "step": 390
320
+ },
321
+ {
322
+ "epoch": 0.700218818380744,
323
+ "grad_norm": 0.48046875,
324
+ "learning_rate": 1.4821450787136037e-05,
325
+ "loss": 0.28992691040039065,
326
+ "step": 400
327
+ },
328
+ {
329
+ "epoch": 0.7177242888402626,
330
+ "grad_norm": 0.640625,
331
+ "learning_rate": 1.332529035404327e-05,
332
+ "loss": 0.28732025623321533,
333
+ "step": 410
334
+ },
335
+ {
336
+ "epoch": 0.7352297592997812,
337
+ "grad_norm": 0.828125,
338
+ "learning_rate": 1.1880831225202247e-05,
339
+ "loss": 0.2870940685272217,
340
+ "step": 420
341
+ },
342
+ {
343
+ "epoch": 0.750984682713348,
344
+ "eval_text_loss": 1.21077561378479,
345
+ "eval_text_model_preparation_time": 0.0138,
346
+ "eval_text_runtime": 5.0709,
347
+ "eval_text_samples_per_second": 11.832,
348
+ "eval_text_steps_per_second": 11.832,
349
+ "step": 429
350
+ },
351
+ {
352
+ "epoch": 0.750984682713348,
353
+ "eval_audio_loss": 0.698564350605011,
354
+ "eval_audio_model_preparation_time": 0.0138,
355
+ "eval_audio_runtime": 22.6597,
356
+ "eval_audio_samples_per_second": 5.869,
357
+ "eval_audio_steps_per_second": 5.869,
358
+ "step": 429
359
+ },
360
+ {
361
+ "epoch": 0.7527352297592997,
362
+ "grad_norm": 0.78125,
363
+ "learning_rate": 1.049447016962597e-05,
364
+ "loss": 0.29113962650299074,
365
+ "step": 430
366
+ },
367
+ {
368
+ "epoch": 0.7702407002188184,
369
+ "grad_norm": 0.63671875,
370
+ "learning_rate": 9.172346669743626e-06,
371
+ "loss": 0.27481784820556643,
372
+ "step": 440
373
+ },
374
+ {
375
+ "epoch": 0.787746170678337,
376
+ "grad_norm": 0.81640625,
377
+ "learning_rate": 7.920315732780126e-06,
378
+ "loss": 0.2930293560028076,
379
+ "step": 450
380
+ },
381
+ {
382
+ "epoch": 0.8052516411378556,
383
+ "grad_norm": 0.578125,
384
+ "learning_rate": 6.743921961930549e-06,
385
+ "loss": 0.28920702934265136,
386
+ "step": 460
387
+ },
388
+ {
389
+ "epoch": 0.8227571115973742,
390
+ "grad_norm": 0.71875,
391
+ "learning_rate": 5.648375002154879e-06,
392
+ "loss": 0.28770692348480226,
393
+ "step": 470
394
+ },
395
+ {
396
+ "epoch": 0.8402625820568927,
397
+ "grad_norm": 0.56640625,
398
+ "learning_rate": 4.6385264693311305e-06,
399
+ "loss": 0.2829106330871582,
400
+ "step": 480
401
+ },
402
+ {
403
+ "epoch": 0.8577680525164114,
404
+ "grad_norm": 0.7421875,
405
+ "learning_rate": 3.7188484649356562e-06,
406
+ "loss": 0.29122676849365237,
407
+ "step": 490
408
+ },
409
+ {
410
+ "epoch": 0.87527352297593,
411
+ "grad_norm": 0.8046875,
412
+ "learning_rate": 2.8934137713982454e-06,
413
+ "loss": 0.29016549587249757,
414
+ "step": 500
415
+ },
416
+ {
417
+ "epoch": 0.8927789934354485,
418
+ "grad_norm": 0.87890625,
419
+ "learning_rate": 2.1658778158365284e-06,
420
+ "loss": 0.29710874557495115,
421
+ "step": 510
422
+ },
423
+ {
424
+ "epoch": 0.9102844638949672,
425
+ "grad_norm": 1.0234375,
426
+ "learning_rate": 1.5394624820432079e-06,
427
+ "loss": 0.2932096004486084,
428
+ "step": 520
429
+ },
430
+ {
431
+ "epoch": 0.9277899343544858,
432
+ "grad_norm": 0.84375,
433
+ "learning_rate": 1.01694184241429e-06,
434
+ "loss": 0.28654632568359373,
435
+ "step": 530
436
+ },
437
+ {
438
+ "epoch": 0.9452954048140044,
439
+ "grad_norm": 0.57421875,
440
+ "learning_rate": 6.006298730045601e-07,
441
+ "loss": 0.2893019676208496,
442
+ "step": 540
443
+ },
444
+ {
445
+ "epoch": 0.962800875273523,
446
+ "grad_norm": 0.70703125,
447
+ "learning_rate": 2.923702061138206e-07,
448
+ "loss": 0.2885005235671997,
449
+ "step": 550
450
+ },
451
+ {
452
+ "epoch": 0.9803063457330415,
453
+ "grad_norm": 0.5546875,
454
+ "learning_rate": 9.352796578453172e-08,
455
+ "loss": 0.30120275020599363,
456
+ "step": 560
457
+ },
458
+ {
459
+ "epoch": 0.9978118161925602,
460
+ "grad_norm": 0.5078125,
461
+ "learning_rate": 4.983722367229993e-09,
462
+ "loss": 0.2859893083572388,
463
+ "step": 570
464
+ },
465
+ {
466
+ "epoch": 1.0,
467
+ "eval_text_loss": 1.2087676525115967,
468
+ "eval_text_model_preparation_time": 0.0138,
469
+ "eval_text_runtime": 5.4583,
470
+ "eval_text_samples_per_second": 10.992,
471
+ "eval_text_steps_per_second": 10.992,
472
+ "step": 572
473
+ },
474
+ {
475
+ "epoch": 1.0,
476
+ "eval_audio_loss": 0.6977604627609253,
477
+ "eval_audio_model_preparation_time": 0.0138,
478
+ "eval_audio_runtime": 22.5218,
479
+ "eval_audio_samples_per_second": 5.905,
480
+ "eval_audio_steps_per_second": 5.905,
481
+ "step": 572
482
+ }
483
+ ],
484
+ "logging_steps": 10,
485
+ "max_steps": 572,
486
+ "num_input_tokens_seen": 0,
487
+ "num_train_epochs": 1,
488
+ "save_steps": 12,
489
+ "stateful_callbacks": {
490
+ "TrainerControl": {
491
+ "args": {
492
+ "should_epoch_stop": false,
493
+ "should_evaluate": false,
494
+ "should_log": false,
495
+ "should_save": true,
496
+ "should_training_stop": true
497
+ },
498
+ "attributes": {}
499
+ }
500
+ },
501
+ "total_flos": 6.96093256353648e+16,
502
+ "train_batch_size": 4,
503
+ "trial_name": null,
504
+ "trial_params": null
505
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6906c2dd0f60d842f35c319522ede5e9054fb9019c882a25267a2d08f135ce09
3
+ size 5905