ml-stable-diffusion icon indicating copy to clipboard operation
ml-stable-diffusion copied to clipboard

Could not initialize NNPACK! Reason: Unsupported hardware.

Open alelordelo opened this issue 2 years ago • 5 comments

Thanks Apple ML team for this!

I got this warning: Could not initialize NNPACK! Reason: Unsupported hardware.

Is this expected?

Torch version 1.13.0 has not been tested with coremltools. You may run into unexpected errors. Torch 1.12.1 is the most recent version that has been tested. !!! macOS 13.1 and newer or iOS/iPadOS 16.2 and newer is required for best performance !!! INFO:main:Initializing StableDiffusionPipeline with stabilityai/stable-diffusion-2-base.. Fetching 12 files: 100%|█████████████████████| 12/12 [00:00<00:00, 10409.85it/s] INFO:main:Done. INFO:main:Converting vae_decoder [W NNPACK.cpp:53] Could not initialize NNPACK! Reason: Unsupported hardware. /usr/local/Caskroom/miniforge/base/envs/coreml_stable_diffusion/lib/python3.8/site-packages/diffusers/models/resnet.py:109: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! assert hidden_states.shape[1] == self.channels /usr/local/Caskroom/miniforge/base/envs/coreml_stable_diffusion/lib/python3.8/site-packages/diffusers/models/resnet.py:122: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! if hidden_states.shape[0] >= 64:

alelordelo avatar Dec 02 '22 14:12 alelordelo

same for me, and I installed torch==1.12.1, same error

joaorafaelm avatar Dec 04 '22 05:12 joaorafaelm

same here. Torch 1.13.0 though.

vlsalsa avatar Dec 04 '22 23:12 vlsalsa

anyone figured this out? same issue same versions

JakubMazur avatar Dec 12 '22 11:12 JakubMazur

Torch 1.13.1 and Venture 13.2.1 on Mac, same issue for me, any solution for this problem?

YangSuoly avatar Feb 23 '23 07:02 YangSuoly

I am getting this error too.... should we just wait ?

gschian0 avatar Jul 17 '23 00:07 gschian0