mirror of
https://github.com/volcengine/verl.git
synced 2025-10-20 13:43:50 +08:00
Revert "[worker] fix: create a new event loop if none exists when building ro…"
This reverts commit e0e352b566f7ce6badd62dfe3cce3f52675e31a7.
This commit is contained in:
@ -630,7 +630,8 @@ class ActorRolloutRefWorker(Worker, DistProfilerExtension):
|
||||
# For sync mode, we directly switch to trainer mode here.
|
||||
# For async mode, we can't call run_until_complete here, so we will switch to trainer mode in AgentLoopManager.
|
||||
if rollout_config.mode == "sync" and self._is_actor:
|
||||
asyncio.run(self.trainer_mode())
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(self.trainer_mode())
|
||||
|
||||
async def rollout_mode(self):
|
||||
"""Context switch hybridengine to rollout mode."""
|
||||
|
Reference in New Issue
Block a user