verl icon indicating copy to clipboard operation
verl copied to clipboard

ModuleNotFoundError: No module named 'verl.single_controller.ray.megatron'

Open DhruvBhatia0 opened this issue 1 year ago • 2 comments

System Info

I am trying to run something that uses the megatron backend and got this error

Traceback (most recent call last):
  File "/home/ubuntu/CODE/rllm/examples/deepscaler/train_deepscaler_megatron.py", line 26, in main
    trainer.train()
  File "/home/ubuntu/CODE/rllm/rllm/trainer/agent_trainer.py", line 94, in train
    self._train_verl()
  File "/home/ubuntu/CODE/rllm/rllm/trainer/agent_trainer.py", line 143, in _train_verl
    ray.get(
  File "/home/ubuntu/miniconda3/envs/rllm_megatron/lib/python3.10/site-packages/ray/_private/auto_init_hook.py", line 22, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/home/ubuntu/miniconda3/envs/rllm_megatron/lib/python3.10/site-packages/ray/_private/client_mode_hook.py", line 104, in wrapper
    return func(*args, **kwargs)
  File "/home/ubuntu/miniconda3/envs/rllm_megatron/lib/python3.10/site-packages/ray/_private/worker.py", line 2972, in get
    values, debugger_breakpoint = worker.get_objects(
  File "/home/ubuntu/miniconda3/envs/rllm_megatron/lib/python3.10/site-packages/ray/_private/worker.py", line 1031, in get_objects
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(ModuleNotFoundError): ray::TaskRunner.run() (pid=3015752, ip=172.31.8.204, actor_id=a043c4e498d81b69bf45614f01000000, repr=<rllm.trainer.verl.train_agent_ppo.TaskRunner object at 0x75c88892be50>)
  File "/home/ubuntu/CODE/rllm/rllm/trainer/verl/train_agent_ppo.py", line 122, in run
    from verl.single_controller.ray.megatron import NVMegatronRayWorkerGroup
ModuleNotFoundError: No module named 'verl.single_controller.ray.megatron'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

The only files in verl/single_controller/ray/megatron are __init__.py and base.py

am i missing something?

Information

  • [ ] The official example scripts
  • [x] My own modified scripts

Tasks

  • [x] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

Follow docs in verl/docs/examples/ppo_code_architecture.rst or verl/examples/ray/tutorial.ipynb

Expected behavior

import should work without not found error

DhruvBhatia0 avatar Nov 22 '25 06:11 DhruvBhatia0

Hi I think this is an issue on the rLLM side since its nightly version is using v0.6.1 of verl while the script described above haven't uploaded it. I will send a PR to patch it.

listar2000 avatar Nov 22 '25 08:11 listar2000

本轮定时清理检查发现,这个 issue 最近一次非当前运行账号(Kirrito-k423)的公开回复或公开引用已经超过 6 个月,因此按社区 issue 定时清理标准关闭。

证据:

  • latest_non_self_reply_or_reference_at: 2025-11-22T08:37:11Z
  • 来源类型: comment, actor: listar2000
  • Issue: https://github.com/verl-project/verl/issues/4235
  • Comments API: https://api.github.com/repos/verl-project/verl/issues/4235/comments
  • Timeline API: https://api.github.com/repos/verl-project/verl/issues/4235/timeline
  • Latest public item: https://github.com/verl-project/verl/issues/4235#issuecomment-3566127294

如果作者或社区成员仍能提供新的复现、证据或需求背景,欢迎继续评论请求重开,或创建带有最新信息的新 issue。

English: This scheduled triage found that the latest public reply or public reference from an account other than the current automation account (Kirrito-k423) is older than 6 months, so this issue is being closed under the scheduled stale-issue cleanup policy.

Evidence:

  • latest_non_self_reply_or_reference_at: 2025-11-22T08:37:11Z
  • Source type: comment, actor: listar2000
  • Issue: https://github.com/verl-project/verl/issues/4235
  • Comments API: https://api.github.com/repos/verl-project/verl/issues/4235/comments
  • Timeline API: https://api.github.com/repos/verl-project/verl/issues/4235/timeline
  • Latest public item: https://github.com/verl-project/verl/issues/4235#issuecomment-3566127294

If the author or another community member can provide a fresh reproduction, evidence, or updated requirement context, please comment to request reopening or open a new issue with the latest details.

This response was generated by a scheduled Codex GPT5.5 issue processing task.

Kirrito-k423 avatar Jul 23 '26 01:07 Kirrito-k423