Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
0e163fce
Unverified
Commit
0e163fce
authored
Feb 02, 2024
by
zspo
Committed by
GitHub
Feb 01, 2024
Browse files
Fix default length_penalty to 1.0 (#2667)
parent
96b6f475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/sequence.py
vllm/sequence.py
+1
-1
No files found.
vllm/sequence.py
View file @
0e163fce
...
...
@@ -196,7 +196,7 @@ class Sequence:
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment