Xiong Xiqiao
Xiong Xiqiao
Same problem. But I need `use_dynamic_bsz:True` and `use_remove_padding:True` for long context. How can I solve it?
This fix works for me: Add the following line to`verl/workers/actor/dp_actor.py` at line 94: ```python position_ids_rmpad = position_ids_rmpad - 1 ``` So the updated code becomes: ```python # unpad the position_ids...
I reviewed the code of [PRIME](https://github.com/PRIME-RL/PRIME/blob/18ad596f08d487bb546d80d738d99ec697bd2e75/training/verl/workers/actor/dp_prime.py#L126) ```python for i, step_end in enumerate(step_ends): for j in range(len(step_end)): step_range = [min(step_end[j - 1] + 1, response_length - 1) if j > 0...
参考一下https://github.com/QwenLM/Qwen2-VL/issues/182 不知道能不能解决你的问题
> LoRA still works! you can just pass a LoraConfig to the GRPOTrainer and it'll use it with your model for the GRPO run. > > trainer = vf.GRPOTrainer( >...