Nodes/RAM/VRAM Purge by Steve Lasmin/🧹 RAM Purge by Steve Lasmin
ComfyUI Node

🧹 RAM Purge by Steve Lasmin

Aggressively clears all model caches, CLIP, checkpoints, VAE, and system RAM. Place between heavy model-loading stages (e.g. after LTXV-2.3). Windows-optimized with working-set trim.

By Eklipsis·Created 3 months ago·Updated 3 months ago· 0
🧹 RAM Purge by Steve Lasmin
  • trigger
  • trigger_out
aggressive_modetrue
clear_cuda_cachetrue
trim_working_settrue
confirmationPURGE
CategoryRAM/VRAM Purge by Steve Lasmin

Inputs (5)

NameTypeDefaultDescription
trigger*Connect any wire here to trigger the purge when execution reaches this node. The data passes through unchanged.
aggressive_modeBOOLEANtrueRuns deep cleanup: 3-pass garbage collection, clears internal ComfyUI caches (sd, clip_model), and torch autocast cache. Recommended for LTXV-2.3 workflows.
clear_cuda_cacheBOOLEANtrueEmpties the CUDA cache twice and synchronizes the GPU. Essential for freeing VRAM after heavy model loads.
trim_working_setBOOLEANtrueUses Windows SetProcessWorkingSetSize / EmptyWorkingSet to force the OS to page out unused physical RAM back to the pagefile. This is what actually reduces the number you see in Task Manager.
confirmationoptSTRINGPURGESAFETY GATE: Type the word PURGE (all caps) to execute. Prevents accidental clicks that would force slow re-loading of subsequent models.

Outputs (1)

NameTypeDescription
trigger_out*