mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-09 11:37:10 +08:00
[Core] Use uvloop with zmq-decoupled front-end (#7570)
This commit is contained in:
parent
54bd9a03c4
commit
9587b050fb
@ -3,6 +3,7 @@ import signal
|
|||||||
from typing import Any, Coroutine
|
from typing import Any, Coroutine
|
||||||
|
|
||||||
import cloudpickle
|
import cloudpickle
|
||||||
|
import uvloop
|
||||||
import zmq
|
import zmq
|
||||||
import zmq.asyncio
|
import zmq.asyncio
|
||||||
from typing_extensions import Never
|
from typing_extensions import Never
|
||||||
@ -217,4 +218,4 @@ async def run_server(server: AsyncEngineRPCServer):
|
|||||||
def run_rpc_server(async_engine_args: AsyncEngineArgs,
|
def run_rpc_server(async_engine_args: AsyncEngineArgs,
|
||||||
usage_context: UsageContext, rpc_path: str):
|
usage_context: UsageContext, rpc_path: str):
|
||||||
server = AsyncEngineRPCServer(async_engine_args, usage_context, rpc_path)
|
server = AsyncEngineRPCServer(async_engine_args, usage_context, rpc_path)
|
||||||
asyncio.run(run_server(server))
|
uvloop.run(run_server(server))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user