GPU based StableDiffusion in python is not working in MAC

#188
by muralimanohar - opened

"venv/lib/python3.9/site-packages/torch/cuda/init.py", line 221, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

system_profiler SPDisplaysDataType | grep "NVIDIA" returns empty basically mac doesn't have NVIDIA based GPU, how to overcome this limitation in mac

Recent update : i tried to use CPU instead of GPU, still i have issues, Can you suggest me a right revision to test with cpu or suggest some solution for this.

"RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'"

CompVis org

Hi @muralimanohar ! Macs don't have CUDA support (unless in rare cases with external GPUs attached to the computer). If you have an M1/M2 computer, then you can use the mps device for hardware acceleration, as described here: https://huggingface.co/docs/diffusers/optimization/mps

Hope that helps!

Sign up or log in to comment