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.
🧹 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)
| Name | Type | Default | Description |
|---|---|---|---|
| trigger | * | Connect any wire here to trigger the purge when execution reaches this node. The data passes through unchanged. | |
| aggressive_mode | BOOLEAN | true | Runs 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_cache | BOOLEAN | true | Empties the CUDA cache twice and synchronizes the GPU. Essential for freeing VRAM after heavy model loads. |
| trim_working_set | BOOLEAN | true | Uses 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. |
| confirmationopt | STRING | PURGE | SAFETY GATE: Type the word PURGE (all caps) to execute. Prevents accidental clicks that would force slow re-loading of subsequent models. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| trigger_out | * | — |