InternVL
InternVL copied to clipboard
[Bug] cannot import name 'is_torch_mlu_available' from 'transformers.utils'
Checklist
- [ ] 1. I have searched related issues but cannot get the expected help.
- [ ] 2. The bug has not been fixed in the latest version.
- [ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
Describe the bug
请问下 我的transformer版本是4.37但是运行mpo的finetune脚本还是会又这个报错 原因是啥呀
Reproduction
a
Environment
a
Error traceback
你好,
这是因为mpo的finetune脚本中使用了trl包,这个包的高版本会使用到transformers中的is_torch_mlu_available函数。你可以考虑使用以下版本:
- transformers 4.45.1
- trl 0.10.1