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
e1122233
Unverified
Commit
e1122233
authored
Sep 01, 2023
by
Dong-Yong Lee
Committed by
GitHub
Sep 01, 2023
Browse files
fix: bug fix when penalties are negative (#913)
Co-authored-by:
dongyong-lee
<
dongyong.lee@navercorp.com
>
parent
28873a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/sampler.py
vllm/model_executor/layers/sampler.py
+1
-1
No files found.
vllm/model_executor/layers/sampler.py
View file @
e1122233
...
@@ -158,7 +158,7 @@ def _apply_penalties(
...
@@ -158,7 +158,7 @@ def _apply_penalties(
continue
continue
p
=
presence_penalties
[
i
]
p
=
presence_penalties
[
i
]
f
=
frequency_penalties
[
i
]
f
=
frequency_penalties
[
i
]
if
p
<
_SAMPLING_EPS
and
f
<
_SAMPLING_EPS
:
if
abs
(
p
)
<
_SAMPLING_EPS
and
abs
(
f
)
<
_SAMPLING_EPS
:
continue
continue
indices
.
append
(
i
)
indices
.
append
(
i
)
...
...
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