Skip to content

Commit

Permalink
Modify num_steps to num_steps_remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
bohyunshin committed Jun 9, 2024
1 parent fc28ef9 commit c3bd6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimization_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def run_pipeline(self, num_steps: int):
# Run the optimization pipeline for num_steps
num_steps_remaining = num_steps - self.batch_id
for i in range(num_steps_remaining):
stop_criteria = self.step(i, num_steps)
stop_criteria = self.step(i, num_steps_remaining)
if stop_criteria:
break
final_result = self.extract_best_prompt()
Expand Down

0 comments on commit c3bd6bc

Please sign in to comment.