Skip to content

Conversation

@wuxibin89
Copy link
Collaborator

What does this PR do?

Change vLLM method to async to unify with SGLang.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the vLLM rollout worker to use asyncio, unifying its interface with the SGLang worker. The changes correctly replace threading with asyncio tasks and use zmq.asyncio. However, the implementation has a critical flaw where synchronous, long-running operations are called directly within async methods, which will block the event loop and negate the benefits of asynchronicity. I've provided suggestions to run these blocking calls in a thread pool executor to make the implementation truly non-blocking.

@vermouth1992
Copy link
Collaborator

Shall we follow Gemini's suggestion?

@wuxibin89
Copy link
Collaborator Author

Shall we follow Gemini's suggestion?

No, these _init_worker, _load_model and execute_method method are intend to be block.

@vermouth1992 vermouth1992 merged commit 814e421 into volcengine:main Aug 11, 2025
53 of 58 checks passed
yellowbee686 pushed a commit to yellowbee686/verl that referenced this pull request Aug 11, 2025
…e#2982)

### What does this PR do?

Change vLLM method to async to unify with SGLang.
ChangyiYang pushed a commit to SwordFaith/verl that referenced this pull request Aug 16, 2025
…e#2982)

### What does this PR do?

Change vLLM method to async to unify with SGLang.
whatadayG pushed a commit to whatadayG/verl that referenced this pull request Sep 5, 2025
…e#2982)

### What does this PR do?

Change vLLM method to async to unify with SGLang.
WncFht pushed a commit to WncFht/verl that referenced this pull request Oct 10, 2025
…e#2982)

### What does this PR do?

Change vLLM method to async to unify with SGLang.
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.

2 participants