ComfyUI > Nodes > IAMCCS-nodes > VRAM Flush → Latent passthrough (empty cache)

ComfyUI Node: VRAM Flush → Latent passthrough (empty cache)

Class Name

IAMCCS_VRAMFlushLatent

Category
IAMCCS/HW
Author
IAMCCS (Account age: 2204days)
Extension
IAMCCS-nodes
Latest Updated
2026-03-27
Github Stars
0.08K

How to Install IAMCCS-nodes

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

VRAM Flush → Latent passthrough (empty cache) Description

Optimizes GPU memory by flushing CUDA cache, freeing VRAM for efficient AI workflows.

VRAM Flush → Latent passthrough (empty cache):

The IAMCCS_VRAMFlushLatent node is designed to optimize the use of GPU memory by flushing the CUDA allocator cache before passing latent data downstream. This node is particularly useful in scenarios where memory management is crucial, such as when working with VideoVAE or other decoders that reserve memory in the PyTorch CUDA pool. By inserting this node between two sampler passes, you can effectively free up memory that would otherwise remain reserved, thus enhancing the performance and efficiency of your workflow. This node ensures that the latent data is passed through unchanged while reclaiming valuable VRAM resources, making it an essential tool for managing GPU memory in complex AI art generation processes.

VRAM Flush → Latent passthrough (empty cache) Input Parameters:

latent

The latent parameter represents the latent data that is passed through the node. This data is typically generated by a previous process in your workflow and is used as input for subsequent operations. The primary function of this parameter is to serve as a placeholder for the data that will be processed by the node. There are no specific minimum, maximum, or default values for this parameter, as it is dependent on the context of your workflow and the data being processed.

VRAM Flush → Latent passthrough (empty cache) Output Parameters:

latent

The output parameter latent is the same latent data that was input into the node. The significance of this output lies in its unchanged state, ensuring that the data integrity is maintained while the CUDA allocator cache is flushed. This allows for seamless integration into your workflow, as the latent data can continue to be used in subsequent processes without any modifications. The primary purpose of this output is to provide a clean and efficient way to manage GPU memory without altering the data being processed.

VRAM Flush → Latent passthrough (empty cache) Usage Tips:

  • Place the IAMCCS_VRAMFlushLatent node between two sampler passes to effectively manage GPU memory and prevent unnecessary memory reservation by decoders like VideoVAE.
  • Use this node in workflows where GPU memory is a limiting factor, as it can help reclaim VRAM and improve overall performance without affecting the latent data.

VRAM Flush → Latent passthrough (empty cache) Common Errors and Solutions:

CUDA out of memory

  • Explanation: This error occurs when the GPU runs out of memory to allocate for new processes.
  • Solution: Ensure that the IAMCCS_VRAMFlushLatent node is correctly placed between sampler passes to free up memory. Additionally, consider reducing the batch size or complexity of your model to fit within the available GPU memory.

Latent data not passed correctly

  • Explanation: This issue arises when the latent data is not correctly passed through the node, potentially due to incorrect node placement or configuration.
  • Solution: Verify that the node is correctly integrated into your workflow and that the input and output connections are properly configured. Ensure that the node is placed between the appropriate sampler passes to maintain data integrity.

VRAM Flush → Latent passthrough (empty cache) Related Nodes

Go back to the extension to check out more related nodes.
IAMCCS-nodes
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.

VRAM Flush → Latent passthrough (empty cache)