ComfyUI-AppleSilicon-Optimized Adds Metal Kernels, 2 to 3.7x on Mac

ComfyUI Wikinews

ComfyUI-AppleSilicon-Optimized swaps attention, sampling and VAE paths for Metal kernels: 3.66x on MOSS-Image, 2.3x on Qwen-Image 2.1, no workflow changes.

ComfyUI-AppleSilicon-Optimized patches ComfyUI at startup so attention, sampling and VAE work run as hand-written Metal kernels. The author's December 2 benchmarks show 2 to 3.7x on image models against stock ComfyUI v0.47.1 on an M5 Ultra.

It installs like any other custom node. There are no new nodes to wire, no MLX conversion step, and no second copy of every model: your existing workflows run unchanged, just faster.

The pack also makes FP8 and INT8 checkpoints run on MPS, including the INT8 ConvRot files that most new models now ship.

Benchmark card for image models

The author's card, measured December 2, 2026 on an M5 Ultra with 80 GPU cores and ComfyUI v0.47.1. Warm second run, same workflow and machine.

Speed on image models

WorkflowStockWith the packSpeedup
MOSS-Image SFT, 1024² / 25 steps68.9 s18.8 s3.66x
Fibo 2.0 Dev, 1024² / 30 steps87.9 s31.6 s2.78x
Krea 2 Turbo, 1024² / 8 steps15.4 s6.0 s2.54x
Ideogram 4, 1024² / 12 steps43.3 s17.4 s2.49x
Fibo 2.0 Edit Turbo, 1024² / 4 steps16.2 s6.9 s2.36x
Flux.2 Klein 9B, 1024² / 4 steps5.6 s2.4 s2.32x
Qwen-Image 2.1, 1024² / 25 steps28.8 s12.5 s2.30x
Z-Image Turbo, 1024² / 8 steps7.8 s3.4 s2.26x
Flux.3 Base, 1024² / 50 steps69.6 s33.0 s2.11x

SDXL is the exception at about 1.03x, and edit workflows land between 1.6 and 2.4x. The repository's own tables put SDXL at 2.61 s against 2.40 s.

Video, audio and upscaling

Benchmark card for video, music and upscaling

Same machine and session: YuE2, background removal, LTX 2.5, MiniMax H3, Wan 2.2 and SeedVR2.

The largest numbers come from jobs stock ComfyUI runs on the CPU: YuE2's language model goes from 38 min 40 s to 31.6 s for a full song, and BiRefNet background removal drops from 21.5 s to 0.74 s for four frames. Video models gain less, roughly 1.5 to 2x: LTX 2.5 at 1280 × 704 with 121 frames runs 90.6 s against 46.0 s, MiniMax H3 at 864 × 480 with 124 frames runs 258.2 s against 158.6 s.

What kind of Mac it needs

HardwareStatus in the repository
M5 Ultra, macOS 27, Metal 4.1 toolchainFully validated, 35-case regression on ComfyUI v0.47.1
M5 MaxTested during earlier optimization work, not on the current stack
M5 Pro, M6 and newer non-UltraRoutes enabled, never benchmarked
M1 to M4, older macOSExperimental: portable kernels only, speed and parity unverified
Intel Macs, Windows, LinuxUntouched
The 2 to 3.7x figures are M5 Ultra numbers on macOS 27. On M1 to M4 the pack only attempts portable fallback kernels, so treat it as a compatibility layer for INT8 checkpoints rather than a speedup.

Installing it

In ComfyUI-Manager choose Install via Git URL and enter https://github.com/luix93/ComfyUI-AppleSilicon-Optimized, or clone it into ComfyUI/custom_nodes. Setup executes at prestartup, before Torch loads, and prints Setup verified when it is done. Setup selects PyTorch 2.15.0 with torchvision 0.29.2, or 2.14.1 on Python 3.10, and may replace a newer untested build. Keep ComfyUI in a virtual environment.

If another extension imports Torch before setup runs, the pack skips that launch; the README points to a manual installer for that case.

What to verify yourself

The author reruns a 35-case suite on every ComfyUI release and only claims byte-identical output for the routes listed in the numerics policy. Opt-in INT8 attention is approximate by design and is never on by default. In the release thread an M2 Max owner offered to run timings, and no one has yet published independent numbers or a comparison against Draw Things or the older ComfyUI-AppleSilicon-int8-Fast node.

The repository is on GitHub, with the benchmark reports and regression logs in benchmarks/.

Comments

Sign in with GitHub to join the discussion.

Loading comments…
ComfyUI-AppleSilicon-Optimized Adds Metal Kernels, 2 to 3.7x on Mac | ComfyUI Wiki