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.
π§Ή VRAM Purge by Steve Lasmin
- trigger
- trigger_out
βempty_cachetrueβΊ
βsynchronizetrueβΊ
βunload_modelstrueβΊ
CategoryRAM/VRAM Purge by Steve Lasmin
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| trigger | * | Connect any wire here to trigger the purge. The data passes through unchanged. | |
| empty_cache | BOOLEAN | true | Calls torch.cuda.empty_cache() to release unused VRAM back to the GPU driver. |
| synchronize | BOOLEAN | true | Calls torch.cuda.synchronize() to wait for all GPU operations to finish before clearing cache. Prevents race conditions. |
| unload_models | BOOLEAN | true | Calls ComfyUI's unload_all_models() to move currently loaded models out of VRAM. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| trigger_out | * | β |