Skip to content

Commit

Permalink
[bug] fix model idx
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhenjia committed Jul 21, 2024
1 parent 55753d5 commit 998e1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lmflow/pipeline/iterative_dpo_aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def align(
target_model_args = self.model_args
else:
target_model_args = copy.deepcopy(self.model_args)
target_model_args.model_name_or_path = str(self.workspace_path/f"iteration_{iter_idx-1}"/"model")
target_model_args.model_name_or_path = str(self.workspace_path/f"iteration_{iter_idx}"/"model")

self._align_single_iteration(
iteration_name=f"iteration_{iter_idx+1}",
Expand Down

0 comments on commit 998e1cb

Please sign in to comment.