JustGRPO icon indicating copy to clipboard operation
JustGRPO copied to clipboard

enquiry about transformers version

Open dayu45 opened this issue 8 months ago • 2 comments

Hi author,

Your work is very valuable!

I encountered this issue while trying to use the training script: ”[rank0]: AssertionError: Non-root FSDP instance's _is_root should not have been set yet or should have been set to False“

The strange thing is, I didn't encounter this problem initially. Later, I accidentally modified some package versions, and this issue appeared. I suspect it's caused by version mismatches in frameworks such as torch/accelerate/transformers, but I haven't been able to revert to the correct versions.

Finally, on Claude's recommendation, I temporarily fixed this issue by changing line 153 in train.py from: model=accelerator.unwrap_model(model), to: model=model,

However, I still wanted to ask the author if you could provide the specific versions of torch/accelerate/transformers used?

Thank you very much!

dayu45 avatar Mar 09 '26 13:03 dayu45

Hi, the specific versions are below:

accelerate 1.13.0 torch 2.5.1 transformers 4.51.3

Hope this helps!

nzl-thu avatar Mar 11 '26 07:03 nzl-thu

Hi, we’ve updated our codebase and fixed this issue. You can try the new version if the previous suggestion doesn’t work for you.

LeapLabTHU avatar Mar 24 '26 05:03 LeapLabTHU