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

🧹 VRAM Purge by Steve Lasmin

Lightweight VRAM-only cleanup. Unloads GPU models and empties CUDA cache. Use between sampler steps or before loading a new model.

By EklipsisΒ·Created 3 months agoΒ·Updated 3 months agoΒ· 0
🧹 VRAM Purge by Steve Lasmin
  • trigger
  • trigger_out
β—„empty_cachetrueβ–Ί
β—„synchronizetrueβ–Ί
β—„unload_modelstrueβ–Ί
CategoryRAM/VRAM Purge by Steve Lasmin

Inputs (4)

NameTypeDefaultDescription
trigger*Connect any wire here to trigger the purge. The data passes through unchanged.
empty_cacheBOOLEANtrueCalls torch.cuda.empty_cache() to release unused VRAM back to the GPU driver.
synchronizeBOOLEANtrueCalls torch.cuda.synchronize() to wait for all GPU operations to finish before clearing cache. Prevents race conditions.
unload_modelsBOOLEANtrueCalls ComfyUI's unload_all_models() to move currently loaded models out of VRAM.

Outputs (1)

NameTypeDescription
trigger_out*β€”