ComfyUI > Nodes > Comfy_HunyuanImage3 > Hunyuan 3 Clear Downstream Models

ComfyUI Node: Hunyuan 3 Clear Downstream Models

Class Name

HunyuanImage3ClearDownstream

Category
HunyuanImage3
Author
EricRollei (Account age: 1544days)
Extension
Comfy_HunyuanImage3
Latest Updated
2026-02-21
Github Stars
0.05K

How to Install Comfy_HunyuanImage3

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

Hunyuan 3 Clear Downstream Models Description

Clears cached Hunyuan models from VRAM to optimize memory for downstream AI models.

Hunyuan 3 Clear Downstream Models:

The HunyuanImage3ClearDownstream node is designed to efficiently manage GPU memory by clearing cached Hunyuan models from VRAM, particularly when working with downstream models such as Flux detailer and SAM2. This node is strategically placed after the Hunyuan generation process but before any downstream nodes, ensuring that VRAM is freed up for subsequent models. By enabling the clear_for_downstream option, you can aggressively clear VRAM, which is beneficial for workflows that require reloading the Hunyuan model for each run. This node not only optimizes memory usage but also provides a mechanism to trigger downstream nodes once the clearing process is complete, enhancing the overall efficiency of your AI art generation pipeline.

Hunyuan 3 Clear Downstream Models Input Parameters:

force_clear

The force_clear parameter is a boolean option that, when set to True, ensures that the cached Hunyuan model is cleared from VRAM. This is particularly useful when you want to guarantee that the memory is freed up for other processes. The default value is True, and it is essential for maintaining optimal memory usage during successive runs.

clear_for_downstream

The clear_for_downstream parameter is a boolean option that, when enabled, aggressively clears VRAM to make space for downstream models like Flux and SAM2. This is particularly useful in scenarios where the Hunyuan model needs to be reloaded for each run, as it ensures that sufficient memory is available for other models. The default value is False, and enabling this option can significantly improve performance in memory-constrained environments.

trigger

The trigger parameter is a flexible input that can accept any type of signal to initiate the clearing process. This parameter does not have a default value and is optional, allowing you to customize the conditions under which the VRAM clearing is triggered.

Hunyuan 3 Clear Downstream Models Output Parameters:

cleared

The cleared output is a boolean value indicating whether the VRAM clearing process was successfully executed. This output is crucial for confirming that the memory has been freed and that the system is ready for subsequent operations.

vram_status

The vram_status output provides a string report detailing the current state of VRAM usage after the clearing process. This report includes information on the amount of VRAM freed and is valuable for monitoring and optimizing memory usage.

unload_signal

The unload_signal output is a flexible signal that can be used to trigger downstream nodes once the VRAM clearing process is complete. This output ensures that the workflow can proceed smoothly without manual intervention, enhancing automation and efficiency.

Hunyuan 3 Clear Downstream Models Usage Tips:

  • Place the HunyuanImage3ClearDownstream node immediately after the Hunyuan generation node and before any downstream processing nodes to ensure optimal memory management.
  • Enable the clear_for_downstream option when working with memory-intensive downstream models to prevent out-of-memory errors and improve performance.
  • Use the unload_signal output to automate the triggering of downstream nodes, ensuring a seamless workflow transition after VRAM clearing.

Hunyuan 3 Clear Downstream Models Common Errors and Solutions:

Could not get final VRAM

  • Explanation: This error occurs when the system is unable to retrieve the final VRAM usage information, possibly due to a lack of GPU availability or an issue with the CUDA setup.
  • Solution: Ensure that your GPU is properly configured and that CUDA is correctly installed. Check for any hardware or driver issues that might be affecting GPU availability.

VRAM not cleared

  • Explanation: This issue arises when the VRAM clearing process fails, potentially due to incorrect parameter settings or insufficient permissions.
  • Solution: Verify that the force_clear parameter is set to True and that you have the necessary permissions to manage GPU memory. Restart the application if necessary to reset the memory state.

Hunyuan 3 Clear Downstream Models Related Nodes

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

Hunyuan 3 Clear Downstream Models