enquiry about transformers version
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!
Hi, the specific versions are below:
accelerate 1.13.0 torch 2.5.1 transformers 4.51.3
Hope this helps!
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.