Skip to content

Commit

Permalink
remove redundant logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mertyg committed Jul 7, 2024
1 parent 066bb89 commit 6565dee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion textgrad/optimizer/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,4 @@ def step(self):
logger.error(f"TextualGradientDescent optimizer response could not be indexed", extra={"optimizer.response": new_text})
raise IndexError(f"TextualGradientDescent optimizer response could not be indexed. This can happen if the optimizer model cannot follow the instructions. You can try using a stronger model, or somehow reducing the context of the optimization. Response: {new_text}")
parameter.set_value(new_value)
logger.info(f"TextualGradientDescent updated text", extra={"parameter.value": parameter.value})
logger.info(f"TextualGradientDescentwithMomentum updated text", extra={"parameter.value": parameter.value})

0 comments on commit 6565dee

Please sign in to comment.