comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
54.27k stars 5.75k forks source link

Flux loading issue, when the workflow is changed  #4364

Open JorgeR81 opened 2 months ago

JorgeR81 commented 2 months ago

Expected Behavior

Don't load Flux again, when the workflow is changed

Actual Behavior

The model is loaded again, unnecessarily

Steps to Reproduce

But the Flux model will load again, and since RAM is already full from the previous workflow, the page file needs to increase massively, reducing available SSD space, for a while.  

Debug Logs

.

Other

No response

Bortus-AI commented 2 months ago

noticed this today as well

deepfree2023 commented 2 months ago

need some mechanics to purge RAM in addition to VRAM