mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 06:35:00 +08:00
fix: bug fix when penalties are negative (#913)
Co-authored-by: dongyong-lee <dongyong.lee@navercorp.com>
This commit is contained in:
parent
28873a2799
commit
e11222333f
@ -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)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user