Nodes/ComfyUI-Xz3r0-Nodes/XMemoryCleanup
ComfyUI Node

XMemoryCleanup

Manual memory cleanup node with optional Python GC, model unload, and VRAM cache cleanup. Pass-through keeps input and output data types consistent.

By Xz3r0-M·Created 7 months ago·Updated 22 days ago· 11
XMemoryCleanup
  • anything
  • anything
cleanup_memoryfalse
cleanup_node_usagefalse
cleanup_vramfalse
Category♾️ Xz3r0/Workflow-Processing

Inputs (4)

NameTypeDefaultDescription
cleanup_memoryBOOLEANfalseRun Python garbage collection (gc.collect) to release reclaimable Python-side memory
cleanup_node_usageBOOLEANfalseUnload currently loaded models and clean up model memory usage
cleanup_vramBOOLEANfalseClear VRAM cache via ComfyUI model management without unloading currently loaded models
anythingoptCOMFY_MATCHTYPE_V3Optional pass-through input. Output type matches the connected input type automatically.

Outputs (1)

NameTypeDescription
anythingCOMFY_MATCHTYPE_V3Original input data passed through unchanged