XLabs-AI / x-flux-comfyui

Apache License 2.0
1.11k stars 73 forks source link

Memory is not beeing freed somewhere, 2 errors #41

Open Dawgmastah opened 3 months ago

Dawgmastah commented 3 months ago

I have a 3090ti, for starters, the only way the controlnet doesnt OOM is by running flux-dev as fp8 (Which lowers lora compatibilty, its the only OOM ive ever gotten with my current settings, Comfyui is not going into lowvram mode.

The actual problems are:

1.- After an OOM the workflow becomes stuck, VRAM is not freed, the queue cant be cleared and only way out is to restart Comfyui 2.- I can run fine the first time, after image execution and generation if I run the workflow a second time I get an OOM, this means something has not been cleared properly and remained in VRAM.

synap5e commented 3 months ago

I also encountered an unexpected OOM similar to this where I could not free the VRAM without restarting comfyui