Skip to content

Commit 8b47348

Browse files
committed
changes
1 parent b57df77 commit 8b47348

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ Below is a configuration for zero-order search:
287287

288288
</details>
289289

290-
If the neighbors do not improve the current search round results, we simply reject the round.
290+
> [!NOTE]
291+
> If the neighbors in the current round do not improve the current search round results,
292+
we simply reject the round, starting the next round with a new base nosie. In case of
293+
worse neighbors, we don't serialize the artifacts.
291294

292295
## More results
293296

main.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ def main():
230230
should_regenate_noise = False
231231

232232
# For subsequent rounds in zero-order: use best noise from previous round.
233-
# This happens ONLY if there was an improvement with the neighbors, otherwise
234-
# round is progressed.
233+
# This happens ONLY if there was an improvement with the neighbors in the
234+
# previous round, otherwise round is progressed with newly sampled noise.
235235
if should_regenate_noise:
236236
# Standard noise sampling.
237237
if search_method == "zero-order" and search_round != 1:
@@ -250,13 +250,6 @@ def main():
250250
print("Using the best noise from the previous round.")
251251
prev_dp = best_datapoint_per_round[previous_round]
252252
noises = {int(prev_dp["best_noise_seed"]): prev_dp["best_noise"]}
253-
else:
254-
print(
255-
f"No improvement in neighbors found for prompt '{prompt}' at round {search_round}. "
256-
"Rejecting this round and progressing to the next."
257-
)
258-
search_round += 1
259-
continue
260253

261254
if search_method == "zero-order":
262255
# Process the noise to generate neighbors.

0 commit comments

Comments
 (0)