Open Gitterman69 opened 2 years ago
Thank you for creating an issue, I have had this same problem on my M1 Pro with the script and with other attempted installs of SD
Quick update: It seems to get fixed if you run the command "PYTORCH_ENABLE_MPS_FALLBACK: 1" after the installation in terminal again.... it fixed it for me somehow and now it really works with MPS support.....
I am looking at it today.
had to reinstall - same error and thus slow it/s :(
The solution suggested does not work on my end. I still get the same warning message. UserWarning: The operator 'aten::nonzero' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications
Need to find another fix....
Thanks for your script - I got it running after reinstalling it several times (folder structures got mixed up - but all good now). I found out, that your diffusion fork seems to have the same problem as the manual lstein installation (see below).
The full log can be found below - I would be super happy to find out how to fix this error in order to really use MPS and not CPU on M1 pro :)
/Users/bamboozle/stable-diffusion/stable-diffusion/ldm/modules/embedding_manager.py:153: UserWarning: The operator 'aten::nonzero' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/miniforge3/conda-bld/pytorch-recipe_1660136156773/work/aten/src/ATen/mps/MPSFallback.mm:11.)
Thanks so much!