"docs/source/ja/tasks/image_classification.md" did not exist on "ae2dd42be5f577c7ac3f336cc43ee6b51803d8cd"
Unverified Commit 3486a92a authored by Zachary Mueller's avatar Zachary Mueller Committed by GitHub
Browse files

Fix savedir for by epoch (#16996)

parent 5af5735f
......@@ -678,7 +678,7 @@ def main():
)
if args.checkpointing_steps == "epoch":
output_dir = f"step_{completed_steps}"
output_dir = f"epoch_{epoch}"
if args.output_dir is not None:
output_dir = os.path.join(args.output_dir, output_dir)
accelerator.save_state(output_dir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment