mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Feature] [PD Disaggregation] simplify configuration for pd-disaggregated deployment, and refactor post-init and usage for all ports (#5415)
* [feat] simplify configuration for pd-disaggregated deployment, and refactor post-init and usage for all ports * [fix] fix some bugs * [fix] fix rdma port for cache manager/messager * [fix] temporarily cancel port availability check to see if it can pass ci test * [feat] simplify args for multi api server * [fix] fix dp * [fix] fix port for xpu * [fix] add tests for ports post processing & fix ci * [test] fix test_multi_api_server * [fix] fix rdma_comm_ports args for multi_api_server * [fix] fix test_common_engine * [fix] fix test_cache_transfer_manager * [chore] automatically setting FD_ENABLE_MULTI_API_SERVER * [fix] avoid api server from creating engine_args twice * [fix] fix test_run_batch * [fix] fix test_metrics * [fix] fix splitwise connector init * [test] add test_rdma_transfer and test_expert_service * [fix] fix code syntax * [fix] fix test_rdma_transfer and build wheel with rdma script
This commit is contained in:
@@ -146,6 +146,7 @@ async def lifespan(app: FastAPI):
|
||||
"""
|
||||
async context manager for FastAPI lifespan
|
||||
"""
|
||||
global engine_args
|
||||
import logging
|
||||
|
||||
uvicorn_access = logging.getLogger("uvicorn.access")
|
||||
@@ -172,8 +173,8 @@ async def lifespan(app: FastAPI):
|
||||
verification = False
|
||||
model_paths = [ModelPath(name=served_model_names, model_path=args.model, verification=verification)]
|
||||
|
||||
engine_args = EngineArgs.from_cli_args(args)
|
||||
fd_config = engine_args.create_engine_config(port_availability_check=False)
|
||||
engine_args = EngineArgs.from_cli_args(args, skip_port_check=True)
|
||||
fd_config = engine_args.create_engine_config()
|
||||
engine_client = EngineClient(
|
||||
pid=pid,
|
||||
port=int(os.environ.get("INFERENCE_MSG_QUEUE_ID", "0")),
|
||||
|
||||
Reference in New Issue
Block a user