[Core] Use uvloop with zmq-decoupled front-end (#7570)
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user