ComfyUI > Nodes > ComfyUI-UniversalToolkit > Purge VRAM (UTK)

ComfyUI Node: Purge VRAM (UTK)

Class Name

PurgeVRAM_UTK

Category
UniversalToolkit/Tools
Author
whmc76 (Account age: 1110days)
Extension
ComfyUI-UniversalToolkit
Latest Updated
2026-03-16
Github Stars
0.07K

How to Install ComfyUI-UniversalToolkit

Install this extension via the ComfyUI Manager by searching for ComfyUI-UniversalToolkit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-UniversalToolkit 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

Purge VRAM (UTK) Description

PurgeVRAM_UTK optimizes GPU memory by clearing unused data, preventing VRAM bottlenecks.

Purge VRAM (UTK):

The PurgeVRAM_UTK node is designed to efficiently manage and free up GPU memory, commonly referred to as VRAM, which is crucial for maintaining optimal performance in AI art generation tasks. This node is particularly beneficial when working with resource-intensive models or when multiple models are loaded simultaneously, as it helps prevent memory bottlenecks that can slow down or halt processing. By purging unused or unnecessary data from the GPU memory, the node ensures that your system can handle complex computations without running into memory constraints. This functionality is essential for artists and developers who need to maintain a smooth workflow and avoid interruptions due to VRAM limitations. The node provides options to clear both the GPU cache and model memory, offering flexibility in how memory is managed based on your specific needs.

Purge VRAM (UTK) Input Parameters:

anything

This parameter acts as a placeholder to maintain the continuity of data flow through the node. It accepts any type of input, ensuring that the node can be seamlessly integrated into various workflows without disrupting the data pipeline. There are no specific constraints or default values for this parameter, as it is designed to be flexible and accommodate any data type.

purge_cache

This boolean parameter determines whether the GPU cache should be purged. When set to True, the node will clear the GPU cache, freeing up memory that may be occupied by temporary data. This can be particularly useful when you need to ensure that the maximum amount of VRAM is available for new tasks. The default value is True, allowing for automatic cache purging unless specified otherwise.

purge_models

This boolean parameter controls whether loaded models should be unloaded from memory. Setting this to True will unload all models, which can significantly free up VRAM, especially when working with large models. This option is beneficial when you are switching between different models or when a model is no longer needed. The default value is True, enabling model purging by default to maximize memory availability.

Purge VRAM (UTK) Output Parameters:

anything

The output parameter anything mirrors the input parameter of the same name, ensuring that the data flow remains uninterrupted through the node. This output allows you to continue using the data in subsequent nodes or processes without any loss or alteration, maintaining the integrity of your workflow.

Purge VRAM (UTK) Usage Tips:

  • To maximize VRAM availability, ensure both purge_cache and purge_models are set to True, especially when transitioning between different tasks or models.
  • Use this node before starting a new, resource-intensive task to ensure that your GPU has the maximum available memory, reducing the risk of memory-related errors.

Purge VRAM (UTK) Common Errors and Solutions:

ComfyUI model management not available

  • Explanation: This error occurs when the node attempts to unload models using ComfyUI's model management system, but the necessary module is not available or not installed.
  • Solution: Ensure that the ComfyUI model management module is correctly installed and accessible. You may need to check your installation or update your environment to include the required dependencies.

Purge VRAM (UTK) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-UniversalToolkit
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Purge VRAM (UTK)