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
57.66k stars 6.11k forks source link

Flux loading issue, when the workflow is changed  #4364

Open JorgeR81 opened 3 months ago

JorgeR81 commented 3 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 3 months ago

noticed this today as well

deepfree2023 commented 3 months ago

need some mechanics to purge RAM in addition to VRAM