mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-12 13:42:23 +00:00
update
This commit is contained in:
parent
604d269797
commit
5ec1f413b6
@ -11,7 +11,7 @@ def chatglm_generate_stream(model, tokenizer, params, device, context_len=2048,
|
|||||||
temperature = float(params.get("temperature", 1.0))
|
temperature = float(params.get("temperature", 1.0))
|
||||||
top_p = float(params.get("top_p", 1.0))
|
top_p = float(params.get("top_p", 1.0))
|
||||||
stop = params.get("stop", "###")
|
stop = params.get("stop", "###")
|
||||||
echo = params.get("echo", True)
|
echo = params.get("echo", False)
|
||||||
|
|
||||||
generate_kwargs = {
|
generate_kwargs = {
|
||||||
"do_sample": True if temperature > 1e-5 else False,
|
"do_sample": True if temperature > 1e-5 else False,
|
||||||
|
Loading…
Reference in New Issue
Block a user