ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Can it run on M1?

Open guangxinzhao opened this issue 1 year ago • 2 comments

Can it run on M1?

guangxinzhao avatar Mar 17 '23 15:03 guangxinzhao

Yes, but only with CPU-based generation, which takes over 3.1 seconds per generation-step on an M1 Ultra. To prepare the installation, make a local copy of ComfyUI, set up Miniconda, open a Terminal in the ComfyUI folder, and then:

conda create -n comfyui python=3.10 -y
conda activate comfyui
pip install -r requirements.txt

Run the web interface with:

conda activate comfyui && python ./main.py --cpu

And open the browser to http://127.0.0.1:8188

thinkyhead avatar Mar 20 '23 01:03 thinkyhead

Hope this pull request gets accepted soon. https://github.com/comfyanonymous/ComfyUI/pull/244 But for now you can use fork from this PR. It's ~3 times faster than CPU.

GaidamakUA avatar Mar 24 '23 17:03 GaidamakUA

@GaidamakUA how to test / check if this additional magic repo to make the MPS faster actually works?

enzyme69 avatar Mar 31 '23 21:03 enzyme69

@enzyme69 Forget it. My PR was accepted. ComfyUI is now GPU accelerated on Macs.

GaidamakUA avatar Apr 01 '23 17:04 GaidamakUA

@comfyanonymous Please, close the issue. It is solved.

GaidamakUA avatar Apr 01 '23 17:04 GaidamakUA