free_memory
Free up VRAM by unloading models and resetting the executor cache in local ComfyUI. Non-destructive, applies at next queue iteration without interrupting running jobs.
Instructions
Ask the local ComfyUI to unload models / reset its executor cache.
Wraps comfy free (ComfyUI's own POST /free). Pair with
system_stats for the before/after.
Args:
unload_models: True (default) unloads all models from VRAM.
unload_models=False with free_memory left default
requests NOTHING — a deliberate no-op, not "reset cache, keep
models".
free_memory: also resets the executor cache; None (default)
follows unload_models, so a bare call asks for both.
True with unload_models=False is rejected: ComfyUI
cannot reset the cache without unloading everything.
NOT IMMEDIATE, never destructive: applied when the queue worker next
iterates — does not interrupt a running job, so this cannot stop one
(job(action="cancel") does). Returns what was REQUESTED, not a measurement —
re-check system_stats. NOT diverted by COMFYUI_URL/COMFYUI_HOST
— same comfy_target_note behavior as system_stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| free_memory | No | ||
| unload_models | No |