mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 20:10:17 +00:00
fix beam_width
This commit is contained in:
committed by
FrankLeeeee
parent
b2eb9cd186
commit
3ad1f3b78b
@@ -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.
|
||||
|
Reference in New Issue
Block a user