Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tuning/config/acceleration_configs/fast_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def on_save(
def checkpoint(checkpoint_dir, save_dir, is_intermediate: bool = True):
if is_intermediate:
hf_converted_output_dir = os.path.join(
save_dir, "hf_converted_checkpoint"
save_dir, f"safetensors-{state.global_step}"
)
else:
hf_converted_output_dir = save_dir
Expand Down
2 changes: 1 addition & 1 deletion tuning/trainercontroller/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def on_save(
kwargs["is_final"] = False

base_path = kwargs["path"]
hf_converted_path = os.path.join(base_path, "hf_converted_checkpoint")
hf_converted_path = os.path.join(base_path, f"safetensors-{state.global_step}")

if os.path.isdir(hf_converted_path):
kwargs["hf_path"] = hf_converted_path
Expand Down