Skip to content

Commit

Permalink
fixed the skipped last step
Browse files Browse the repository at this point in the history
  • Loading branch information
rizar committed Jan 7, 2025
1 parent 3ca4288 commit 695f006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rl_gsm8k/orchestrate_rl.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def main(cfg: DictConfig):
finetune_cfg = cfg.copy()

checkpoint_steps = finetune_cfg.finetune.save_checkpoint_steps
interrupt_train_steps = int((state["iteration"] + 1) * checkpoint_steps - 1)
interrupt_train_steps = int((state["iteration"] + 1) * checkpoint_steps)

finetune_cfg.finetune.interrupt_train_steps = interrupt_train_steps
finetune_cfg.output_dir = str(finetune_path)
Expand Down

0 comments on commit 695f006

Please sign in to comment.