RL icon indicating copy to clipboard operation
RL copied to clipboard

[TRAIN-2] DTensor async GRPO with dis-colocated generation hangs when tensor_parallel=2

Open anwithk opened this issue 6 months ago • 3 comments

Problem

Dis-colocated async GRPO on the DTensor backend hangs during training when tensor_parallel is set to 2. Setting tensor_parallel=1 unblocks training. This points to a synchronization issue that is specific to TP > 1.

Steps to reproduce

  1. Configure dis-colocated async GRPO with the DTensor backend and tensor_parallel: 2.
  2. Start training and observe a hang with no error output.
  3. Set tensor_parallel: 1 and confirm training proceeds normally.

Suggested fix

Audit synchronization barriers in the DTensor async rollout path for behavior that differs by tensor parallelism count.

anwithk avatar Jun 05 '26 19:06 anwithk

@anwithk please also add the screenshot

snowmanwwg avatar Jun 10 '26 21:06 snowmanwwg

Image

anwithk avatar Jun 10 '26 21:06 anwithk

I can't reproduce it:

https://wandb.ai/nvidia/nemorl-vdr-debug/runs/xat43z7t/logs qwen35-lora-dtensor-tp2-discoloc-async-2089993

Please provide repro guide like recipe/commit/container.

ZhiyuLi-Nvidia avatar Jun 11 '26 03:06 ZhiyuLi-Nvidia