diff --git a/vllm/sequence.py b/vllm/sequence.py index d28627f47498f..30dfe224a1741 100644 --- a/vllm/sequence.py +++ b/vllm/sequence.py @@ -197,7 +197,7 @@ def get_cumulative_logprob(self) -> float: return self.data.cumulative_logprob def get_beam_search_score(self, - length_penalty: float = 0.0, + length_penalty: float = 1.0, seq_len: Optional[int] = None, eos_token_id: Optional[int] = None) -> float: """Calculate the beam search score with length penalty.