由于accelerate库的源码可能会随着版本更新而变化,因此is_mlu_available这个函数或变量可能在你当前使用的版本中不存在。你可以尝试查看accelerate.utils模块的源码(通常位于你的Python环境中的site-packages/accelerate/utils.py),确认该函数或变量是否存在。 如果源码中不存在is_mlu_available,那么你需要考虑使用其他方法或...
lib/python3.10/site-packages/peft/utils/other.py", line 24, in <module> from accelerate.utils import is_npu_available, is_xpu_available ImportError: cannot import name 'is_npu_available' from 'accelerate.utils' (/home/magic/miniconda3/envs/dbgpt_hub/lib/python3.10/site-packages/accelerate...
accelerate.utils import is_npu_available, is_xpu_available ImportError: cannot import name'is_npu_available'from'accelerate.utils'(C:\AI\oobabooga_windows\installer_files\env\lib\site-packages\accelerate\utils\__init__.py) Done!Press any key tocontinue.....
ImportError: cannot import name 'is_npu_available' from 'accelerate.utils' 1. 解决方法 pip uninstall peft pip install peft@git+https://github.com/huggingface/peft.git 1. 2. 卸载后重新安装就可以了。
ImportError: cannot import name 'is_npu_available' from 'accelerate.utils' (/usr/local/conda/lib/python3.9/site-packages/accelerate/utils/__init__.py) The above exception was the direct cause of the following exception: Traceback (most recent call last): ...
MLU devices : Checks if mlu is available via an cndev-based check which won't trigger the drivers and leave mlu Check devices(cuda and mlu) is available with patch_environment . Move clear_environment and patch_environment into src/accelerate/utils/environment.py to avoid circular import . Be...