File tree Expand file tree Collapse file tree
config/acceleration_configs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def on_save(
9999 def checkpoint (checkpoint_dir , save_dir , is_intermediate : bool = True ):
100100 if is_intermediate :
101101 hf_converted_output_dir = os .path .join (
102- save_dir , "hf_converted_checkpoint"
102+ save_dir , f "hf_converted_checkpoint- { state . global_step } "
103103 )
104104 else :
105105 hf_converted_output_dir = save_dir
Original file line number Diff line number Diff line change @@ -587,7 +587,9 @@ def on_save(
587587 kwargs ["is_final" ] = False
588588
589589 base_path = kwargs ["path" ]
590- hf_converted_path = os .path .join (base_path , "hf_converted_checkpoint" )
590+ hf_converted_path = os .path .join (
591+ base_path , f"hf_converted_checkpoint-{ state .global_step } "
592+ )
591593
592594 if os .path .isdir (hf_converted_path ):
593595 kwargs ["hf_path" ] = hf_converted_path
You can’t perform that action at this time.
0 commit comments