popping

Results comments of popping

> > [rankN]:[W ProcessGroupNCCL.cpp:4071] Warning: An unbatched P2P op (send/recv) was called on this ProcessGroup with size 4. In lazy initialization mode, this will result in a new 2-rank NCCL...

> > > [rankN]:[W ProcessGroupNCCL.cpp:4071] Warning: An unbatched P2P op (send/recv) was called on this ProcessGroup with size 4. In lazy initialization mode, this will result in a new 2-rank...

suggestion from claude code. 还是一样。warning 里仍然说 "lazy initialization mode",说明 TORCH_NCCL_USE_COMM_NONBLOCKING=0 没起作用——这个环境变量控制的可能不是这里的 lazy init。 所有软件层面的尝试都没效果。这个 hang 发生在 megatron-core 0.17.0 的 pipeline parallel 1F1B schedule 内部,warning 之后某些 rank 的 send/recv 配对不上。 1....

> 感觉不是 unbatched P2P op 这个warning的原因。会不会是环境的问题。 感谢回复,我已经参考了https://github.com/modelscope/ms-swift/issues/8231 里的环境还是不行

> [ms-swift/swift/megatron/init.py](https://github.com/modelscope/ms-swift/blob/e18b2ee839848b2ce5c232d0b303bf247f38e4f8/swift/megatron/init.py#L216) > > Line 216 in [e18b2ee](/modelscope/ms-swift/commit/e18b2ee839848b2ce5c232d0b303bf247f38e4f8) > > _patch__batched_p2p_ops() > 这里注释掉,看看能跑嘛 > > 还有py-spy dump pid xxx 看看卡在哪行代码了 Thread 30560 (active): "MainThread" irecv (torch/distributed/distributed_c10d.py:2536) batch_isend_irecv (torch/distributed/distributed_c10d.py:2854) _communicate_shapes (core/pipeline_parallel/p2p_communication.py:257)...