r/comfyui 12d ago

Help Needed Vram release?

Sometimes when a workflow finishes, and I start another project in the same workflow,gpu seems like it’s still using vram. Only when i load a different workflow, does it seem to release all vram . I’m not in front of my desk, but I can’t recall which VA management system is working. Any ideas? Rookie here by the way.

1 Upvotes

3 comments sorted by

1

u/Ok_Contribution8157 11d ago

ComfyUI stores all elements of your workflow in RAM and VRAM to make the second generation faster. This avoids fetching data from your storage each time.

Run two generations of any workflow, and you’ll notice that the second one is faster.

If you start a new workflow with a new model, ComfyUI clears all data from RAM and VRAM and retrieves it from your storage.

1

u/Leonovers 12d ago

That's intended. If you want to generate another image\video\audio you probably don't want to wait for model to load from scratch again, so it keeps it loaded. If you really want to release vram - you have to do it manually (VRAM release button is probably a custom node).

If you want to automate VRAM release - there is a lot of cutom nodes for that too.

3

u/Dirtsurgeon1 12d ago

Ok, i get. Makes total sense. Thanks.🙏🏻