---
name: localairun-sd15-mac
description: Set up and verify LocalAIRun's Stable Diffusion 1.5 FP16 recipe with Comfy Desktop and Apple MPS on an Apple Silicon Mac with 16GB or more unified memory. Use when the user asks to install, configure, run, or test this exact Mac image-generation setup. Do not use for Windows, Linux, NVIDIA, AMD, SDXL, or a different checkpoint.
---

# LocalAIRun Stable Diffusion 1.5 on Apple Silicon

Follow the LocalAIRun execution recipe at:

https://localairun.com/recipes/apple-m4-16gb-sd15-comfy-desktop/

The target checkpoint is `v1-5-pruned-emaonly-fp16.safetensors`. The baseline run is one 512x512 image with batch size 1, 20 steps, CFG 7, Euler sampling, and the normal scheduler.

## Safety boundaries

- Explain the next action before taking it.
- Ask for confirmation immediately before downloading a large file, installing or launching an application, or changing files outside a temporary directory.
- Do not use `sudo`, disable Gatekeeper, bypass macOS security warnings, or install an unsigned replacement application.
- Use only the official ComfyUI documentation and the Comfy-Org checkpoint URL listed below.
- Never claim the setup worked unless the baseline image actually completes.
- Stop and report the exact blocker if the machine, operating system, disk, model hash, or application state does not satisfy the checks. A command-line signature diagnostic alone is advisory when the installer came from the official source and the user can complete the normal macOS installation; never disable Gatekeeper or bypass a macOS security warning.

## 1. Verify the Mac

Inspect, then summarize:

```bash
uname -m
sw_vers -productVersion
sysctl -n hw.memsize
df -h "$HOME"
```

Continue only when all of these are true:

- Architecture is `arm64`.
- macOS is version 13 or later.
- Unified memory is at least 16GB.
- At least 20GB of disk space is available.

If a requirement fails, do not install anything. Link the user back to the recipe and explain which requirement failed.

## 2. Install or verify Comfy Desktop

Official instructions:

https://docs.comfy.org/installation/desktop/macos

Check whether Comfy Desktop is already installed. If it is missing, ask the user before opening the official installer page or installing the application. Follow the official macOS desktop flow and select MPS when the accelerator option is shown. Do not substitute a third-party build.

Success check: ComfyUI opens without an installation or backend error and the selected accelerator is MPS, not CPU-only mode.

## 3. Load the core workflow

Official first-generation guide:

https://docs.comfy.org/get_started/first_generation

In ComfyUI, open Workflow, choose Browse Workflow Templates, and load the built-in Image Generation template. If the current Comfy Desktop build does not list that template, use the reviewed LocalAIRun core workflow instead:

https://localairun.com/workflows/apple-m4-16gb-sd15-comfy-desktop.json

Import it, refresh the workflow list, and verify that it contains only the seven core nodes used by this recipe. Do not install third-party custom nodes for the baseline test.

Success check: the workflow graph loads and reports only core nodes. Record whether the built-in template or the reviewed fallback was used.

## 4. Install the exact checkpoint

Official checkpoint:

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

Expected SHA-256:

```text
e9476a13728cd75d8279f6ec8bad753a66a1957ca375a1464dc63b37db6e3916
```

Use Comfy Desktop's Help menu to open its managed folder and then its models folder. Ask the user to confirm the actual `checkpoints` directory; do not guess or create a parallel ComfyUI installation.

After the user confirms the directory and approves the approximately 2.13GB download, download this exact file:

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

Verify the downloaded file with `shasum -a 256`. Delete the incomplete or mismatched file and stop if its hash differs from the expected value.

Success check: `v1-5-pruned-emaonly-fp16.safetensors` appears in the Load Checkpoint node after refreshing model definitions or restarting ComfyUI.

## 5. Run the comparable baseline

Use these settings:

- Width: 512
- Height: 512
- Batch size: 1
- Steps: 20
- CFG: 7
- Sampler: Euler
- Scheduler: normal
- Seed: 20260807
- Prompt: A small reading room beside a rain-covered window, warm practical lighting, realistic photography, detailed textures

Close other memory-heavy applications before running. Generate one image and wait for completion.

Success means one image is saved without an out-of-memory, missing-node, model-load, or backend error.

## 6. Report the result

Record:

- Mac model and unified memory
- macOS version
- Comfy Desktop version
- Whether the checkpoint loaded
- Whether the first image completed
- Time to first image, if measured
- Swap or memory pressure, if observed
- The final error line when the run fails

Open the structured report page:

https://localairun.com/recipes/apple-m4-16gb-sd15-comfy-desktop/report/?runMode=skill

Before opening the report, compare the actions actually taken with the six manual steps on the recipe page:

1. Verify the Mac before installing.
2. Install or verify Comfy Desktop.
3. Load the core image workflow.
4. Install and verify the exact checkpoint.
5. Generate the comparable baseline image.
6. Record and report the result.

Do not silently hide an adjustment just because the final image succeeded. Report a difference when the actual run required an added prerequisite, a different menu or folder path, a changed command, a skipped or reordered action, a version-specific workaround, or manual intervention that the recipe does not describe.

In the report, select `LocalAIRun Skill` or `Skill with manual intervention`, state whether the flow matched exactly, identify the affected area, and list the changed actions in execution order. Suggest a manual-step update when the correction is clear. If the flow matched exactly, explicitly report that too; this confirms that the published procedure remains current.

Remove private paths, account names, prompts, or unrelated logs before submitting. Success and failure reports are both useful. Reports are manually reviewed and do not automatically change LocalAIRun rankings.

## Final response

Finish with a concise status table covering hardware check, Comfy Desktop, MPS, workflow, checkpoint hash, baseline image, manual-step alignment, and report readiness. Separate verified facts from unverified or user-reported details.
