Fix checkpoint path in no_trainer scripts (#26733)

checkpoint path
This commit is contained in:
Zach Mueller
2023-10-11 10:16:27 -04:00
committed by GitHub
parent 6ecb2ab679
commit 1d6a84749b
12 changed files with 12 additions and 12 deletions

View File

@@ -808,7 +808,7 @@ def main():
path = os.path.basename(checkpoint_path)
accelerator.print(f"Resumed from checkpoint: {checkpoint_path}")
accelerator.load_state(path)
accelerator.load_state(checkpoint_path)
# Extract `epoch_{i}` or `step_{i}`
training_difference = os.path.splitext(path)[0]

View File

@@ -839,7 +839,7 @@ def main():
path = os.path.basename(checkpoint_path)
accelerator.print(f"Resumed from checkpoint: {checkpoint_path}")
accelerator.load_state(path)
accelerator.load_state(checkpoint_path)
# Extract `epoch_{i}` or `step_{i}`
training_difference = os.path.splitext(path)[0]