Skip to content

[Core] Use uvloop with zmq-decoupled front-end#7570

Merged
simon-mo merged 1 commit into
vllm-project:mainfrom
njhill:zmq-uvloop
Aug 16, 2024
Merged

[Core] Use uvloop with zmq-decoupled front-end#7570
simon-mo merged 1 commit into
vllm-project:mainfrom
njhill:zmq-uvloop

Conversation

@njhill

@njhill njhill commented Aug 15, 2024

Copy link
Copy Markdown
Member

It's faster than the native python asyncio event loop implementation. uvicorn already uses this but we need to enable it explicitly when starting the zmq RPC server based engine.

It's faster than the native python asyncio event loop implementation. uvicorn already uses this but we need to enable it explicitly when starting the zmq RPC server based engine.
@github-actions

Copy link
Copy Markdown

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which consists a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of default ones by unblocking the steps in your fast-check build on Buildkite UI.

Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge).

To run full CI, you can do one of these:

  • Comment /ready on the PR
  • Add ready label to the PR
  • Enable auto-merge.

🚀

from typing import Any, Coroutine

import cloudpickle
import uvloop

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it already required by another package? It wouldn't hurt to explicitly add it to requirements-common.txt

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already installed via uvloop which is a dependency of fastapi i beleive

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fastapi recently excluded uvicorn as a dependency but uvicorn[standard] (which depends on uvloop) is already in vllm's requirements-common.txt so it is safe for now.

@simon-mo
simon-mo merged commit 9587b05 into vllm-project:main Aug 16, 2024
@njhill
njhill deleted the zmq-uvloop branch August 16, 2024 15:38
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
LeiWang1999 pushed a commit to LeiWang1999/vllm-bitblas that referenced this pull request Mar 26, 2025
Signed-off-by: LeiWang1999 <leiwang1999@outlook.com>
plasticchris pushed a commit to plasticchris/vllm that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants