verl icon indicating copy to clipboard operation
verl copied to clipboard

one step off policy中dapo_7b_math_fsdp2训练效率没有提升,无法复现

Open KAMiPan opened this issue 1 year ago • 6 comments

我在使用 verl 0.5.0 的 recipe: one_step_off_policy 时遇到了一些困惑,想向你们请教。

我使用的是你们提供的脚本: https://github.com/volcengine/verl/blob/main/recipe/one_step_off_policy/dapo_7b_math_fsdp2_4_12.sh

但在实际训练过程中,未能复现你们在 W&B 上展示的效果: https://wandb.ai/hou-zg-meituan/one-step-off-policy/workspace?nw=nwuserhouzg

我的问题如下:

  1. 我分别使用 dapo_7b_math_fsdp2_4_12.sh 和 dapo_7b_math_fsdp2_colocate.sh 进行训练,但观察到两者的 timing_s/step 基本没有差异,也就是说 one step off policy 的训练效率并未体现出提升。

  2. 你们只公开了 dapo_7b_math_megatron 的 source data,能否提供一下 dapo_7b_math_fsdp2 的训练曲线?

  3. 从资源配置上看,colocate 的 GPU 资源更多,理论上 timing_s/old_log_prob 的耗时应该更少。我的实验结果确实符合这一预期,但在你们提供的曲线中,colocate 的 timing_s/old_log_prob 反而更大,这点比较困惑。

以下是我的训练效果:

Image Image

希望你们能解答这几个问题,感谢!

KAMiPan avatar Aug 28 '25 08:08 KAMiPan

mark一下,对此我也比较好奇。等待大佬回复

BossBaby1024 avatar Aug 30 '25 06:08 BossBaby1024

+1

lizipao avatar Aug 31 '25 09:08 lizipao

而且直接跑样例grpo_3b_gsm8k_fsdp2_2_6.sh会遇到以下问题,我看其他issue也存在这个问题

  File "/workspace/verl-main/recipe/one_step_off_policy/ray_trainer.py", line 284, in init_workers
    self.sync_rollout_weights()
  File "/workspace/verl-main/recipe/one_step_off_policy/ray_trainer.py", line 300, in sync_rollout_weights
    ray.get(self.rollout_wg.sync_rollout_weights())
ray.exceptions.RayTaskError(NcclError): ray::WorkerDict.rollout_sync_rollout_weights() (pid=722413, ip=192.158.0.15, actor_id=d38251a96850052780bbce9501000000, repr=<verl.single_controller.ray.base.WorkerDict object at 0x7f163c4f1960>)
  File "/workspace/verl-main/verl/single_controller/ray/base.py", line 726, in func
    return getattr(self.worker_dict[key], name)(*args, **kwargs)
  File "/workspace/verl-main/verl/single_controller/base/decorator.py", line 515, in inner
    return func(*args, **kwargs)
  File "/workspace/verl-main/recipe/one_step_off_policy/megatron_workers.py", line 91, in sync_rollout_weights
    collective.broadcast(tensor, src_rank=0, group_name="actor_rollout")
  File "/usr/local/lib/python3.10/dist-packages/ray/util/collective/collective.py", line 402, in broadcast
    g.broadcast([tensor], opts)
  File "/usr/local/lib/python3.10/dist-packages/ray/util/collective/collective_group/nccl_collective_group.py", line 269, in broadcast
    self._collective(tensors, tensors, collective_fn)
  File "/usr/local/lib/python3.10/dist-packages/ray/util/collective/collective_group/nccl_collective_group.py", line 604, in _collective
    comms = self._get_nccl_collective_communicator(key, devices)
  File "/usr/local/lib/python3.10/dist-packages/ray/util/collective/collective_group/nccl_collective_group.py", line 451, in _get_nccl_collective_communicator
    nccl_util.groupEnd()
  File "cupy_backends/cuda/libs/nccl.pyx", line 209, in cupy_backends.cuda.libs.nccl.groupEnd
  File "cupy_backends/cuda/libs/nccl.pyx", line 242, in cupy_backends.cuda.libs.nccl.groupEnd
  File "cupy_backends/cuda/libs/nccl.pyx", line 128, in cupy_backends.cuda.libs.nccl.check_status
cupy_backends.cuda.libs.nccl.NcclError: NCCL_ERROR_SYSTEM_ERROR: unhandled system error (run with NCCL_DEBUG=INFO for details)

pia7a avatar Aug 31 '25 12:08 pia7a

@pia7a hello, have you solved this problem?

renjie130 avatar Sep 03 '25 03:09 renjie130

@pia7a hi,

You can try increasing the candidate length. For example, in our demo, the candidate length is set to 20k.

You can observe the difference between "gen" and "generate_sequence" under the colocated scenario. Here, "generate_sequence" represents the maximum rollout time, while "gen" stands for the average time. When the difference between the two is significant (indicating a prominent long-tail effect), considerable gains can be achieved.

ArronHZG avatar Oct 17 '25 12:10 ArronHZG

English: This issue is being closed under the scheduled stale-issue cleanup rule.

Evidence checked:

  • Issue: https://github.com/verl-project/verl/issues/3250
  • Comments API: https://api.github.com/repos/verl-project/verl/issues/3250/comments
  • Timeline API: https://api.github.com/repos/verl-project/verl/issues/3250/timeline
  • Latest public reply or public reference from an account other than the current scheduled task account (Kirrito-k423): 2025-10-17T12:42:48Z
  • Current run date: 2026-07-18; that latest non-self public activity is more than 6 months old.

Because the most recent non-self public reply/reference is older than 6 months, this issue meets the scheduled cleanup standard and is being closed. If the author or community can still provide a current reproduction, new evidence, or additional requirement context, please comment with those details and ask maintainers to reopen, or open a new issue with updated information.

中文: 本 issue 按定时清理规则关闭。

已检查的证据:

  • Issue 页面:https://github.com/verl-project/verl/issues/3250
  • Comments API:https://api.github.com/repos/verl-project/verl/issues/3250/comments
  • Timeline API:https://api.github.com/repos/verl-project/verl/issues/3250/timeline
  • 最近一次由当前定时任务账号(Kirrito-k423)之外账号产生的公开回复或公开引用时间:2025-10-17T12:42:48Z
  • 本轮运行日期:2026-07-18;该最近非本人公开互动已经超过 6 个月。

由于最近一次非本人公开回复/引用已经超过 6 个月,本 issue 命中定时清理标准,因此关闭。如果作者或社区成员仍能提供当前版本的复现、新证据或更完整的需求背景,请继续评论并请求维护者重开,或用更新后的信息创建新 issue。

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

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