Skip to content

[trainer] feat: A runnable separate async trainer - #6790

Merged
wuxibin89 merged 2 commits into
verl-project:mainfrom
Begunner:separate-async
Jun 17, 2026
Merged

wuxibin89 merged 2 commits into
verl-project:mainfrom
Begunner:separate-async

Conversation

@Begunner

Copy link
Copy Markdown
Collaborator

What does this PR do?

See above.
Currently the colocated group never switches to rollouter, similar to the fully async implementation.
Switch and offload strategies will be introduced later.

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

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.

Code Review

This pull request enables separate async training by removing the NotImplementedError in PPOTrainerSeparateAsync and passing start_rank to LLMServerManager to prevent Ray named-actor collisions between hybrid and standalone replicas. Additionally, the on_validate_end method was removed, and TODOs were added regarding auto-offload configuration. Feedback on the changes suggests updating the type annotation of start_rank in _initialize_llm_servers to Optional[int] to match its default value of None.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

return instance

async def _initialize_llm_servers(self, start_rank: int = 0):
async def _initialize_llm_servers(self, start_rank: int = None):

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.

high

The type annotation for start_rank is specified as int, but its default value is set to None. To ensure type safety and prevent static analysis or type checker warnings, the type should be updated to Optional[int].

Suggested change
async def _initialize_llm_servers(self, start_rank: int = None):
async def _initialize_llm_servers(self, start_rank: Optional[int] = None):

@wuxibin89
wuxibin89 merged commit 1d76c23 into verl-project:main Jun 17, 2026
93 of 130 checks passed
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