Merge pull request #2162 from chatchat-space/hzg0601-patch-1

Update startup.py
This commit is contained in:
Zhi-guo Huang 2023-11-24 17:03:19 +08:00 committed by GitHub
commit 3839c212db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def create_model_worker_app(log_level: str = "INFO", **kwargs) -> FastAPI:
from configs.model_config import VLLM_MODEL_DICT
if kwargs["model_names"][0] in VLLM_MODEL_DICT and args.infer_turbo == "vllm":
import fastchat.serve.vllm_worker
from fastchat.serve.vllm_worker import VLLMWorker, app
from fastchat.serve.vllm_worker import VLLMWorker, app,worker_id
from vllm import AsyncLLMEngine
from vllm.engine.arg_utils import AsyncEngineArgs,EngineArgs