Nodes/Comfy_HunyuanImage3/Hunyuan 3 Force Unload (Nuclear)
ComfyUI Node

Hunyuan 3 Force Unload (Nuclear)

A ComfyUI node in HunyuanImage3 with 8 inputs and 3 outputs.

By EricRollei·Created 9 months ago·Updated 3 months ago· 64
Hunyuan 3 Force Unload (Nuclear)
  • trigger
  • cleared
  • memory_report
  • unload_signal
first_run_onlyfalse
clear_all_modelstrue
aggressive_gctrue
reset_cuda_allocatortrue
clear_comfy_cachetrue
nuke_orphaned_tensorsfalse
nuke_ram_tensorsfalse
CategoryHunyuanImage3

Inputs (8)

NameTypeDefaultDescription
first_run_onlyBOOLEANfalseOnly run on FIRST execution, then auto-skip. Perfect for cleaning up cross-tab pollution while keeping Hunyuan loaded for successive runs.
clear_all_modelsBOOLEANtrueClear Hunyuan model cache
aggressive_gcBOOLEANtrueRun aggressive garbage collection (3 passes)
reset_cuda_allocatorBOOLEANtrueReset CUDA memory allocator (may help after OOM)
clear_comfy_cacheBOOLEANtrueClear ComfyUI's internal model cache (affects all models!)
nuke_orphaned_tensorsBOOLEANfalseHunt and destroy orphaned Hunyuan CUDA tensors. Safe for downstream models (scoped to Hunyuan only). Use after OOM when VRAM is stuck.
nuke_ram_tensorsBOOLEANfalseHunt and destroy orphaned Hunyuan CPU tensors in RAM. Safe for downstream models (scoped to Hunyuan only). Use when system RAM is full of leaked model weights.
triggeropt*

Outputs (3)

NameTypeDescription
clearedBOOLEAN
memory_reportSTRING
unload_signal*