Visit ComfyUI Online for ready-to-use ComfyUI environment
Manage VRAM usage by unloading models in ComfyUI for smoother workflow and faster generation processes.
The UnloadModels node is designed to help manage VRAM (Video Random Access Memory) usage by forcefully unloading all models currently loaded by ComfyUI into VRAM. This can be particularly useful if you are experiencing VRAM issues or if your workflow involves multiple models that do not need to be loaded simultaneously. By inserting this node into your workflow, you can clear the VRAM on demand, ensuring smoother and faster generation processes. The node offers two modes of operation based on the value of the ForceUnload
parameter: immediate unloading of all models, which may disrupt workflows if any pending nodes still require access to the models, or requesting model unloading, which allows ComfyUI to handle the unloading at its earliest convenience. This functionality is similar to manually clicking the Unload Model button in ComfyUI.
This parameter allows data to be forwarded to other nodes after the VRAM has been cleaned. It ensures that the workflow continues seamlessly without interruption. The data type for this parameter is any_type
.
This boolean parameter determines the method of unloading models. If set to True
, all models will be unloaded immediately, which can potentially cause issues if any pending nodes still require access to the models. If set to False
, model unloading will be requested, and ComfyUI will handle the unloading at its earliest convenience. This is analogous to clicking the Unload Model button directly in ComfyUI. The default value is False
.
This parameter forwards the data to other nodes after the VRAM has been cleaned. It ensures that the workflow continues seamlessly without interruption. The data type for this parameter is any_type
.
ForceUnload
parameter with caution. Setting it to True
will immediately unload all models, which may disrupt workflows if any pending nodes still require access to the models. It is generally safer to set it to False
to allow ComfyUI to handle the unloading at its earliest convenience.ForceUnload
parameter is set to False
, causing the node to request model unloading rather than performing it immediately.ForceUnload
parameter to True
if you need the models to be unloaded immediately. However, be aware that this may disrupt workflows if any pending nodes still require access to the models.ForceUnload
parameter is set to True
, all models are unloaded immediately, which can cause issues if any pending nodes still require access to the models.ForceUnload
parameter to False
to request model unloading, allowing ComfyUI to handle the unloading at its earliest convenience and avoid disrupting the workflow.© Copyright 2024 RunComfy. All Rights Reserved.