# Help SD on Mac M1 Pro

**URL:** <https://discuss.pytorch.org/t/help-sd-on-mac-m1-pro/185488>\
**Category:** Mac OS X\
**Created:** [August 1, 2023, 3:21pm UTC](https://discuss.pytorch.org/t/help-sd-on-mac-m1-pro/185488 "2023-08-01T15:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmoktl](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/mmoktl/32/62816_2.png) [@mmoktl](https://discuss.pytorch.org/u/mmoktl)\
**Post date:** [August 1, 2023, 3:21pm UTC](https://discuss.pytorch.org/t/help-sd-on-mac-m1-pro/185488/1 "2023-08-01T15:21:21Z")

</div>

Dear Sir, All

I use Code about Stable Diffusion WebUI AUTOMATIC1111 on Mac M1 Pro 2021 (without GPU) , when I run then have 2 error :

1. Launching Web UI with arguments: --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate

no module ‘xformers’. Processing without…

no module ‘xformers’. Processing without…

No module ‘xformers’. Proceeding without it.

Warning: caught exception ‘Torch not compiled with CUDA enabled’, memory monitor disabled

1. RuntimeError: MPS backend out of memory (MPS allocated: 9.93 GB, other allocations: 2.03 GB, max allowed: 18.13 GB). Tried to allocate 7.43 GB on private pool. Use PYTORCH\_MPS\_HIGH\_WATERMARK\_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).

I try install Torch, Tensoflow to active GPU (virtual) and check have GPU, but the same error, this is file web-user.bat :

git pull

@ echo off

set PYTHON=

set GIT=

set VENV\_DIR=

set COMMANDLINE\_ARGS= --xformers --autolaunch --skip-version-check --precision full --no-half --skip-torch-cuda-test --listen --port 9999 --disable-safe-unpickle --deepdanbooru

call webui.bat

Pls help me, many thanks

---

<div class="post-metadata">

**Author:** ![bekocak](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/bekocak/32/63576_2.png) [@bekocak](https://discuss.pytorch.org/u/bekocak)\
**Post date:** [August 29, 2023, 4:36pm UTC](https://discuss.pytorch.org/t/help-sd-on-mac-m1-pro/185488/2 "2023-08-29T16:36:14Z")

</div>

Hi, have you found the solution?

---

<div class="post-metadata">

**Author:** ![Valentino](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/valentino/32/66118_2.png) [@Valentino](https://discuss.pytorch.org/u/Valentino)\
**Post date:** [December 9, 2023, 8:35am UTC](https://discuss.pytorch.org/t/help-sd-on-mac-m1-pro/185488/3 "2023-12-09T08:35:30Z")

</div>

same exact problem, have you found any solutions?  
are you running on an MBP M1 base?
