We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5666134 commit efa27f3Copy full SHA for efa27f3
promptolution/optimizers/capo.py
@@ -106,6 +106,11 @@ def __init__(
106
f" Setting max_n_blocks_eval to {self.task.n_blocks}."
107
)
108
self.max_n_blocks_eval = self.task.n_blocks
109
+ if "block" not in self.task.eval_strategy:
110
+ logger.warning(
111
+ f"ℹ️ CAPO requires 'block' in the eval_strategy, but got {self.task.eval_strategy}. Setting eval_strategy to 'sequential_block'."
112
+ )
113
+ self.task.eval_strategy = "sequential_block"
114
self.population_size = len(self.prompts)
115
116
if hasattr(self.predictor, "begin_marker") and hasattr(self.predictor, "end_marker"):
0 commit comments