Acly / krita-ai-diffusion

Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.
https://www.interstice.cloud
GNU General Public License v3.0
6.47k stars 312 forks source link

How do I MPS High Watermark Ratio=0.0 WHERE IS THE FILE AND WHICH LINE? #835

Closed jinreiyu closed 2 months ago

jinreiyu commented 3 months ago

Hello devs,

I get an error when trying to use generative fill and I understand that my M1 8gb doesnt have enough ram but I would still like to try to PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 but I dont know where the file I need to modify is and what line in this mystery file to change. Thank you for your help

Here's the error that I get when I run the generative fill: tempImageDsXWIi

Server execution error: MPS backend out of memory (MPS allocated: 6.63 GB, other allocations: 18.84 MB, max allowed: 9.07 CB). Tried to allocate 2.77 GB en private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for

victoraavila commented 3 months ago

Hey! Just went through this issue on vanilla PyTorch.

Run the following in your terminal:

export PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0

Or just delete it with:

unset PYTORCH_MPS_HIGH_WATERMARK_RATIO