fix beam_width

This commit is contained in:
yuehuayingxueluo
2024-01-04 16:48:53 +08:00
committed by FrankLeeeee
parent b2eb9cd186
commit 3ad1f3b78b
2 changed files with 6 additions and 3 deletions

View File

@@ -42,9 +42,8 @@ def beam_search_sample(
# NOTE: this beam search sample function is wrong now.
"""
# beam_width = generation_config.best_of
beam_width = 1
beam_width = generation_config.num_beams
results = []
if is_prompt:
# Prompt phase.