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 96b6f47 commit 0e163fcCopy full SHA for 0e163fc
vllm/sequence.py
@@ -196,7 +196,7 @@ def get_cumulative_logprob(self) -> float:
196
return self.data.cumulative_logprob
197
198
def get_beam_search_score(self,
199
- length_penalty: float = 0.0,
+ length_penalty: float = 1.0,
200
seq_len: Optional[int] = None,
201
eos_token_id: Optional[int] = None) -> float:
202
"""Calculate the beam search score with length penalty.
0 commit comments