Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 055 #28

Merged
merged 15 commits into from
Aug 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
FIX run_rpc_server uvloop
  • Loading branch information
maxDavid40 committed Aug 28, 2024
commit 4c63b1e2e05c51dcbffefccc47452f605769628d
6 changes: 2 additions & 4 deletions src/happy_vllm/rpc/server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import asyncio
import cloudpickle
import uvloop

from prometheus_client import Gauge
from typing_extensions import Never
from vllm.usage.usage_lib import UsageContext
from vllm import AsyncEngineArgs
from vllm.entrypoints.openai.rpc.server import AsyncEngineRPCServer, run_server
@@ -13,5 +11,5 @@ def run_rpc_server(async_engine_args: AsyncEngineArgs,
server = AsyncEngineRPCServer(async_engine_args=async_engine_args, usage_context=usage_context, rpc_path=rpc_path)
model_consumed_memory = Gauge("model_memory_usage", "Model Consumed GPU Memory in GB ")
model_consumed_memory.set(round(server.engine.engine.model_executor.driver_worker.model_runner.model_memory_usage/float(2**30),2)) # type: ignore
asyncio.run(run_server(server))
uvloop.run(run_server(server))