Closed tonystjack closed 1 year ago
+1
You probably shouldn't try to use MPS on a Mac with an Intel GPU. Try --use-cpu=all
.
--use-cpu=all means no gpu acceleration... no one has time for that. you may want to try launching with
--no-half --precision full
or as the error states...
Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).
i have tried this before. while it didnt cause a system failure, it def impacts system performance significantly. so use at your own risk.
Is there an existing issue for this?
What happened?
在运行“stable-diffusion-webui”时,报错提示 “RuntimeError: MPS backend out of memory (MPS allocated: 4.06 GB, other allocations: 2.73 GB, max allowed: 6.77 GB). Tried to allocate 5.00 MB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).”
Steps to reproduce the problem
运行时mac电脑的运行内存还剩下5G左右
What should have happened?
正常渲染图片
Version or Commit where the problem happens
v1.4.1
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
MacOS
What device are you running WebUI on?
CPU
Cross attention optimization
sdp
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
否
Console logs
Additional information
我的电脑是mac电脑 型号: MacBook Pro 16-inch, 2019 处理器: 2.3 GHz 八核Intel Core i9 图形卡: Intel UHD Graphics 630 1536 MB 内存 16 GB 2667 MHz DDR4 MacOS: 13.4.1 (c) (22F770820d)