fastpixels commited on
Commit
eb35b5d
·
verified ·
1 Parent(s): 084107d

gemma4-e4b-odia8k-sft/step-800-bf16

Browse files
.gitattributes CHANGED
@@ -41,3 +41,4 @@ gemma4-e4b-sft/checkpoint-3000/tokenizer.json filter=lfs diff=lfs merge=lfs -tex
41
  gemma4-e4b-sft/checkpoint-4272/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  gemma4-e4b-odia8k/warmup/tokenizer.json filter=lfs diff=lfs merge=lfs -text
43
  gemma4-e4b-odia8k/warmup-v2/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
41
  gemma4-e4b-sft/checkpoint-4272/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  gemma4-e4b-odia8k/warmup/tokenizer.json filter=lfs diff=lfs merge=lfs -text
43
  gemma4-e4b-odia8k/warmup-v2/tokenizer.json filter=lfs diff=lfs merge=lfs -text
44
+ gemma4-e4b-odia8k-sft/step-800-bf16/tokenizer.json filter=lfs diff=lfs merge=lfs -text
gemma4-e4b-odia8k-sft/step-800-bf16/chat_template.jinja ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#
2
+ Template: Google Gemma 4 Canonical Chat Template
3
+ Author: Google Gemma Engineering Team
4
+ Published: 2026-07-09
5
+ Context: Fixed tool-calling loops, turn closures, and thinking content-ordering.
6
+ #}
7
+ {%- macro format_parameters(properties, required, filter_keys=false) -%}
8
+ {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}
9
+ {%- set ns = namespace(found_first=false) -%}
10
+ {%- for key, value in properties | dictsort -%}
11
+ {%- set add_comma = false -%}
12
+ {%- if not filter_keys or key not in standard_keys -%}
13
+ {%- if ns.found_first %},{% endif -%}
14
+ {%- set ns.found_first = true -%}
15
+ {{ key }}:{
16
+ {%- if value['description'] -%}
17
+ description:<|"|>{{ value['description'] }}<|"|>
18
+ {%- set add_comma = true -%}
19
+ {%- endif -%}
20
+ {%- if value['type'] | upper == 'STRING' -%}
21
+ {%- if value['enum'] -%}
22
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
23
+ enum:{{ format_argument(value['enum']) }}
24
+ {%- endif -%}
25
+ {%- elif value['type'] | upper == 'ARRAY' -%}
26
+ {%- if value['items'] is mapping and value['items'] -%}
27
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
28
+ items:{
29
+ {%- set ns_items = namespace(found_first=false) -%}
30
+ {%- for item_key, item_value in value['items'] | dictsort -%}
31
+ {%- if item_value is not none -%}
32
+ {%- if ns_items.found_first %},{% endif -%}
33
+ {%- set ns_items.found_first = true -%}
34
+ {%- if item_key == 'properties' -%}
35
+ properties:{
36
+ {%- if item_value is mapping -%}
37
+ {{- format_parameters(item_value, value['items']['required'] | default([])) -}}
38
+ {%- endif -%}
39
+ }
40
+ {%- elif item_key == 'required' -%}
41
+ required:[
42
+ {%- for req_item in item_value -%}
43
+ <|"|>{{- req_item -}}<|"|>
44
+ {%- if not loop.last %},{% endif -%}
45
+ {%- endfor -%}
46
+ ]
47
+ {%- elif item_key == 'type' -%}
48
+ {%- if item_value is string -%}
49
+ type:{{ format_argument(item_value | upper) }}
50
+ {%- else -%}
51
+ type:{{ format_argument(item_value | map('upper') | list) }}
52
+ {%- endif -%}
53
+ {%- else -%}
54
+ {{ item_key }}:{{ format_argument(item_value) }}
55
+ {%- endif -%}
56
+ {%- endif -%}
57
+ {%- endfor -%}
58
+ }
59
+ {%- endif -%}
60
+ {%- endif -%}
61
+ {%- if value['nullable'] %}
62
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
63
+ nullable:true
64
+ {%- endif -%}
65
+ {%- if value['type'] | upper == 'OBJECT' -%}
66
+ {%- if value['properties'] is defined and value['properties'] is mapping -%}
67
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
68
+ properties:{
69
+ {{- format_parameters(value['properties'], value['required'] | default([])) -}}
70
+ }
71
+ {%- elif value is mapping -%}
72
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
73
+ properties:{
74
+ {{- format_parameters(value, value['required'] | default([]), filter_keys=true) -}}
75
+ }
76
+ {%- endif -%}
77
+ {%- if value['required'] -%}
78
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
79
+ required:[
80
+ {%- for item in value['required'] | default([]) -%}
81
+ <|"|>{{- item -}}<|"|>
82
+ {%- if not loop.last %},{% endif -%}
83
+ {%- endfor -%}
84
+ ]
85
+ {%- endif -%}
86
+ {%- endif -%}
87
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
88
+ type:<|"|>{{ value['type'] | upper }}<|"|>}
89
+ {%- endif -%}
90
+ {%- endfor -%}
91
+ {%- endmacro -%}
92
+ {%- macro format_function_declaration(tool_data) -%}
93
+ declaration:{{- tool_data['function']['name'] -}}{description:<|"|>{{- tool_data['function']['description'] -}}<|"|>
94
+ {%- set params = tool_data['function']['parameters'] -%}
95
+ {%- if params -%}
96
+ ,parameters:{
97
+ {%- if params['properties'] -%}
98
+ properties:{ {{- format_parameters(params['properties'], params['required']) -}} },
99
+ {%- endif -%}
100
+ {%- if params['required'] -%}
101
+ required:[
102
+ {%- for item in params['required'] -%}
103
+ <|"|>{{- item -}}<|"|>
104
+ {{- ',' if not loop.last -}}
105
+ {%- endfor -%}
106
+ ],
107
+ {%- endif -%}
108
+ {%- if params['type'] -%}
109
+ type:<|"|>{{- params['type'] | upper -}}<|"|>}
110
+ {%- endif -%}
111
+ {%- endif -%}
112
+ {%- if 'response' in tool_data['function'] -%}
113
+ {%- set response_declaration = tool_data['function']['response'] -%}
114
+ ,response:{
115
+ {%- if response_declaration['description'] -%}
116
+ description:<|"|>{{- response_declaration['description'] -}}<|"|>,
117
+ {%- endif -%}
118
+ {%- if response_declaration['type'] | upper == 'OBJECT' -%}
119
+ type:<|"|>{{- response_declaration['type'] | upper -}}<|"|>}
120
+ {%- endif -%}
121
+ {%- endif -%}
122
+ }
123
+ {%- endmacro -%}
124
+ {%- macro format_argument(argument, escape_keys=True) -%}
125
+ {%- if argument is none -%}
126
+ {{- 'null' -}}
127
+ {%- elif argument is string -%}
128
+ {{- '<|"|>' + argument + '<|"|>' -}}
129
+ {%- elif argument is boolean -%}
130
+ {{- 'true' if argument else 'false' -}}
131
+ {%- elif argument is mapping -%}
132
+ {{- '{' -}}
133
+ {%- set ns = namespace(found_first=false) -%}
134
+ {%- for key, value in argument | dictsort -%}
135
+ {%- if ns.found_first %},{% endif -%}
136
+ {%- set ns.found_first = true -%}
137
+ {%- if escape_keys -%}
138
+ {{- '<|"|>' + key + '<|"|>' -}}
139
+ {%- else -%}
140
+ {{- key -}}
141
+ {%- endif -%}
142
+ :{{- format_argument(value, escape_keys=escape_keys) -}}
143
+ {%- endfor -%}
144
+ {{- '}' -}}
145
+ {%- elif argument is sequence -%}
146
+ {{- '[' -}}
147
+ {%- for item in argument -%}
148
+ {{- format_argument(item, escape_keys=escape_keys) -}}
149
+ {%- if not loop.last %},{% endif -%}
150
+ {%- endfor -%}
151
+ {{- ']' -}}
152
+ {%- else -%}
153
+ {{- argument -}}
154
+ {%- endif -%}
155
+ {%- endmacro -%}
156
+ {%- macro strip_thinking(text) -%}
157
+ {%- set ns = namespace(result='') -%}
158
+ {%- for part in text.split('<channel|>') -%}
159
+ {%- if '<|channel>' in part -%}
160
+ {%- set ns.result = ns.result + part.split('<|channel>')[0] -%}
161
+ {%- else -%}
162
+ {%- set ns.result = ns.result + part -%}
163
+ {%- endif -%}
164
+ {%- endfor -%}
165
+ {{- ns.result | trim -}}
166
+ {%- endmacro -%}
167
+
168
+ {%- macro format_tool_response_block(tool_name, response) -%}
169
+ {{- '<|tool_response>' -}}
170
+ {%- if response is mapping -%}
171
+ {{- 'response:' + tool_name + '{' -}}
172
+ {%- for key, value in response | dictsort -%}
173
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
174
+ {%- if not loop.last %},{% endif -%}
175
+ {%- endfor -%}
176
+ {{- '}' -}}
177
+ {%- else -%}
178
+ {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}
179
+ {%- endif -%}
180
+ {{- '<tool_response|>' -}}
181
+ {%- endmacro -%}
182
+
183
+ {#- ===== SETUP ===== -#}
184
+ {%- set ns = namespace(prev_message_type=None, prev_non_tool_role=None) -%}
185
+ {%- set loop_messages = messages -%}
186
+ {%- set enable_thinking = enable_thinking | default(false) -%}
187
+ {%- set preserve_thinking = preserve_thinking | default(false) -%}
188
+ {{- bos_token -}}
189
+ {#- Handle System/Tool Definitions Block -#}
190
+ {%- if enable_thinking or tools or (messages and 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 -%}
194
+ {{- '<|think|>\n' -}}
195
+ {%- set ns.prev_message_type = 'think' -%}
196
+ {%- endif -%}
197
+ {%- if messages and 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 using tracked state — O(1) instead of O(n) backward scan -#}
232
+ {%- set continue_same_model_turn = (role == 'model' and ns.prev_non_tool_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
+ {%- set thinking_gate = (loop.index0 > ns_turn.last_user_idx) or (preserve_thinking and message.get('tool_calls')) -%}
240
+ {%- if thinking_text and thinking_gate -%}
241
+ {{- '<|channel>thought\n' + thinking_text + '\n<channel|>' -}}
242
+ {%- endif -%}
243
+
244
+ {%- if message.get('tool_calls') -%}
245
+ {%- for tool_call in message.get('tool_calls') -%}
246
+ {%- set function = tool_call['function'] -%}
247
+ {{- '<|tool_call>call:' + function['name'] + '{' -}}
248
+ {%- if function['arguments'] is mapping -%}
249
+ {%- set ns_args = namespace(found_first=false) -%}
250
+ {%- for key, value in function['arguments'] | dictsort -%}
251
+ {%- if ns_args.found_first %},{% endif -%}
252
+ {%- set ns_args.found_first = true -%}
253
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
254
+ {%- endfor -%}
255
+ {%- elif function['arguments'] is none -%}
256
+ {%- else -%}
257
+ {{- raise_exception(
258
+ "chat_template: tool_calls[].function.arguments must be a "
259
+ "JSON object (mapping), not a string. Deserialize arguments "
260
+ "before passing to the template."
261
+ ) -}}
262
+ {%- endif -%}
263
+ {{- '}<tool_call|>' -}}
264
+ {%- endfor -%}
265
+ {%- set ns.prev_message_type = 'tool_call' -%}
266
+ {%- endif -%}
267
+
268
+ {%- set ns_tr_out = namespace(flag=false) -%}
269
+ {%- if message.get('tool_responses') -%}
270
+ {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}
271
+ {%- for tool_response in message.get('tool_responses') -%}
272
+ {{- format_tool_response_block(tool_response['name'] | default('unknown', true), tool_response['response']) -}}
273
+ {%- set ns_tr_out.flag = true -%}
274
+ {%- set ns.prev_message_type = 'tool_response' -%}
275
+ {%- endfor -%}
276
+ {%- elif message.get('tool_calls') -%}
277
+ {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}
278
+ {%- set ns_tool_scan = namespace(stopped=false) -%}
279
+ {%- for k in range(loop.index0 + 1, loop_messages | length) -%}
280
+ {%- if ns_tool_scan.stopped -%}
281
+ {%- elif loop_messages[k]['role'] != 'tool' -%}
282
+ {%- set ns_tool_scan.stopped = true -%}
283
+ {%- else -%}
284
+ {%- set follow = loop_messages[k] -%}
285
+ {#- Resolve tool_call_id to function name -#}
286
+ {%- set ns_tname = namespace(name=follow.get('name') or 'unknown') -%}
287
+ {%- for tc in message.get('tool_calls') -%}
288
+ {%- if tc.get('id') == follow.get('tool_call_id') -%}
289
+ {%- set ns_tname.name = tc['function']['name'] -%}
290
+ {%- endif -%}
291
+ {%- endfor -%}
292
+ {#- Handle content as string or content-parts array -#}
293
+ {%- set tool_body = follow.get('content') -%}
294
+ {%- if tool_body is string -%}
295
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
296
+ {%- elif tool_body is sequence and tool_body is not string -%}
297
+ {%- set ns_txt = namespace(s='') -%}
298
+ {%- for part in tool_body -%}
299
+ {%- if part.get('type') == 'text' -%}
300
+ {%- set ns_txt.s = ns_txt.s + (part.get('text') | default('')) -%}
301
+ {%- endif -%}
302
+ {%- endfor -%}
303
+ {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
304
+ {%- for part in tool_body -%}
305
+ {%- if part.get('type') in ['image', 'image_url'] -%}
306
+ {{- '<|image|>' -}}
307
+ {%- elif part.get('type') in ['audio', 'input_audio'] -%}
308
+ {{- '<|audio|>' -}}
309
+ {%- elif part.get('type') == 'video' -%}
310
+ {{- '<|video|>' -}}
311
+ {%- endif -%}
312
+ {%- endfor -%}
313
+ {%- else -%}
314
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
315
+ {%- endif -%}
316
+ {%- set ns_tr_out.flag = true -%}
317
+ {%- set ns.prev_message_type = 'tool_response' -%}
318
+ {%- endif -%}
319
+ {%- endfor -%}
320
+ {%- endif -%}
321
+
322
+ {%- set captured_content -%}
323
+ {%- if message.get('content') is string -%}
324
+ {%- if role == 'model' -%}
325
+ {{- strip_thinking(message['content']) -}}
326
+ {%- else -%}
327
+ {{- message['content'] | trim -}}
328
+ {%- endif -%}
329
+ {%- elif message.get('content') is sequence -%}
330
+ {%- for item in message['content'] -%}
331
+ {%- if item.get('type') == 'text' -%}
332
+ {%- if role == 'model' -%}
333
+ {{- strip_thinking(item['text']) -}}
334
+ {%- else -%}
335
+ {{- item['text'] | trim -}}
336
+ {%- endif -%}
337
+ {%- elif item.get('type') in ['image', 'image_url'] -%}
338
+ {{- '<|image|>' -}}
339
+ {%- elif item.get('type') in ['audio', 'input_audio'] -%}
340
+ {{- '<|audio|>' -}}
341
+ {%- elif item.get('type') == 'video' -%}
342
+ {{- '<|video|>' -}}
343
+ {%- endif -%}
344
+ {%- endfor -%}
345
+ {%- endif -%}
346
+ {%- endset -%}
347
+
348
+ {{- captured_content -}}
349
+ {%- set has_content = captured_content | trim | length > 0 -%}
350
+
351
+ {#- Forward-scan: find next non-tool message role for continuation detection -#}
352
+ {%- set next_nt = namespace(role=None, found=false) -%}
353
+ {%- for j in range(loop.index0 + 1, loop_messages | length) -%}
354
+ {%- if not next_nt.found -%}
355
+ {%- if loop_messages[j]['role'] != 'tool' -%}
356
+ {%- set next_nt.role = loop_messages[j]['role'] -%}
357
+ {%- set next_nt.found = true -%}
358
+ {%- endif -%}
359
+ {%- endif -%}
360
+ {%- endfor -%}
361
+
362
+ {%- set continues_into_next = (
363
+ role == 'model'
364
+ and next_nt.role == 'assistant'
365
+ and (not message.get('tool_calls') or ns_tr_out.flag)
366
+ ) -%}
367
+
368
+ {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
369
+ {{- '<|tool_response>' -}}
370
+ {%- elif continues_into_next -%}
371
+ {%- elif not (ns_tr_out.flag and not has_content and not next_nt.found) -%}
372
+ {{- '<turn|>\n' -}}
373
+ {%- endif -%}
374
+
375
+ {#- Track previous non-tool role for next iteration (avoids O(n) backward scan) -#}
376
+ {%- set ns.prev_non_tool_role = message['role'] -%}
377
+ {%- endif -%}
378
+ {%- endfor -%}
379
+
380
+ {%- if add_generation_prompt -%}
381
+ {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
382
+ {{- '<|turn>model\n' -}}
383
+ {%- elif ns.prev_message_type == 'tool_response' and enable_thinking -%}
384
+ {{- '<|channel>thought\n' -}}
385
+ {%- endif -%}
386
+ {%- endif -%}
gemma4-e4b-odia8k-sft/step-800-bf16/config.json ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma4ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "attention_k_eq_v": false,
8
+ "bos_token_id": 2,
9
+ "dtype": "float32",
10
+ "enable_moe_block": false,
11
+ "eos_token_id": 1,
12
+ "expert_intermediate_size": null,
13
+ "final_logit_softcapping": 30.0,
14
+ "head_dim": 256,
15
+ "hidden_activation": "gelu_pytorch_tanh",
16
+ "hidden_size": 2560,
17
+ "hidden_size_per_layer_input": 256,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 10240,
20
+ "layer_types": [
21
+ "sliding_attention",
22
+ "sliding_attention",
23
+ "sliding_attention",
24
+ "sliding_attention",
25
+ "sliding_attention",
26
+ "full_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "sliding_attention",
31
+ "sliding_attention",
32
+ "full_attention",
33
+ "sliding_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "full_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "full_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "full_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "full_attention",
57
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "sliding_attention",
61
+ "sliding_attention",
62
+ "full_attention"
63
+ ],
64
+ "max_position_embeddings": 131072,
65
+ "model_type": "gemma4_text",
66
+ "moe_intermediate_size": null,
67
+ "num_attention_heads": 8,
68
+ "num_experts": null,
69
+ "num_hidden_layers": 42,
70
+ "num_key_value_heads": 2,
71
+ "num_kv_shared_layers": 18,
72
+ "pad_token_id": 0,
73
+ "per_layer_config": {
74
+ "05": {
75
+ "head_dim": 512
76
+ },
77
+ "11": {
78
+ "head_dim": 512
79
+ },
80
+ "17": {
81
+ "head_dim": 512
82
+ },
83
+ "23": {
84
+ "head_dim": 512
85
+ },
86
+ "29": {
87
+ "head_dim": 512
88
+ },
89
+ "35": {
90
+ "head_dim": 512
91
+ },
92
+ "41": {
93
+ "head_dim": 512
94
+ }
95
+ },
96
+ "rms_norm_eps": 1e-06,
97
+ "rope_parameters": {
98
+ "full_attention": {
99
+ "partial_rotary_factor": 0.25,
100
+ "rope_theta": 1000000.0,
101
+ "rope_type": "proportional"
102
+ },
103
+ "sliding_attention": {
104
+ "rope_theta": 10000.0,
105
+ "rope_type": "default"
106
+ }
107
+ },
108
+ "sliding_window": 512,
109
+ "tie_word_embeddings": true,
110
+ "top_k_experts": null,
111
+ "transformers_version": "5.17.0",
112
+ "use_bidirectional_attention": null,
113
+ "use_cache": false,
114
+ "use_double_wide_mlp": false,
115
+ "vocab_size": 161407,
116
+ "vocab_size_per_layer_input": 161407
117
+ }
gemma4-e4b-odia8k-sft/step-800-bf16/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 1,
6
+ 17,
7
+ 10
8
+ ],
9
+ "pad_token_id": 0,
10
+ "temperature": 1.0,
11
+ "top_k": 64,
12
+ "top_p": 0.95,
13
+ "transformers_version": "5.17.0"
14
+ }
gemma4-e4b-odia8k-sft/step-800-bf16/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69b84727374656fe467b044aad158754ab3030632971ffb5d47dc06d59fcb8c6
3
+ size 13070486780
gemma4-e4b-odia8k-sft/step-800-bf16/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f891c4968a939cafec8a7d4b4652d01c0e43ae2e5f04cf39e2d7e8ea3670037b
3
+ size 22835663
gemma4-e4b-odia8k-sft/step-800-bf16/tokenizer_config.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<bos>",
4
+ "eoc_token": "<channel|>",
5
+ "eos_token": "<eos>",
6
+ "eot_token": "<turn|>",
7
+ "escape_token": "<|\"|>",
8
+ "etc_token": "<tool_call|>",
9
+ "etd_token": "<tool|>",
10
+ "etr_token": "<tool_response|>",
11
+ "is_local": true,
12
+ "local_files_only": false,
13
+ "mask_token": "<mask>",
14
+ "model_max_length": 1000000000000000019884624838656,
15
+ "model_specific_special_tokens": {
16
+ "eoc_token": "<channel|>",
17
+ "eot_token": "<turn|>",
18
+ "escape_token": "<|\"|>",
19
+ "etc_token": "<tool_call|>",
20
+ "etd_token": "<tool|>",
21
+ "etr_token": "<tool_response|>",
22
+ "soc_token": "<|channel>",
23
+ "sot_token": "<|turn>",
24
+ "stc_token": "<|tool_call>",
25
+ "std_token": "<|tool>",
26
+ "str_token": "<|tool_response>",
27
+ "think_token": "<|think|>"
28
+ },
29
+ "pad_token": "<pad>",
30
+ "padding_side": "left",
31
+ "response_schema": {
32
+ "properties": {
33
+ "content": {
34
+ "type": "string"
35
+ },
36
+ "role": {
37
+ "const": "assistant"
38
+ },
39
+ "thinking": {
40
+ "type": "string"
41
+ },
42
+ "tool_calls": {
43
+ "items": {
44
+ "properties": {
45
+ "function": {
46
+ "properties": {
47
+ "arguments": {
48
+ "additionalProperties": {},
49
+ "type": "object",
50
+ "x-parser": "gemma4-tool-call"
51
+ },
52
+ "name": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "type": "object",
57
+ "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})"
58
+ },
59
+ "type": {
60
+ "const": "function"
61
+ }
62
+ },
63
+ "type": "object"
64
+ },
65
+ "type": "array",
66
+ "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>"
67
+ }
68
+ },
69
+ "type": "object",
70
+ "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
71
+ },
72
+ "response_template": {
73
+ "defaults": {
74
+ "role": "assistant"
75
+ },
76
+ "fields": {
77
+ "content": {
78
+ "close": [
79
+ "<turn|>",
80
+ "<|tool_response>",
81
+ "<eos>"
82
+ ],
83
+ "content": "text"
84
+ },
85
+ "thinking": {
86
+ "close": "<channel|>",
87
+ "content": "text",
88
+ "open": "<|channel>thought\n"
89
+ },
90
+ "tool_calls": {
91
+ "close": "<tool_call|>",
92
+ "content": "json",
93
+ "content_args": {
94
+ "string_delims": [
95
+ [
96
+ "<|\"|>",
97
+ "<|\"|>"
98
+ ]
99
+ ],
100
+ "unquoted_keys": true
101
+ },
102
+ "open_pattern": "<\\|tool_call>call:(?P<name>\\w+)",
103
+ "repeats": true,
104
+ "transform": {
105
+ "function": {
106
+ "arguments": "{content}",
107
+ "name": "{name}"
108
+ },
109
+ "type": "function"
110
+ }
111
+ }
112
+ },
113
+ "start_anchor": [
114
+ "<|turn>model\n",
115
+ "<tool_response|>"
116
+ ]
117
+ },
118
+ "soc_token": "<|channel>",
119
+ "sot_token": "<|turn>",
120
+ "stc_token": "<|tool_call>",
121
+ "std_token": "<|tool>",
122
+ "str_token": "<|tool_response>",
123
+ "think_token": "<|think|>",
124
+ "tokenizer_class": "GemmaTokenizer",
125
+ "unk_token": "<unk>"
126
+ }
gemma4-e4b-odia8k-sft/step-800-bf16/trainer_state.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"step": 800, "epoch": 0.3907203907203907, "log_history": [{"eval_sft_loss": 0.8725103139877319, "eval_sft_runtime": 31.4838, "eval_sft_samples_per_second": 49.359, "eval_sft_steps_per_second": 6.194, "eval_entropy": 0.8000412881374359, "eval_num_tokens": 0.0, "eval_mean_token_accuracy": 0.8057849238213804, "epoch": 0, "step": 0}, {"loss": 0.9166790843009949, "grad_norm": 6.180274963378906, "learning_rate": 0.0, "padded_tokens": 16384, "real_tokens": 16384, "pad_ratio": 1.0, "tokens_per_sec": 3999, "mfu": 0.1064, "entropy": 0.907211184501648, "num_tokens": 16384.0, "mean_token_accuracy": 0.784228652715683, "epoch": 0.0004884004884004884, "step": 1}, {"loss": 1.0300446616278753, "grad_norm": 6.055756092071533, "learning_rate": 1.4516129032258066e-06, "padded_tokens": 163791, "real_tokens": 163791, "pad_ratio": 1.0, "tokens_per_sec": 4579, "mfu": 0.1219, "entropy": 0.9543175283405516, "num_tokens": 163791.0, "mean_token_accuracy": 0.7707291907734342, "epoch": 0.004884004884004884, "step": 10}, {"loss": 1.0082554817199707, "grad_norm": 6.844918727874756, "learning_rate": 3.0645161290322584e-06, "padded_tokens": 327499, "real_tokens": 327499, "pad_ratio": 1.0, "tokens_per_sec": 4613, "mfu": 0.1228, "entropy": 1.0132723167538642, "num_tokens": 327499.0, "mean_token_accuracy": 0.7696516260504722, "epoch": 0.009768009768009768, "step": 20}, {"loss": 0.847509765625, "grad_norm": 7.4658284187316895, "learning_rate": 4.67741935483871e-06, "padded_tokens": 488875, "real_tokens": 488875, "pad_ratio": 1.0, "tokens_per_sec": 4590, "mfu": 0.1222, "entropy": 0.8202234834432602, "num_tokens": 488875.0, "mean_token_accuracy": 0.7938304170966148, "epoch": 0.014652014652014652, "step": 30}, {"loss": 0.8819092750549317, "grad_norm": 4.292705059051514, "learning_rate": 6.290322580645162e-06, "padded_tokens": 652606, "real_tokens": 652606, "pad_ratio": 1.0, "tokens_per_sec": 4636, "mfu": 0.1234, "entropy": 0.8659455761313438, "num_tokens": 652606.0, "mean_token_accuracy": 0.7904599353671073, "epoch": 0.019536019536019536, "step": 40}, {"loss": 0.830943489074707, "grad_norm": 4.519834518432617, "learning_rate": 7.903225806451613e-06, "padded_tokens": 816280, "real_tokens": 816280, "pad_ratio": 1.0, "tokens_per_sec": 4575, "mfu": 0.1217, "entropy": 0.8024719037115574, "num_tokens": 816280.0, "mean_token_accuracy": 0.7990727290511132, "epoch": 0.02442002442002442, "step": 50}, {"loss": 0.9408459663391113, "grad_norm": 10.839374542236328, "learning_rate": 9.516129032258065e-06, "padded_tokens": 974796, "real_tokens": 974796, "pad_ratio": 1.0, "tokens_per_sec": 4622, "mfu": 0.123, "entropy": 0.9375784993171692, "num_tokens": 974796.0, "mean_token_accuracy": 0.769383916258812, "epoch": 0.029304029304029304, "step": 60}, {"loss": 0.8366189956665039, "grad_norm": 5.091339588165283, "learning_rate": 9.999724123048889e-06, "padded_tokens": 1137309, "real_tokens": 1137309, "pad_ratio": 1.0, "tokens_per_sec": 4615, "mfu": 0.1228, "entropy": 0.8245442263782025, "num_tokens": 1137309.0, "mean_token_accuracy": 0.7960970371961593, "epoch": 0.03418803418803419, "step": 70}, {"loss": 0.8763234138488769, "grad_norm": 6.620410919189453, "learning_rate": 9.998372970431915e-06, "padded_tokens": 1301063, "real_tokens": 1301063, "pad_ratio": 1.0, "tokens_per_sec": 4697, "mfu": 0.125, "entropy": 0.8566777631640434, "num_tokens": 1301063.0, "mean_token_accuracy": 0.7919274553656578, "epoch": 0.03907203907203907, "step": 80}, {"loss": 0.8516076087951661, "grad_norm": 3.9351017475128174, "learning_rate": 9.995896208543021e-06, "padded_tokens": 1461418, "real_tokens": 1461418, "pad_ratio": 1.0, "tokens_per_sec": 4562, "mfu": 0.1214, "entropy": 0.8303296439349651, "num_tokens": 1461418.0, "mean_token_accuracy": 0.7961921468377113, "epoch": 0.04395604395604396, "step": 90}, {"loss": 0.7481894969940186, "grad_norm": 18.0093936920166, "learning_rate": 9.992294457132099e-06, "padded_tokens": 1622427, "real_tokens": 1622427, "pad_ratio": 1.0, "tokens_per_sec": 4574, "mfu": 0.1217, "entropy": 0.7623457759618759, "num_tokens": 1622427.0, "mean_token_accuracy": 0.8037400856614113, "epoch": 0.04884004884004884, "step": 100}, {"loss": 0.7629738807678222, "grad_norm": 4.2351975440979, "learning_rate": 9.987568617450513e-06, "padded_tokens": 1786192, "real_tokens": 1786192, "pad_ratio": 1.0, "tokens_per_sec": 4673, "mfu": 0.1244, "entropy": 0.7575705341994763, "num_tokens": 1786192.0, "mean_token_accuracy": 0.8051830351352691, "epoch": 0.05372405372405373, "step": 110}, {"loss": 0.7552663326263428, "grad_norm": 4.743204593658447, "learning_rate": 9.98171987202559e-06, "padded_tokens": 1949898, "real_tokens": 1949898, "pad_ratio": 1.0, "tokens_per_sec": 4677, "mfu": 0.1245, "entropy": 0.7665151834487915, "num_tokens": 1949898.0, "mean_token_accuracy": 0.8020474046468735, "epoch": 0.05860805860805861, "step": 120}, {"loss": 0.7985593795776367, "grad_norm": 3.1051957607269287, "learning_rate": 9.974749684364717e-06, "padded_tokens": 2113634, "real_tokens": 2113634, "pad_ratio": 1.0, "tokens_per_sec": 4674, "mfu": 0.1244, "entropy": 0.787737463414669, "num_tokens": 2113634.0, "mean_token_accuracy": 0.7990755841135979, "epoch": 0.06349206349206349, "step": 130}, {"loss": 0.7226286888122558, "grad_norm": 4.946564674377441, "learning_rate": 9.96665979858914e-06, "padded_tokens": 2277329, "real_tokens": 2277329, "pad_ratio": 1.0, "tokens_per_sec": 4690, "mfu": 0.1248, "entropy": 0.7353189773857594, "num_tokens": 2277329.0, "mean_token_accuracy": 0.8105007097125053, "epoch": 0.06837606837606838, "step": 140}, {"loss": 0.7685462474822998, "grad_norm": 3.6530373096466064, "learning_rate": 9.957452238997533e-06, "padded_tokens": 2439196, "real_tokens": 2439196, "pad_ratio": 1.0, "tokens_per_sec": 4606, "mfu": 0.1226, "entropy": 0.7713561035692692, "num_tokens": 2439196.0, "mean_token_accuracy": 0.802637341618538, "epoch": 0.07326007326007326, "step": 150}, {"loss": 0.721370267868042, "grad_norm": 3.4713127613067627, "learning_rate": 9.947129309559466e-06, "padded_tokens": 2600412, "real_tokens": 2600412, "pad_ratio": 1.0, "tokens_per_sec": 4636, "mfu": 0.1234, "entropy": 0.7158238537609577, "num_tokens": 2600412.0, "mean_token_accuracy": 0.8083542183041572, "epoch": 0.07814407814407814, "step": 160}, {"loss": 0.7015998363494873, "grad_norm": 3.831228733062744, "learning_rate": 9.935693593338898e-06, "padded_tokens": 2760489, "real_tokens": 2760489, "pad_ratio": 1.0, "tokens_per_sec": 4679, "mfu": 0.1245, "entropy": 0.7128293827176094, "num_tokens": 2760489.0, "mean_token_accuracy": 0.8086942970752716, "epoch": 0.08302808302808302, "step": 170}, {"loss": 0.7088464736938477, "grad_norm": 3.1233787536621094, "learning_rate": 9.923147951847821e-06, "padded_tokens": 2919786, "real_tokens": 2919786, "pad_ratio": 1.0, "tokens_per_sec": 4568, "mfu": 0.1216, "entropy": 0.7418126873672009, "num_tokens": 2919786.0, "mean_token_accuracy": 0.807001693546772, "epoch": 0.08791208791208792, "step": 180}, {"loss": 0.7075233459472656, "grad_norm": 3.62237286567688, "learning_rate": 9.909495524330245e-06, "padded_tokens": 3083598, "real_tokens": 3083598, "pad_ratio": 1.0, "tokens_per_sec": 4680, "mfu": 0.1246, "entropy": 0.6956375062465667, "num_tokens": 3083598.0, "mean_token_accuracy": 0.8109288826584816, "epoch": 0.0927960927960928, "step": 190}, {"loss": 0.752910041809082, "grad_norm": 2.8915576934814453, "learning_rate": 9.894739726976664e-06, "padded_tokens": 3247296, "real_tokens": 3247296, "pad_ratio": 1.0, "tokens_per_sec": 4656, "mfu": 0.1239, "entropy": 0.7588844999670983, "num_tokens": 3247296.0, "mean_token_accuracy": 0.8028429508209228, "epoch": 0.09768009768009768, "step": 200}, {"loss": 0.6615881443023681, "grad_norm": 3.9374582767486572, "learning_rate": 9.878884252069252e-06, "padded_tokens": 3411068, "real_tokens": 3411068, "pad_ratio": 1.0, "tokens_per_sec": 4664, "mfu": 0.1241, "entropy": 0.6475411631166935, "num_tokens": 3411068.0, "mean_token_accuracy": 0.8222755298018456, "epoch": 0.10256410256410256, "step": 210}, {"loss": 0.6269526958465577, "grad_norm": 2.905413866043091, "learning_rate": 9.861933067057947e-06, "padded_tokens": 3570883, "real_tokens": 3570883, "pad_ratio": 1.0, "tokens_per_sec": 4574, "mfu": 0.1217, "entropy": 0.6572307974100113, "num_tokens": 3570883.0, "mean_token_accuracy": 0.8206150755286217, "epoch": 0.10744810744810745, "step": 220}, {"loss": 0.6993788242340088, "grad_norm": 3.099003791809082, "learning_rate": 9.843890413567696e-06, "padded_tokens": 3734625, "real_tokens": 3734625, "pad_ratio": 1.0, "tokens_per_sec": 4643, "mfu": 0.1236, "entropy": 0.7123510889708996, "num_tokens": 3734625.0, "mean_token_accuracy": 0.8082438617944717, "epoch": 0.11233211233211234, "step": 230}, {"loss": 0.6573081970214844, "grad_norm": 3.235427141189575, "learning_rate": 9.824760806337092e-06, "padded_tokens": 3898369, "real_tokens": 3898369, "pad_ratio": 1.0, "tokens_per_sec": 4632, "mfu": 0.1233, "entropy": 0.6529365874826908, "num_tokens": 3898369.0, "mean_token_accuracy": 0.8208374693989754, "epoch": 0.11721611721611722, "step": 240}, {"loss": 0.6546825885772705, "grad_norm": 3.356523275375366, "learning_rate": 9.804549032088672e-06, "padded_tokens": 4062052, "real_tokens": 4062052, "pad_ratio": 1.0, "tokens_per_sec": 4656, "mfu": 0.1239, "entropy": 0.6679666399955749, "num_tokens": 4062052.0, "mean_token_accuracy": 0.8180171996355057, "epoch": 0.1221001221001221, "step": 250}, {"loss": 0.7024047374725342, "grad_norm": 3.602299928665161, "learning_rate": 9.78326014833115e-06, "padded_tokens": 4225766, "real_tokens": 4225766, "pad_ratio": 1.0, "tokens_per_sec": 4650, "mfu": 0.1237, "entropy": 0.7213010050356388, "num_tokens": 4225766.0, "mean_token_accuracy": 0.807885679602623, "epoch": 0.12698412698412698, "step": 260}, {"loss": 0.7629943370819092, "grad_norm": 3.4527945518493652, "learning_rate": 9.760899482093897e-06, "padded_tokens": 4389498, "real_tokens": 4389498, "pad_ratio": 1.0, "tokens_per_sec": 4680, "mfu": 0.1245, "entropy": 0.7667133763432503, "num_tokens": 4389498.0, "mean_token_accuracy": 0.7963322460651397, "epoch": 0.13186813186813187, "step": 270}, {"loss": 0.6417510509490967, "grad_norm": 4.2771711349487305, "learning_rate": 9.737472628593988e-06, "padded_tokens": 4551840, "real_tokens": 4551840, "pad_ratio": 1.0, "tokens_per_sec": 4682, "mfu": 0.1246, "entropy": 0.6432803243398666, "num_tokens": 4551840.0, "mean_token_accuracy": 0.8218334585428237, "epoch": 0.13675213675213677, "step": 280}, {"loss": 0.5923994541168213, "grad_norm": 3.5229737758636475, "learning_rate": 9.712985449836126e-06, "padded_tokens": 4715463, "real_tokens": 4715463, "pad_ratio": 1.0, "tokens_per_sec": 4688, "mfu": 0.1247, "entropy": 0.6043940663337708, "num_tokens": 4715463.0, "mean_token_accuracy": 0.8307585686445236, "epoch": 0.14163614163614163, "step": 290}, {"loss": 0.6646195888519287, "grad_norm": 3.641875982284546, "learning_rate": 9.687444073145818e-06, "padded_tokens": 4877387, "real_tokens": 4877387, "pad_ratio": 1.0, "tokens_per_sec": 4673, "mfu": 0.1244, "entropy": 0.6739590600132942, "num_tokens": 4877387.0, "mean_token_accuracy": 0.8156840965151787, "epoch": 0.14652014652014653, "step": 300}, {"loss": 0.6261611461639405, "grad_norm": 4.39824104309082, "learning_rate": 9.660854889636169e-06, "padded_tokens": 5040051, "real_tokens": 5040051, "pad_ratio": 1.0, "tokens_per_sec": 4658, "mfu": 0.124, "entropy": 0.6299219764769077, "num_tokens": 5040051.0, "mean_token_accuracy": 0.8235479891300201, "epoch": 0.1514041514041514, "step": 310}, {"loss": 0.6570065975189209, "grad_norm": 13.30288028717041, "learning_rate": 9.633224552608644e-06, "padded_tokens": 5201555, "real_tokens": 5201555, "pad_ratio": 1.0, "tokens_per_sec": 4658, "mfu": 0.1239, "entropy": 0.66151417568326, "num_tokens": 5201555.0, "mean_token_accuracy": 0.8184865832328796, "epoch": 0.1562881562881563, "step": 320}, {"loss": 0.5671521186828613, "grad_norm": 3.6645472049713135, "learning_rate": 9.604559975888252e-06, "padded_tokens": 5362984, "real_tokens": 5362984, "pad_ratio": 1.0, "tokens_per_sec": 4594, "mfu": 0.1223, "entropy": 0.5947534717619419, "num_tokens": 5362984.0, "mean_token_accuracy": 0.8349431365728378, "epoch": 0.16117216117216118, "step": 330}, {"loss": 0.6113387107849121, "grad_norm": 3.883409023284912, "learning_rate": 9.574868332093527e-06, "padded_tokens": 5518571, "real_tokens": 5518571, "pad_ratio": 1.0, "tokens_per_sec": 4592, "mfu": 0.1222, "entropy": 0.6451925709843636, "num_tokens": 5518571.0, "mean_token_accuracy": 0.8210435152053833, "epoch": 0.16605616605616605, "step": 340}, {"loss": 0.6932660102844238, "grad_norm": 3.9356448650360107, "learning_rate": 9.544157050841748e-06, "padded_tokens": 5679532, "real_tokens": 5679532, "pad_ratio": 1.0, "tokens_per_sec": 4656, "mfu": 0.1239, "entropy": 0.7324018262326717, "num_tokens": 5679532.0, "mean_token_accuracy": 0.8109753012657166, "epoch": 0.17094017094017094, "step": 350}, {"loss": 0.6577122211456299, "grad_norm": 4.00785493850708, "learning_rate": 9.512433816889863e-06, "padded_tokens": 5843249, "real_tokens": 5843249, "pad_ratio": 1.0, "tokens_per_sec": 4698, "mfu": 0.125, "entropy": 0.6644346199929714, "num_tokens": 5843249.0, "mean_token_accuracy": 0.8203870460391045, "epoch": 0.17582417582417584, "step": 360}, {"loss": 0.5888994216918946, "grad_norm": 3.355776309967041, "learning_rate": 9.479706568211556e-06, "padded_tokens": 6005042, "real_tokens": 6005042, "pad_ratio": 1.0, "tokens_per_sec": 4675, "mfu": 0.1244, "entropy": 0.593878085911274, "num_tokens": 6005042.0, "mean_token_accuracy": 0.8365008592605591, "epoch": 0.1807081807081807, "step": 370}, {"loss": 0.7303317070007325, "grad_norm": 2.9303042888641357, "learning_rate": 9.445983494010968e-06, "padded_tokens": 6168615, "real_tokens": 6168615, "pad_ratio": 1.0, "tokens_per_sec": 4663, "mfu": 0.1241, "entropy": 0.7287182964384555, "num_tokens": 6168615.0, "mean_token_accuracy": 0.8066214621067047, "epoch": 0.1855921855921856, "step": 380}, {"loss": 0.6534792423248291, "grad_norm": 3.1694533824920654, "learning_rate": 9.411273032673547e-06, "padded_tokens": 6332152, "real_tokens": 6332152, "pad_ratio": 1.0, "tokens_per_sec": 4655, "mfu": 0.1239, "entropy": 0.6594708636403084, "num_tokens": 6332152.0, "mean_token_accuracy": 0.8205794423818589, "epoch": 0.19047619047619047, "step": 390}, {"loss": 0.6406374931335449, "grad_norm": 2.885751962661743, "learning_rate": 9.375583869654533e-06, "padded_tokens": 6495832, "real_tokens": 6495832, "pad_ratio": 1.0, "tokens_per_sec": 4674, "mfu": 0.1244, "entropy": 0.6551136463880539, "num_tokens": 6495832.0, "mean_token_accuracy": 0.8215438410639763, "epoch": 0.19536019536019536, "step": 400}, {"loss": 0.8071249961853028, "grad_norm": 4.370692253112793, "learning_rate": 9.338924935305653e-06, "padded_tokens": 6657835, "real_tokens": 6657835, "pad_ratio": 1.0, "tokens_per_sec": 4645, "mfu": 0.1236, "entropy": 0.7954380415380001, "num_tokens": 6657835.0, "mean_token_accuracy": 0.7979190677404404, "epoch": 0.20024420024420025, "step": 410}, {"loss": 0.6451890945434571, "grad_norm": 3.4769346714019775, "learning_rate": 9.301305402640497e-06, "padded_tokens": 6820553, "real_tokens": 6820553, "pad_ratio": 1.0, "tokens_per_sec": 4704, "mfu": 0.1252, "entropy": 0.6543322511017322, "num_tokens": 6820553.0, "mean_token_accuracy": 0.8259319975972176, "epoch": 0.20512820512820512, "step": 420}, {"loss": 0.7163309097290039, "grad_norm": 3.9925377368927, "learning_rate": 9.262734685039204e-06, "padded_tokens": 6984080, "real_tokens": 6984080, "pad_ratio": 1.0, "tokens_per_sec": 4704, "mfu": 0.1252, "entropy": 0.7107013992965221, "num_tokens": 6984080.0, "mean_token_accuracy": 0.8089245140552521, "epoch": 0.21001221001221002, "step": 430}, {"loss": 0.6212490558624267, "grad_norm": 4.2436370849609375, "learning_rate": 9.223222433892985e-06, "padded_tokens": 7143826, "real_tokens": 7143826, "pad_ratio": 1.0, "tokens_per_sec": 4635, "mfu": 0.1234, "entropy": 0.6681630335748195, "num_tokens": 7143826.0, "mean_token_accuracy": 0.821677677333355, "epoch": 0.2148962148962149, "step": 440}, {"loss": 0.6437687873840332, "grad_norm": 3.550196886062622, "learning_rate": 9.182778536189099e-06, "padded_tokens": 7307525, "real_tokens": 7307525, "pad_ratio": 1.0, "tokens_per_sec": 4692, "mfu": 0.1249, "entropy": 0.6335056573152542, "num_tokens": 7307525.0, "mean_token_accuracy": 0.8239563822746276, "epoch": 0.21978021978021978, "step": 450}, {"loss": 0.7123647689819336, "grad_norm": 5.130570411682129, "learning_rate": 9.141413112036873e-06, "padded_tokens": 7469365, "real_tokens": 7469365, "pad_ratio": 1.0, "tokens_per_sec": 4655, "mfu": 0.1239, "entropy": 0.7359176993370056, "num_tokens": 7469365.0, "mean_token_accuracy": 0.8122776925563813, "epoch": 0.22466422466422467, "step": 460}, {"loss": 0.6472006797790527, "grad_norm": 4.005089282989502, "learning_rate": 9.099136512135384e-06, "padded_tokens": 7629978, "real_tokens": 7629978, "pad_ratio": 1.0, "tokens_per_sec": 4624, "mfu": 0.1231, "entropy": 0.6620700307190418, "num_tokens": 7629978.0, "mean_token_accuracy": 0.8225894585251808, "epoch": 0.22954822954822954, "step": 470}, {"loss": 0.6563704967498779, "grad_norm": 3.481660842895508, "learning_rate": 9.055959315183454e-06, "padded_tokens": 7793651, "real_tokens": 7793651, "pad_ratio": 1.0, "tokens_per_sec": 4670, "mfu": 0.1243, "entropy": 0.6633002400398255, "num_tokens": 7793651.0, "mean_token_accuracy": 0.8234314531087875, "epoch": 0.23443223443223443, "step": 480}, {"loss": 0.6544801712036132, "grad_norm": 3.909770965576172, "learning_rate": 9.011892325232578e-06, "padded_tokens": 7957354, "real_tokens": 7957354, "pad_ratio": 1.0, "tokens_per_sec": 4670, "mfu": 0.1243, "entropy": 0.6508172109723092, "num_tokens": 7957354.0, "mean_token_accuracy": 0.8246287748217582, "epoch": 0.23931623931623933, "step": 490}, {"loss": 0.6520584106445313, "grad_norm": 3.169631004333496, "learning_rate": 8.966946568983479e-06, "padded_tokens": 8120978, "real_tokens": 8120978, "pad_ratio": 1.0, "tokens_per_sec": 4646, "mfu": 0.1236, "entropy": 0.679977161437273, "num_tokens": 8120978.0, "mean_token_accuracy": 0.821967813372612, "epoch": 0.2442002442002442, "step": 500}, {"eval_sft_loss": 0.7248380780220032, "eval_sft_runtime": 21.8997, "eval_sft_samples_per_second": 70.96, "eval_sft_steps_per_second": 8.904, "eval_entropy": 0.574930835015995, "eval_num_tokens": 8120978.0, "eval_mean_token_accuracy": 0.8304713306967745, "epoch": 0.2442002442002442, "step": 500}, {"loss": 0.727435302734375, "grad_norm": 4.70125150680542, "learning_rate": 8.921133293026934e-06, "padded_tokens": 8277234, "real_tokens": 8277234, "pad_ratio": 1.0, "tokens_per_sec": 12577, "mfu": 0.3347, "entropy": 0.7520171493291855, "num_tokens": 8277234.0, "mean_token_accuracy": 0.8097755521535873, "epoch": 0.2490842490842491, "step": 510}, {"loss": 0.6937822818756103, "grad_norm": 3.9462060928344727, "learning_rate": 8.87446396102959e-06, "padded_tokens": 8439777, "real_tokens": 8439777, "pad_ratio": 1.0, "tokens_per_sec": 4640, "mfu": 0.1235, "entropy": 0.6893045477569103, "num_tokens": 8439777.0, "mean_token_accuracy": 0.817629761993885, "epoch": 0.25396825396825395, "step": 520}, {"loss": 0.6624418258666992, "grad_norm": 3.4985203742980957, "learning_rate": 8.826950250865464e-06, "padded_tokens": 8600992, "real_tokens": 8600992, "pad_ratio": 1.0, "tokens_per_sec": 4644, "mfu": 0.1236, "entropy": 0.6704959169030189, "num_tokens": 8600992.0, "mean_token_accuracy": 0.8251426666975021, "epoch": 0.2588522588522589, "step": 530}, {"loss": 0.7216361045837403, "grad_norm": 4.304588794708252, "learning_rate": 8.778604051693821e-06, "padded_tokens": 8764277, "real_tokens": 8764277, "pad_ratio": 1.0, "tokens_per_sec": 4675, "mfu": 0.1244, "entropy": 0.7397279486060142, "num_tokens": 8764277.0, "mean_token_accuracy": 0.8149169027805329, "epoch": 0.26373626373626374, "step": 540}, {"loss": 0.7096574306488037, "grad_norm": 2.822355270385742, "learning_rate": 8.72943746098422e-06, "padded_tokens": 8925256, "real_tokens": 8925256, "pad_ratio": 1.0, "tokens_per_sec": 4596, "mfu": 0.1223, "entropy": 0.7226120330393314, "num_tokens": 8925256.0, "mean_token_accuracy": 0.8170015409588813, "epoch": 0.2686202686202686, "step": 550}, {"loss": 0.760306453704834, "grad_norm": 4.395480632781982, "learning_rate": 8.679462781489392e-06, "padded_tokens": 9087052, "real_tokens": 9087052, "pad_ratio": 1.0, "tokens_per_sec": 4685, "mfu": 0.1247, "entropy": 0.7532184183597564, "num_tokens": 9087052.0, "mean_token_accuracy": 0.8069549798965454, "epoch": 0.27350427350427353, "step": 560}, {"loss": 0.739990520477295, "grad_norm": 3.8643014430999756, "learning_rate": 8.628692518166792e-06, "padded_tokens": 9242509, "real_tokens": 9242509, "pad_ratio": 1.0, "tokens_per_sec": 4566, "mfu": 0.1215, "entropy": 0.7645664907991886, "num_tokens": 9242509.0, "mean_token_accuracy": 0.8115659862756729, "epoch": 0.2783882783882784, "step": 570}, {"loss": 0.6930558681488037, "grad_norm": 3.1767678260803223, "learning_rate": 8.577139375049528e-06, "padded_tokens": 9406180, "real_tokens": 9406180, "pad_ratio": 1.0, "tokens_per_sec": 4687, "mfu": 0.1247, "entropy": 0.7190431781113148, "num_tokens": 9406180.0, "mean_token_accuracy": 0.8181145042181015, "epoch": 0.28327228327228327, "step": 580}, {"loss": 0.7542586326599121, "grad_norm": 4.147907733917236, "learning_rate": 8.524816252067473e-06, "padded_tokens": 9569910, "real_tokens": 9569910, "pad_ratio": 1.0, "tokens_per_sec": 4658, "mfu": 0.124, "entropy": 0.7348876148462296, "num_tokens": 9569910.0, "mean_token_accuracy": 0.8123106166720391, "epoch": 0.28815628815628813, "step": 590}, {"loss": 0.8089179039001465, "grad_norm": 3.067108154296875, "learning_rate": 8.471736241819388e-06, "padded_tokens": 9731336, "real_tokens": 9731336, "pad_ratio": 1.0, "tokens_per_sec": 4698, "mfu": 0.125, "entropy": 0.7945016272366047, "num_tokens": 9731336.0, "mean_token_accuracy": 0.803807869553566, "epoch": 0.29304029304029305, "step": 600}, {"loss": 0.8160871505737305, "grad_norm": 5.330318450927734, "learning_rate": 8.417912626296802e-06, "padded_tokens": 9895076, "real_tokens": 9895076, "pad_ratio": 1.0, "tokens_per_sec": 4699, "mfu": 0.1251, "entropy": 0.8077732779085636, "num_tokens": 9895076.0, "mean_token_accuracy": 0.8074929356575012, "epoch": 0.2979242979242979, "step": 610}, {"loss": 0.7779770851135254, "grad_norm": 4.3128533363342285, "learning_rate": 8.363358873560519e-06, "padded_tokens": 10058598, "real_tokens": 10058598, "pad_ratio": 1.0, "tokens_per_sec": 4634, "mfu": 0.1233, "entropy": 0.7563504435122013, "num_tokens": 10058598.0, "mean_token_accuracy": 0.8126975119113922, "epoch": 0.3028083028083028, "step": 620}, {"loss": 0.7383967399597168, "grad_norm": 4.023048400878906, "learning_rate": 8.308088634370555e-06, "padded_tokens": 10219484, "real_tokens": 10219484, "pad_ratio": 1.0, "tokens_per_sec": 4635, "mfu": 0.1233, "entropy": 0.7442464418709278, "num_tokens": 10219484.0, "mean_token_accuracy": 0.8139302998781204, "epoch": 0.3076923076923077, "step": 630}, {"loss": 0.789900827407837, "grad_norm": 3.1395456790924072, "learning_rate": 8.252115738770378e-06, "padded_tokens": 10383135, "real_tokens": 10383135, "pad_ratio": 1.0, "tokens_per_sec": 4668, "mfu": 0.1242, "entropy": 0.777092257887125, "num_tokens": 10383135.0, "mean_token_accuracy": 0.811117199063301, "epoch": 0.3125763125763126, "step": 640}, {"loss": 0.8453151702880859, "grad_norm": 4.099407196044922, "learning_rate": 8.195454192626255e-06, "padded_tokens": 10543218, "real_tokens": 10543218, "pad_ratio": 1.0, "tokens_per_sec": 4630, "mfu": 0.1232, "entropy": 0.8601422473788262, "num_tokens": 10543218.0, "mean_token_accuracy": 0.7903747275471688, "epoch": 0.31746031746031744, "step": 650}, {"loss": 0.71726393699646, "grad_norm": 2.695868968963623, "learning_rate": 8.13811817412264e-06, "padded_tokens": 10703834, "real_tokens": 10703834, "pad_ratio": 1.0, "tokens_per_sec": 4694, "mfu": 0.1249, "entropy": 0.7290932253003121, "num_tokens": 10703834.0, "mean_token_accuracy": 0.8187746480107307, "epoch": 0.32234432234432236, "step": 660}, {"loss": 0.772478723526001, "grad_norm": 2.946150779724121, "learning_rate": 8.08012203021441e-06, "padded_tokens": 10867588, "real_tokens": 10867588, "pad_ratio": 1.0, "tokens_per_sec": 4660, "mfu": 0.124, "entropy": 0.7647079937160015, "num_tokens": 10867588.0, "mean_token_accuracy": 0.8088037326931954, "epoch": 0.32722832722832723, "step": 670}, {"loss": 0.7808233261108398, "grad_norm": 2.6063427925109863, "learning_rate": 8.0214802730369e-06, "padded_tokens": 11031328, "real_tokens": 11031328, "pad_ratio": 1.0, "tokens_per_sec": 4653, "mfu": 0.1238, "entropy": 0.7707127839326858, "num_tokens": 11031328.0, "mean_token_accuracy": 0.808801707625389, "epoch": 0.3321123321123321, "step": 680}, {"loss": 0.835174560546875, "grad_norm": 3.1612846851348877, "learning_rate": 7.962207576274577e-06, "padded_tokens": 11193530, "real_tokens": 11193530, "pad_ratio": 1.0, "tokens_per_sec": 4644, "mfu": 0.1236, "entropy": 0.8287145465612411, "num_tokens": 11193530.0, "mean_token_accuracy": 0.8004722639918327, "epoch": 0.336996336996337, "step": 690}, {"loss": 0.6832539558410644, "grad_norm": 3.216346263885498, "learning_rate": 7.902318771489321e-06, "padded_tokens": 11357245, "real_tokens": 11357245, "pad_ratio": 1.0, "tokens_per_sec": 4666, "mfu": 0.1242, "entropy": 0.6850744426250458, "num_tokens": 11357245.0, "mean_token_accuracy": 0.8271145477890969, "epoch": 0.3418803418803419, "step": 700}, {"loss": 0.75770583152771, "grad_norm": 3.247758626937866, "learning_rate": 7.841828844409166e-06, "padded_tokens": 11520993, "real_tokens": 11520993, "pad_ratio": 1.0, "tokens_per_sec": 4674, "mfu": 0.1244, "entropy": 0.7674289546906948, "num_tokens": 11520993.0, "mean_token_accuracy": 0.8099973872303963, "epoch": 0.34676434676434675, "step": 710}, {"loss": 0.6699800491333008, "grad_norm": 5.431860446929932, "learning_rate": 7.780752931178498e-06, "padded_tokens": 11683158, "real_tokens": 11683158, "pad_ratio": 1.0, "tokens_per_sec": 4660, "mfu": 0.124, "entropy": 0.6731983177363873, "num_tokens": 11683158.0, "mean_token_accuracy": 0.8282152220606804, "epoch": 0.3516483516483517, "step": 720}, {"loss": 0.8536211013793945, "grad_norm": 3.00593900680542, "learning_rate": 7.719106314570596e-06, "padded_tokens": 11843680, "real_tokens": 11843680, "pad_ratio": 1.0, "tokens_per_sec": 4649, "mfu": 0.1237, "entropy": 0.8866537228226662, "num_tokens": 11843680.0, "mean_token_accuracy": 0.7909204736351967, "epoch": 0.35653235653235654, "step": 730}, {"loss": 0.8142979621887207, "grad_norm": 3.733219623565674, "learning_rate": 7.656904420163484e-06, "padded_tokens": 12000212, "real_tokens": 12000212, "pad_ratio": 1.0, "tokens_per_sec": 4606, "mfu": 0.1226, "entropy": 0.8073889523744583, "num_tokens": 12000212.0, "mean_token_accuracy": 0.802325963973999, "epoch": 0.3614163614163614, "step": 740}, {"loss": 0.7198453903198242, "grad_norm": 2.60439395904541, "learning_rate": 7.59416281248005e-06, "padded_tokens": 12163952, "real_tokens": 12163952, "pad_ratio": 1.0, "tokens_per_sec": 4689, "mfu": 0.1248, "entropy": 0.7184702150523663, "num_tokens": 12163952.0, "mean_token_accuracy": 0.8211049243807793, "epoch": 0.3663003663003663, "step": 750}, {"loss": 0.7502670288085938, "grad_norm": 2.9797253608703613, "learning_rate": 7.530897191093412e-06, "padded_tokens": 12327607, "real_tokens": 12327607, "pad_ratio": 1.0, "tokens_per_sec": 4719, "mfu": 0.1256, "entropy": 0.7559881910681725, "num_tokens": 12327607.0, "mean_token_accuracy": 0.8136648878455162, "epoch": 0.3711843711843712, "step": 760}, {"loss": 0.7350879192352295, "grad_norm": 4.475875377655029, "learning_rate": 7.4671233866984676e-06, "padded_tokens": 12491171, "real_tokens": 12491171, "pad_ratio": 1.0, "tokens_per_sec": 4681, "mfu": 0.1246, "entropy": 0.7312693424522877, "num_tokens": 12491171.0, "mean_token_accuracy": 0.8145410507917404, "epoch": 0.37606837606837606, "step": 770}, {"loss": 0.7910858154296875, "grad_norm": 3.178539276123047, "learning_rate": 7.402857357150645e-06, "padded_tokens": 12652916, "real_tokens": 12652916, "pad_ratio": 1.0, "tokens_per_sec": 4628, "mfu": 0.1232, "entropy": 0.7930116087198258, "num_tokens": 12652916.0, "mean_token_accuracy": 0.8099809646606445, "epoch": 0.38095238095238093, "step": 780}, {"loss": 0.7536827087402344, "grad_norm": 3.077683210372925, "learning_rate": 7.338115183472836e-06, "padded_tokens": 12816526, "real_tokens": 12816526, "pad_ratio": 1.0, "tokens_per_sec": 4678, "mfu": 0.1245, "entropy": 0.743191609531641, "num_tokens": 12816526.0, "mean_token_accuracy": 0.8156776338815689, "epoch": 0.38583638583638585, "step": 790}]}