If you install version 0.19.0 of accelerate listed in the current requirements.txt, you will encounter the following error.
Therefore, I have updated the accelerate version to the latest one.
ImportError: cannot import name 'is_npu_available' from 'accelerate.utils' (/home/dodo/.conda/envs/llm_py310/lib/python3.10/site-packages/accelerate/utils/init.py)
If you install version 0.19.0 of accelerate listed in the current requirements.txt, you will encounter the following error. Therefore, I have updated the accelerate version to the latest one.
ImportError: cannot import name 'is_npu_available' from 'accelerate.utils' (/home/dodo/.conda/envs/llm_py310/lib/python3.10/site-packages/accelerate/utils/init.py)