ComfyUI > Nodes > ComfyUI-Unload-Model > UnloadAllModels

ComfyUI Node: UnloadAllModels

Class Name

UnloadAllModels

Category
Unload Model
Author
SeanScripts (Account age: 1843days)
Extension
ComfyUI-Unload-Model
Latest Updated
2024-10-05
Github Stars
0.04K

How to Install ComfyUI-Unload-Model

Install this extension via the ComfyUI Manager by searching for ComfyUI-Unload-Model
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Unload-Model in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

UnloadAllModels Description

Efficiently manages system resources by unloading all loaded models to optimize performance and prevent memory overload.

UnloadAllModels:

The UnloadAllModels node is designed to efficiently manage system resources by unloading all currently loaded models from memory. This node is particularly beneficial in scenarios where multiple models are used sequentially, and there is a need to free up memory to optimize performance and prevent system overload. By unloading all models, it ensures that the system's memory is cleared, allowing for new models to be loaded without the risk of running out of memory. This node also attempts to clear the cache, which can further enhance system performance by ensuring that no residual data is occupying valuable memory space. The primary goal of this node is to maintain a smooth and efficient workflow by managing memory usage effectively, which is crucial for AI artists working with large models or multiple models in their projects.

UnloadAllModels Input Parameters:

value

The value parameter is a required input for the UnloadAllModels node. It accepts any type of input, which means it is flexible and can be used in various contexts without strict type constraints. This parameter acts as a trigger for the node's operation, initiating the process of unloading all models. While the specific content of value does not directly impact the unloading process, it is necessary to provide an input to activate the node's functionality. There are no minimum, maximum, or default values specified for this parameter, as its primary role is to serve as a placeholder to ensure the node is executed.

UnloadAllModels Output Parameters:

any

The output of the UnloadAllModels node is of type any, which means it can return a variety of data types depending on the context in which it is used. The output typically consists of a list of values that were passed as input parameters. This output is important as it allows for the continuation of a workflow by passing along any necessary data or state information that might be required by subsequent nodes. The flexibility of the output type ensures that the node can be integrated into diverse workflows without compatibility issues.

UnloadAllModels Usage Tips:

  • Use the UnloadAllModels node when you need to free up memory after working with multiple models, especially in resource-constrained environments.
  • Incorporate this node into your workflow to prevent memory leaks and ensure that your system remains responsive and efficient, particularly when switching between different models frequently.

UnloadAllModels Common Errors and Solutions:

Unable to clear cache

  • Explanation: This error occurs when the node attempts to clear the cache using GPU resources, but the operation fails, possibly due to insufficient permissions or hardware limitations.
  • Solution: Ensure that your system has the necessary permissions to access GPU resources. If the problem persists, try updating your GPU drivers or running the process with administrative privileges.

Model not found in memory

  • Explanation: This message indicates that the node attempted to unload a model that was not currently loaded in memory.
  • Solution: Verify that the models you intend to unload are indeed loaded. You can use a node or function to list currently loaded models before attempting to unload them.

UnloadAllModels Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Unload-Model
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.