We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87d90b4 commit facbce8Copy full SHA for facbce8
2 files changed
tuning/config/acceleration_configs/fast_moe.py
@@ -99,7 +99,7 @@ def on_save(
99
def checkpoint(checkpoint_dir, save_dir, is_intermediate: bool = True):
100
if is_intermediate:
101
hf_converted_output_dir = os.path.join(
102
- save_dir, "hf_converted_checkpoint"
+ save_dir, f"safetensors-{state.global_step}"
103
)
104
else:
105
hf_converted_output_dir = save_dir
tuning/trainercontroller/callback.py
@@ -587,7 +587,7 @@ def on_save(
587
kwargs["is_final"] = False
588
589
base_path = kwargs["path"]
590
- hf_converted_path = os.path.join(base_path, "hf_converted_checkpoint")
+ hf_converted_path = os.path.join(base_path, f"safetensors-{state.global_step}")
591
592
if os.path.isdir(hf_converted_path):
593
kwargs["hf_path"] = hf_converted_path
0 commit comments