When you’re trying to run AUTOMATIC1111 web UI on your Apple silicon MAC. but you get an error.
Sep 16, 2023
...
File "/Users/home/Projects/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 2210, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: Placeholder storage has not been allocated on MPS device!
...
storage has not been allocated on MPS device! stable diffusion
...
On your root of the stable-diffusion-webui repo,
before you execute webui.sh, run the webui-macos-env.sh
$ webui-macos-env.sh
$ webui.sh
The easy installation instructions can be found here.
[Install AUTOMATIC1111’s Stable Diffusion WebUI on Mac M1/M2 \(Apple Silicon\)](https://aituts.com/stable-diffusion-mac-m1/)