Soft Full Clean RAM and VRAM [LP]| Soft Full Clean RAM and VRAM [LP]:
The SoftFullCleanRAMAndVRAM| Soft Full Clean RAM and VRAM [LP] node is designed to efficiently manage and optimize the memory usage of your system by unloading models and optionally clearing the execution cache. This node is particularly useful in scenarios where memory resources are limited, and you need to ensure that your system runs smoothly without running out of RAM or VRAM. By providing a mechanism to unload models and free up memory, it helps maintain optimal performance and prevents potential slowdowns or crashes due to memory constraints. The node operates by sending a request to a server endpoint to unload models and, if specified, clear the execution cache, ensuring that your system's memory is utilized effectively.
Soft Full Clean RAM and VRAM [LP]| Soft Full Clean RAM and VRAM [LP] Input Parameters:
source
The source parameter is a required input that represents the data or model source that you want to manage. It can be of any type, and its primary function is to serve as the reference point for the unloading process. This parameter does not have specific minimum, maximum, or default values, as it is flexible to accommodate various data types.
free_execution_cache
The free_execution_cache parameter is a boolean input that determines whether the execution cache should be cleared in addition to unloading the models. When set to True, both the models and the execution cache are cleared, maximizing the amount of freed memory. If set to False, only the models are unloaded, leaving the execution cache intact. The default value for this parameter is True, which ensures that the maximum amount of memory is freed unless specified otherwise.
Soft Full Clean RAM and VRAM [LP]| Soft Full Clean RAM and VRAM [LP] Output Parameters:
source
The source output parameter returns the same data or model source that was provided as input. This output is important as it confirms the successful execution of the unloading process and allows you to continue using the source data in subsequent operations. The returned value is identical to the input source, ensuring consistency and continuity in your workflow.
Soft Full Clean RAM and VRAM [LP]| Soft Full Clean RAM and VRAM [LP] Usage Tips:
- To maximize memory efficiency, set the
free_execution_cacheparameter toTruewhen you need to free up both RAM and VRAM, especially in memory-constrained environments. - Use this node when switching between different models or workflows to ensure that your system's memory is not unnecessarily occupied by unused models or cached data.
Soft Full Clean RAM and VRAM [LP]| Soft Full Clean RAM and VRAM [LP] Common Errors and Solutions:
Failed to unload models. Maybe outdated ComfyUI version.
- Explanation: This error occurs when the node fails to communicate with the server endpoint to unload models, possibly due to an outdated version of ComfyUI.
- Solution: Ensure that you are using the latest version of ComfyUI. Check for updates and install them if available to maintain compatibility with the node's functionality.
