lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
7.72k stars 739 forks source link

[Bug]: Loading SDXL model crashes unexpectedly. #549

Open kenneth55555 opened 6 months ago

kenneth55555 commented 6 months ago

Checklist

What happened?

I am using the --always-cpu flag to run exclusively on the CPU, however, upon attempting to load the SDXL model, it crashes instantly (owing to inadequate available RAM—having only 12GB in total, the system has to rely on virtual memory swapping, which is the fundamental reason for the crash). In the original web UI, the SDXL model loads properly and generates images without any problems.

Steps to reproduce the problem

None

What should have happened?

None

What browsers do you use to access the UI ?

No response

Sysinfo

None

Console logs

Loading weights [8421598e93] from E:\StableDiffusionForge\models\Stable-diffusion\AnythingXL_xl.safetensors
请按任意键继续. . .

Additional information

No response

Euphonique commented 6 months ago

I had a similar issue: When I load juggernautXL_v9Rdphoto2Lightning checkpoint and tried to generate an image, WebUI Forge crashed without any error in console.

I've disabled the swap file in windows settings, because I thought I don't need it with 32GB RAM. After switching it to managed by windows it works again.