fix: append first_epoch

This commit is contained in:
Zach Nussbaum 2023-03-27 17:30:24 +00:00
parent 8e22a7276f
commit b24ca03dc4

View File

@ -164,7 +164,7 @@ def train(accelerator, config):
accelerator.wait_for_everyone()
unwrapped_model = accelerator.unwrap_model(model)
if accelerator.is_main_process:
unwrapped_model.push_to_hub(config["save_name"], private=True)
unwrapped_model.push_to_hub(config["save_name"] + "_first_epoch", private=True)
accelerator.wait_for_everyone()