在做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

Logo

一站式 AI 云服务平台

更多推荐