parent
fc8c7904f0
commit
04baac5a2e
1 changed files with 3 additions and 1 deletions
|
|
@ -100,7 +100,9 @@ class BigDLLLMWorker(BaseModelWorker):
|
||||||
temperature = float(params.get("temperature", 1.0))
|
temperature = float(params.get("temperature", 1.0))
|
||||||
repetition_penalty = float(params.get("repetition_penalty", 1.0))
|
repetition_penalty = float(params.get("repetition_penalty", 1.0))
|
||||||
top_p = float(params.get("top_p", 1.0))
|
top_p = float(params.get("top_p", 1.0))
|
||||||
top_k = int(params.get("top_k", 0)) # 0 means disable
|
top_k = int(params.get("top_k", 1))
|
||||||
|
if top_k == -1:
|
||||||
|
top_k = 1
|
||||||
max_new_tokens = int(params.get("max_new_tokens", 256))
|
max_new_tokens = int(params.get("max_new_tokens", 256))
|
||||||
echo = bool(params.get("echo", True))
|
echo = bool(params.get("echo", True))
|
||||||
stop_str = params.get("stop", None)
|
stop_str = params.get("stop", None)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue