ImportError: cannot import name ‘is_npu_available‘ from ‘accelerate.utils
在做LoRa微调使用peft库的时候出现了下面的错误,
·
在做LoRa微调使用peft库的时候出现了下面的错误,
ImportError: cannot import name 'is_npu_available' from 'accelerate.utils'

解决方法:
pip uninstall peft
pip install peft@git+https://github.com/huggingface/peft.git

更多推荐




所有评论(0)