Skip to content

Commit eb18292

Browse files
authored
fix
1 parent 9fd759d commit eb18292

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lightllm/server/sampling_params.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
class SamplingParams:
1313

14-
_do_sample: bool = (False,)
15-
_presence_penalty: float = (0.0,)
16-
_frequency_penalty: float = (0.0,)
17-
_repetition_penalty: float = (1.0,)
18-
_temperature: float = (1.0,)
19-
_top_p: float = (1.0,)
20-
_top_k: int = (-1,) # -1 is for all
14+
_do_sample: bool = False
15+
_presence_penalty: float = 0.0
16+
_frequency_penalty: float = 0.0
17+
_repetition_penalty: float = 1.0
18+
_temperature: float = 1.0
19+
_top_p: float = 1.0
20+
_top_k: int = -1 # -1 is for all
2121

2222
def __init__(
2323
self,

0 commit comments

Comments
 (0)