Skip to content

fix: update verl import paths for verl 0.7.1+ compatibility#480

Merged
kylemontgomery1 merged 2 commits into
rllm-org:mainfrom
Lidang-Jiang:fix/verl-import-path
Apr 4, 2026
Merged

fix: update verl import paths for verl 0.7.1+ compatibility#480
kylemontgomery1 merged 2 commits into
rllm-org:mainfrom
Lidang-Jiang:fix/verl-import-path

Conversation

@Lidang-Jiang

Copy link
Copy Markdown
Contributor

Summary

verl 0.7.1 refactored fully_async_policy.ray_trainer into separation.ray_trainer (verl-project/verl#5184), breaking imports in rllm/experimental/fully_async/.

Updated 3 files:

  • FullyAsyncRayPPOTrainerSeparateRayPPOTrainer (from verl.experimental.separation.ray_trainer)
  • FullyAsyncAgentLoopManagerAgentLoopManager (from verl.experimental.agent_loop)
  • fully_async_policy.fully_async_mainseparation.utils (for create_resource_pool_manager)

Fixes #470

Before
$ python -c "from rllm.experimental.fully_async.runner import AsyncAgentTrainer"
Traceback (most recent call last):
  ...
  from verl.experimental.fully_async_policy.ray_trainer import FullyAsyncRayPPOTrainer
ModuleNotFoundError: No module named 'verl.experimental.fully_async_policy.ray_trainer'
After

Import paths updated to match verl 0.7.1+ module structure:

  • verl.experimental.fully_async_policy.ray_trainerverl.experimental.separation.ray_trainer
  • verl.experimental.fully_async_policy.agent_loop.FullyAsyncAgentLoopManagerverl.experimental.agent_loop.AgentLoopManager
  • verl.experimental.fully_async_policy.fully_async_mainverl.experimental.separation.utils

All updated paths verified to exist in verl main branch.

Test plan

  • Verified all 3 new import paths exist in verl main
  • No other references to removed modules remain

verl 0.7.1 refactored fully_async_policy.ray_trainer into
separation.ray_trainer (PR verl-project/verl#5184). Update imports:

- FullyAsyncRayPPOTrainer → SeparateRayPPOTrainer
- FullyAsyncAgentLoopManager → AgentLoopManager
- fully_async_policy.fully_async_main → separation.utils

Fixes rllm-org#470

Signed-off-by: Lidang-Jiang <lidangjiang@gmail.com>
Signed-off-by: Lidang-Jiang <lidangjiang@gmail.com>
@kylemontgomery1

Copy link
Copy Markdown
Collaborator

Thanks for catching this! We have plans to integrate fully async into the verl backend of the unified trainer, but this is a needed fix in the meantime.

@kylemontgomery1 kylemontgomery1 merged commit 4520ad7 into rllm-org:main Apr 4, 2026
0 of 2 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.

ModuleNotFoundError: No module named 'verl.experimental.fully_async_policy.ray_trainer'

2 participants