madokalif commited on
Commit
cad8d14
·
verified ·
1 Parent(s): e8ab8b9

ablation_rb4b_first_front_wrist_left: checkpoint-600

Browse files
judge4/ablation_rb4b_first_front_wrist_left/checkpoint-600/config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3VLForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "image_token_id": 151655,
7
+ "model_type": "qwen3_vl",
8
+ "text_config": {
9
+ "attention_bias": false,
10
+ "attention_dropout": 0.0,
11
+ "bos_token_id": 151643,
12
+ "dtype": "bfloat16",
13
+ "eos_token_id": 151645,
14
+ "head_dim": 128,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 2560,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 9728,
19
+ "max_position_embeddings": 262144,
20
+ "model_type": "qwen3_vl_text",
21
+ "num_attention_heads": 32,
22
+ "num_hidden_layers": 36,
23
+ "num_key_value_heads": 8,
24
+ "pad_token_id": null,
25
+ "rms_norm_eps": 1e-06,
26
+ "rope_parameters": {
27
+ "mrope_interleaved": true,
28
+ "mrope_section": [
29
+ 24,
30
+ 20,
31
+ 20
32
+ ],
33
+ "rope_theta": 5000000,
34
+ "rope_type": "default"
35
+ },
36
+ "tie_word_embeddings": true,
37
+ "use_cache": true,
38
+ "vocab_size": 151936
39
+ },
40
+ "tie_word_embeddings": true,
41
+ "transformers_version": "5.10.2",
42
+ "use_cache": false,
43
+ "video_token_id": 151656,
44
+ "vision_config": {
45
+ "deepstack_visual_indexes": [
46
+ 5,
47
+ 11,
48
+ 17
49
+ ],
50
+ "depth": 24,
51
+ "dtype": "bfloat16",
52
+ "hidden_act": "gelu_pytorch_tanh",
53
+ "hidden_size": 1024,
54
+ "in_channels": 3,
55
+ "initializer_range": 0.02,
56
+ "intermediate_size": 4096,
57
+ "model_type": "qwen3_vl_vision",
58
+ "num_heads": 16,
59
+ "num_position_embeddings": 2304,
60
+ "out_hidden_size": 2560,
61
+ "patch_size": 16,
62
+ "spatial_merge_size": 2,
63
+ "temporal_patch_size": 2
64
+ },
65
+ "vision_end_token_id": 151653,
66
+ "vision_start_token_id": 151652
67
+ }
judge4/ablation_rb4b_first_front_wrist_left/checkpoint-600/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.0,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "5.10.2"
14
+ }
judge4/ablation_rb4b_first_front_wrist_left/checkpoint-600/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:458087d53b9a2d4601b958725b52f9f47b121b50b048b826f3c67dd0aceb4584
3
+ size 8875719408
judge4/ablation_rb4b_first_front_wrist_left/checkpoint-600/trainer_state.json ADDED
@@ -0,0 +1,490 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 600,
3
+ "best_metric": 0.9915458419655446,
4
+ "best_model_checkpoint": "/cache/hyeongjinkim/runs/ablation/rb4b/first_front_wrist_left/checkpoint-600",
5
+ "epoch": 0.32085561497326204,
6
+ "eval_steps": 200,
7
+ "global_step": 600,
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.0053475935828877,
14
+ "grad_norm": 68.13778921078115,
15
+ "learning_rate": 1.5789473684210526e-06,
16
+ "loss": 0.6869145393371582,
17
+ "step": 10
18
+ },
19
+ {
20
+ "epoch": 0.0106951871657754,
21
+ "grad_norm": 20.686643217026685,
22
+ "learning_rate": 3.3333333333333333e-06,
23
+ "loss": 0.5768181800842285,
24
+ "step": 20
25
+ },
26
+ {
27
+ "epoch": 0.016042780748663103,
28
+ "grad_norm": 95.64596347038083,
29
+ "learning_rate": 5.087719298245615e-06,
30
+ "loss": 0.33742055892944334,
31
+ "step": 30
32
+ },
33
+ {
34
+ "epoch": 0.0213903743315508,
35
+ "grad_norm": 29.76965303928116,
36
+ "learning_rate": 6.842105263157896e-06,
37
+ "loss": 0.32762646675109863,
38
+ "step": 40
39
+ },
40
+ {
41
+ "epoch": 0.026737967914438502,
42
+ "grad_norm": 16.53714113427119,
43
+ "learning_rate": 8.596491228070176e-06,
44
+ "loss": 0.33158283233642577,
45
+ "step": 50
46
+ },
47
+ {
48
+ "epoch": 0.03208556149732621,
49
+ "grad_norm": 11.006395356665177,
50
+ "learning_rate": 9.999969973569808e-06,
51
+ "loss": 0.2024832248687744,
52
+ "step": 60
53
+ },
54
+ {
55
+ "epoch": 0.0374331550802139,
56
+ "grad_norm": 18.09720830795652,
57
+ "learning_rate": 9.99891908637917e-06,
58
+ "loss": 0.23178586959838868,
59
+ "step": 70
60
+ },
61
+ {
62
+ "epoch": 0.0427807486631016,
63
+ "grad_norm": 6.58854266481471,
64
+ "learning_rate": 9.996367238293978e-06,
65
+ "loss": 0.26484317779541017,
66
+ "step": 80
67
+ },
68
+ {
69
+ "epoch": 0.0481283422459893,
70
+ "grad_norm": 22.491868729623413,
71
+ "learning_rate": 9.992315195524705e-06,
72
+ "loss": 0.33887131214141847,
73
+ "step": 90
74
+ },
75
+ {
76
+ "epoch": 0.053475935828877004,
77
+ "grad_norm": 14.338034102746148,
78
+ "learning_rate": 9.98676417472592e-06,
79
+ "loss": 0.19257726669311523,
80
+ "step": 100
81
+ },
82
+ {
83
+ "epoch": 0.058823529411764705,
84
+ "grad_norm": 11.098300988580723,
85
+ "learning_rate": 9.979715842630971e-06,
86
+ "loss": 0.13511991500854492,
87
+ "step": 110
88
+ },
89
+ {
90
+ "epoch": 0.06417112299465241,
91
+ "grad_norm": 14.21430349781457,
92
+ "learning_rate": 9.971172315551539e-06,
93
+ "loss": 0.36112165451049805,
94
+ "step": 120
95
+ },
96
+ {
97
+ "epoch": 0.06951871657754011,
98
+ "grad_norm": 27.402852321418933,
99
+ "learning_rate": 9.961136158742194e-06,
100
+ "loss": 0.22617249488830565,
101
+ "step": 130
102
+ },
103
+ {
104
+ "epoch": 0.0748663101604278,
105
+ "grad_norm": 6.809194724671387,
106
+ "learning_rate": 9.94961038563017e-06,
107
+ "loss": 0.23373794555664062,
108
+ "step": 140
109
+ },
110
+ {
111
+ "epoch": 0.08021390374331551,
112
+ "grad_norm": 18.86514920024736,
113
+ "learning_rate": 9.936598456910553e-06,
114
+ "loss": 0.1674506664276123,
115
+ "step": 150
116
+ },
117
+ {
118
+ "epoch": 0.0855614973262032,
119
+ "grad_norm": 29.67221009327952,
120
+ "learning_rate": 9.922104279507188e-06,
121
+ "loss": 0.15356380939483644,
122
+ "step": 160
123
+ },
124
+ {
125
+ "epoch": 0.09090909090909091,
126
+ "grad_norm": 14.822857022895732,
127
+ "learning_rate": 9.90613220539959e-06,
128
+ "loss": 0.1910448431968689,
129
+ "step": 170
130
+ },
131
+ {
132
+ "epoch": 0.0962566844919786,
133
+ "grad_norm": 24.694358331720675,
134
+ "learning_rate": 9.888687030316244e-06,
135
+ "loss": 0.14659262895584108,
136
+ "step": 180
137
+ },
138
+ {
139
+ "epoch": 0.10160427807486631,
140
+ "grad_norm": 24.6680411270502,
141
+ "learning_rate": 9.869773992294645e-06,
142
+ "loss": 0.17074825763702392,
143
+ "step": 190
144
+ },
145
+ {
146
+ "epoch": 0.10695187165775401,
147
+ "grad_norm": 3.5135151661684847,
148
+ "learning_rate": 9.849398770108534e-06,
149
+ "loss": 0.16892628669738768,
150
+ "step": 200
151
+ },
152
+ {
153
+ "epoch": 0.10695187165775401,
154
+ "eval_auroc": 0.97805903250963,
155
+ "eval_loss": 0.18842406570911407,
156
+ "eval_runtime": 70.4438,
157
+ "eval_samples_per_second": 75.28,
158
+ "eval_steps_per_second": 1.178,
159
+ "step": 200
160
+ },
161
+ {
162
+ "epoch": 0.11229946524064172,
163
+ "grad_norm": 10.500368832543703,
164
+ "learning_rate": 9.82756748156282e-06,
165
+ "loss": 0.20454056262969972,
166
+ "step": 210
167
+ },
168
+ {
169
+ "epoch": 0.11764705882352941,
170
+ "grad_norm": 11.945769457905438,
171
+ "learning_rate": 9.804286681656661e-06,
172
+ "loss": 0.12711660861968993,
173
+ "step": 220
174
+ },
175
+ {
176
+ "epoch": 0.12299465240641712,
177
+ "grad_norm": 1.3595812094815467,
178
+ "learning_rate": 9.779563360615269e-06,
179
+ "loss": 0.07656186819076538,
180
+ "step": 230
181
+ },
182
+ {
183
+ "epoch": 0.12834224598930483,
184
+ "grad_norm": 15.466365698288874,
185
+ "learning_rate": 9.753404941791063e-06,
186
+ "loss": 0.24005286693572997,
187
+ "step": 240
188
+ },
189
+ {
190
+ "epoch": 0.13368983957219252,
191
+ "grad_norm": 30.757220809730075,
192
+ "learning_rate": 9.725819279434736e-06,
193
+ "loss": 0.12858374118804933,
194
+ "step": 250
195
+ },
196
+ {
197
+ "epoch": 0.13903743315508021,
198
+ "grad_norm": 1.0679258888054142,
199
+ "learning_rate": 9.696814656336974e-06,
200
+ "loss": 0.18207962512969972,
201
+ "step": 260
202
+ },
203
+ {
204
+ "epoch": 0.1443850267379679,
205
+ "grad_norm": 67.77136967405464,
206
+ "learning_rate": 9.666399781341487e-06,
207
+ "loss": 0.13207985162734986,
208
+ "step": 270
209
+ },
210
+ {
211
+ "epoch": 0.1497326203208556,
212
+ "grad_norm": 12.256078131060795,
213
+ "learning_rate": 9.63458378673011e-06,
214
+ "loss": 0.138266658782959,
215
+ "step": 280
216
+ },
217
+ {
218
+ "epoch": 0.15508021390374332,
219
+ "grad_norm": 18.44948336585198,
220
+ "learning_rate": 9.60137622548078e-06,
221
+ "loss": 0.07598450183868408,
222
+ "step": 290
223
+ },
224
+ {
225
+ "epoch": 0.16042780748663102,
226
+ "grad_norm": 16.26050529010737,
227
+ "learning_rate": 9.566787068399182e-06,
228
+ "loss": 0.22377769947052,
229
+ "step": 300
230
+ },
231
+ {
232
+ "epoch": 0.1657754010695187,
233
+ "grad_norm": 18.632663672755353,
234
+ "learning_rate": 9.53082670112494e-06,
235
+ "loss": 0.16657167673110962,
236
+ "step": 310
237
+ },
238
+ {
239
+ "epoch": 0.1711229946524064,
240
+ "grad_norm": 20.668640668375744,
241
+ "learning_rate": 9.493505921013264e-06,
242
+ "loss": 0.1260246753692627,
243
+ "step": 320
244
+ },
245
+ {
246
+ "epoch": 0.17647058823529413,
247
+ "grad_norm": 7.245492220694469,
248
+ "learning_rate": 9.454835933892961e-06,
249
+ "loss": 0.12108056545257569,
250
+ "step": 330
251
+ },
252
+ {
253
+ "epoch": 0.18181818181818182,
254
+ "grad_norm": 10.93219841196901,
255
+ "learning_rate": 9.414828350701808e-06,
256
+ "loss": 0.13412238359451295,
257
+ "step": 340
258
+ },
259
+ {
260
+ "epoch": 0.18716577540106952,
261
+ "grad_norm": 44.089277625601945,
262
+ "learning_rate": 9.37349518400028e-06,
263
+ "loss": 0.15942516326904296,
264
+ "step": 350
265
+ },
266
+ {
267
+ "epoch": 0.1925133689839572,
268
+ "grad_norm": 18.00370121112202,
269
+ "learning_rate": 9.330848844364709e-06,
270
+ "loss": 0.09857865571975707,
271
+ "step": 360
272
+ },
273
+ {
274
+ "epoch": 0.19786096256684493,
275
+ "grad_norm": 15.359896115726,
276
+ "learning_rate": 9.2869021366609e-06,
277
+ "loss": 0.10746076107025146,
278
+ "step": 370
279
+ },
280
+ {
281
+ "epoch": 0.20320855614973263,
282
+ "grad_norm": 7.177069285593893,
283
+ "learning_rate": 9.241668256199392e-06,
284
+ "loss": 0.18864295482635499,
285
+ "step": 380
286
+ },
287
+ {
288
+ "epoch": 0.20855614973262032,
289
+ "grad_norm": 8.785030269377183,
290
+ "learning_rate": 9.195160784773471e-06,
291
+ "loss": 0.07498379945755004,
292
+ "step": 390
293
+ },
294
+ {
295
+ "epoch": 0.21390374331550802,
296
+ "grad_norm": 2.081822856525972,
297
+ "learning_rate": 9.14739368658114e-06,
298
+ "loss": 0.05125742554664612,
299
+ "step": 400
300
+ },
301
+ {
302
+ "epoch": 0.21390374331550802,
303
+ "eval_auroc": 0.9889418418710171,
304
+ "eval_loss": 0.4537559449672699,
305
+ "eval_runtime": 60.6177,
306
+ "eval_samples_per_second": 87.483,
307
+ "eval_steps_per_second": 1.369,
308
+ "step": 400
309
+ },
310
+ {
311
+ "epoch": 0.2192513368983957,
312
+ "grad_norm": 20.682306043307843,
313
+ "learning_rate": 9.098381304032267e-06,
314
+ "loss": 0.2823731184005737,
315
+ "step": 410
316
+ },
317
+ {
318
+ "epoch": 0.22459893048128343,
319
+ "grad_norm": 2.578906645643896,
320
+ "learning_rate": 9.048138353442173e-06,
321
+ "loss": 0.12771210670471192,
322
+ "step": 420
323
+ },
324
+ {
325
+ "epoch": 0.22994652406417113,
326
+ "grad_norm": 9.736784383554943,
327
+ "learning_rate": 8.996679920612964e-06,
328
+ "loss": 0.11460565328598023,
329
+ "step": 430
330
+ },
331
+ {
332
+ "epoch": 0.23529411764705882,
333
+ "grad_norm": 1.0382877101610493,
334
+ "learning_rate": 8.944021456303898e-06,
335
+ "loss": 0.06051036715507507,
336
+ "step": 440
337
+ },
338
+ {
339
+ "epoch": 0.24064171122994651,
340
+ "grad_norm": 3.0650727524168935,
341
+ "learning_rate": 8.890178771592198e-06,
342
+ "loss": 0.08321176171302795,
343
+ "step": 450
344
+ },
345
+ {
346
+ "epoch": 0.24598930481283424,
347
+ "grad_norm": 10.490770957104305,
348
+ "learning_rate": 8.835168033125657e-06,
349
+ "loss": 0.22136566638946534,
350
+ "step": 460
351
+ },
352
+ {
353
+ "epoch": 0.25133689839572193,
354
+ "grad_norm": 3.7898992532719333,
355
+ "learning_rate": 8.779005758268486e-06,
356
+ "loss": 0.17869744300842286,
357
+ "step": 470
358
+ },
359
+ {
360
+ "epoch": 0.25668449197860965,
361
+ "grad_norm": 9.659662572794213,
362
+ "learning_rate": 8.721708810141862e-06,
363
+ "loss": 0.12604660987854005,
364
+ "step": 480
365
+ },
366
+ {
367
+ "epoch": 0.2620320855614973,
368
+ "grad_norm": 6.304934163361021,
369
+ "learning_rate": 8.663294392560658e-06,
370
+ "loss": 0.116973614692688,
371
+ "step": 490
372
+ },
373
+ {
374
+ "epoch": 0.26737967914438504,
375
+ "grad_norm": 1.922768417100655,
376
+ "learning_rate": 8.603780044867866e-06,
377
+ "loss": 0.09569283723831176,
378
+ "step": 500
379
+ },
380
+ {
381
+ "epoch": 0.2727272727272727,
382
+ "grad_norm": 135.84352234291285,
383
+ "learning_rate": 8.543183636668302e-06,
384
+ "loss": 0.05400645732879639,
385
+ "step": 510
386
+ },
387
+ {
388
+ "epoch": 0.27807486631016043,
389
+ "grad_norm": 53.579716185654554,
390
+ "learning_rate": 8.481523362463111e-06,
391
+ "loss": 0.15954303741455078,
392
+ "step": 520
393
+ },
394
+ {
395
+ "epoch": 0.28342245989304815,
396
+ "grad_norm": 7.814095596108466,
397
+ "learning_rate": 8.418817736186751e-06,
398
+ "loss": 0.13201372623443602,
399
+ "step": 530
400
+ },
401
+ {
402
+ "epoch": 0.2887700534759358,
403
+ "grad_norm": 43.27831033902565,
404
+ "learning_rate": 8.355085585648054e-06,
405
+ "loss": 0.06240527629852295,
406
+ "step": 540
407
+ },
408
+ {
409
+ "epoch": 0.29411764705882354,
410
+ "grad_norm": 109.73027112520947,
411
+ "learning_rate": 8.290346046877033e-06,
412
+ "loss": 0.06216922402381897,
413
+ "step": 550
414
+ },
415
+ {
416
+ "epoch": 0.2994652406417112,
417
+ "grad_norm": 1.480551111251732,
418
+ "learning_rate": 8.224618558379166e-06,
419
+ "loss": 0.045410773158073424,
420
+ "step": 560
421
+ },
422
+ {
423
+ "epoch": 0.3048128342245989,
424
+ "grad_norm": 28.372731460685635,
425
+ "learning_rate": 8.157922855298834e-06,
426
+ "loss": 0.09367998838424682,
427
+ "step": 570
428
+ },
429
+ {
430
+ "epoch": 0.31016042780748665,
431
+ "grad_norm": 9.181165061514356,
432
+ "learning_rate": 8.090278963493714e-06,
433
+ "loss": 0.048366373777389525,
434
+ "step": 580
435
+ },
436
+ {
437
+ "epoch": 0.3155080213903743,
438
+ "grad_norm": 0.009888023839612053,
439
+ "learning_rate": 8.021707193521865e-06,
440
+ "loss": 0.01897559463977814,
441
+ "step": 590
442
+ },
443
+ {
444
+ "epoch": 0.32085561497326204,
445
+ "grad_norm": 0.007389798309732744,
446
+ "learning_rate": 7.952228134543357e-06,
447
+ "loss": 0.06319550275802613,
448
+ "step": 600
449
+ },
450
+ {
451
+ "epoch": 0.32085561497326204,
452
+ "eval_auroc": 0.9915458419655446,
453
+ "eval_loss": 0.27358007431030273,
454
+ "eval_runtime": 61.0754,
455
+ "eval_samples_per_second": 86.827,
456
+ "eval_steps_per_second": 1.359,
457
+ "step": 600
458
+ }
459
+ ],
460
+ "logging_steps": 10,
461
+ "max_steps": 1870,
462
+ "num_input_tokens_seen": 0,
463
+ "num_train_epochs": 1,
464
+ "save_steps": 200,
465
+ "stateful_callbacks": {
466
+ "EarlyStoppingCallback": {
467
+ "args": {
468
+ "early_stopping_patience": 5,
469
+ "early_stopping_threshold": 0.0
470
+ },
471
+ "attributes": {
472
+ "early_stopping_patience_counter": 0
473
+ }
474
+ },
475
+ "TrainerControl": {
476
+ "args": {
477
+ "should_epoch_stop": false,
478
+ "should_evaluate": false,
479
+ "should_log": false,
480
+ "should_save": true,
481
+ "should_training_stop": false
482
+ },
483
+ "attributes": {}
484
+ }
485
+ },
486
+ "total_flos": 25487552610304.0,
487
+ "train_batch_size": 16,
488
+ "trial_name": null,
489
+ "trial_params": null
490
+ }
judge4/ablation_rb4b_first_front_wrist_left/checkpoint-600/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f105ca6f0d196c8996246986e152d974e9f927524f58d45c8309412df4610398
3
+ size 6673
judge4/ablation_rb4b_first_front_wrist_left/checkpoint-600/zero_to_torch.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ # DeepSpeed Team
5
+
6
+ import argparse
7
+
8
+ if __package__:
9
+ from . import zero_to_fp32
10
+ else:
11
+ import zero_to_fp32
12
+
13
+
14
+ def main(args=None):
15
+ parser = argparse.ArgumentParser(
16
+ description="Convert a DeepSpeed ZeRO checkpoint to float32, float16, or bfloat16 PyTorch weights.")
17
+ parser.add_argument("checkpoint_dir",
18
+ type=str,
19
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
20
+ parser.add_argument("output_dir", type=str, help="directory for the converted PyTorch state_dict files")
21
+ parser.add_argument("--dtype",
22
+ type=str,
23
+ choices=sorted(zero_to_fp32.OUTPUT_DTYPE_NAMES),
24
+ required=True,
25
+ help="output tensor dtype")
26
+ parser.add_argument("--max_shard_size",
27
+ type=str,
28
+ default="5GB",
29
+ help="maximum size of each checkpoint shard, such as 5GB or 500MB")
30
+ parser.add_argument("--safe_serialization",
31
+ default=False,
32
+ action='store_true',
33
+ help="save with safetensors instead of PyTorch pickle serialization")
34
+ parser.add_argument("-t",
35
+ "--tag",
36
+ type=str,
37
+ default=None,
38
+ help="checkpoint tag used as a unique identifier, e.g., global_step1")
39
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
40
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug output")
41
+ parsed_args = parser.parse_args(args)
42
+
43
+ zero_to_fp32.debug = parsed_args.debug
44
+ zero_to_fp32.convert_zero_checkpoint_to_state_dict(parsed_args.checkpoint_dir,
45
+ parsed_args.output_dir,
46
+ dtype=parsed_args.dtype,
47
+ max_shard_size=parsed_args.max_shard_size,
48
+ safe_serialization=parsed_args.safe_serialization,
49
+ tag=parsed_args.tag,
50
+ exclude_frozen_parameters=parsed_args.exclude_frozen_parameters)
51
+
52
+
53
+ if __name__ == "__main__":
54
+ main()