Getting cannot import name 'is_npu_available' from 'accelerate.utils'

I solved it using pip install --upgrade peft accelerate