mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-29 18:29:44 +08:00
fix bug when config["device"]="auto"
This commit is contained in:
parent
3de9b2649c
commit
25880ebd52
@ -203,6 +203,7 @@ def get_model_worker_config(model_name: str = LLM_MODEL) -> dict:
|
||||
from configs.model_config import llm_model_dict
|
||||
|
||||
config = FSCHAT_MODEL_WORKERS.get("default", {}).copy()
|
||||
config["device"] = llm_device(config["device"])
|
||||
config.update(llm_model_dict.get(model_name, {}))
|
||||
config.update(FSCHAT_MODEL_WORKERS.get(model_name, {}))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user