Skip to content

Commit

Permalink
Fix error in final ckpt
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgiosSmyrnis committed May 13, 2024
1 parent 543ae63 commit afee0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_lm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def main(args):
break

expected_steps = data["train"].dataloader.total_batches
if steps_done_epoch < (1 - args.data_tolerate_error_p) * expected_steps:
if steps_done_epoch < (1 - args.data_tolerate_error_p) * expected_steps and not done_training:
num_ckpt_too_few_tokens += 1

if num_ckpt_too_few_tokens > args.data_tolerate_num_ckpts:
Expand Down

0 comments on commit afee0c7

Please sign in to comment.