Skip to content

ComfyUI on macOS

Basic SD1.5 Workflow

Drag into ComfyUI

Prompt execution failed Value not in list: ckpt_name: 'v1-5-pruned-emaonly-fp16.safetensors' not in []

https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/resolve/main/v1-5-pruned-emaonly-fp16.safetensors

Once downloaded, move the model file into the Documents/ComfyUI/models/checkpoints/ folder on your Mac.

📂 Documents/
├── 📂 ComfyUI/
│   ├── 📂 models/
│   │   ├── 📂 checkpoints/
│   │   |   └── v1-5-pruned-emaonly-fp16.safetensors

comfy.settings.json

Open a terminal

cd ~ # if not already in your home folder
cd Documents/ComfyUI/user/default
nano comfy.settings.json

Default

The value is empty by default.

"Comfy.Server.LaunchArgs": {},

CPU Only

Fixes most memory problems, but is extremely slow.

"Comfy.Server.LaunchArgs": {"cpu": ""},

MPS backend out of memory

These suggestions may help, but not always.

Try adding the PYTORCH_MPS_HIGH_WATERMARK_RATIO setting into main.py.

Open a terminal

cd /Applications/ComfyUI.app/Contents/Resources/ComfyUI
sudo nano main.py
# ... exisiting code
import os # <-- find this line
os.environ["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "0.0" # <-- add this line after it
# ... exisiting code

Another option to try is to add these settings to comfy.settings.json

  "Comfy.Server.LaunchArgs": {
    "force-fp16": "",
    "use-split-cross-attention": "",
    "disable-smart-memory": ""
  },