verl icon indicating copy to clipboard operation
verl copied to clipboard

dynamic-cp split the batch into local_cp_size sub-batches bug

Open liujia-cc opened this issue 5 months ago • 0 comments

System Info

https://github.com/verl-project/verl/blob/main/verl/utils/megatron_utils.py#L1629 Assuming len(seq_len_effective) = 9 and local_dp_size = 4, then when distributing data, there will be a DP rank that receives no data. This situation also exists when len(seq_len_effective) < local_dp_size.

Information

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

Tasks

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

Reproduction

Expected behavior

liujia-cc avatar Jun 17 '26 09:06 liujia-cc