Skip to content

Commit 2de24be

Browse files
authored
Return 0th checkpoint (#492)
* Read chat template from checkpoint dir? * Add more tracing * Do not return no checkpoint if step is 0 * Remove logs
1 parent e624de1 commit 2de24be

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/art/local/checkpoints.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ def delete_checkpoints(output_dir: str, excluding: list[int]) -> None:
2222

2323
def get_last_checkpoint_dir(output_dir: str) -> str | None:
2424
step = get_step_from_dir(output_dir)
25-
if step == 0:
26-
return None
2725

2826
checkpoint_dir = os.path.join(output_dir, "checkpoints", f"{step:04d}")
2927
if os.path.exists(checkpoint_dir):

0 commit comments

Comments
 (0)