ComfyUI Node
Ollama Unload (free VRAM)
Unload one or all Ollama models to free VRAM. Wire a prompt through passthrough to force it to run before image sampling.
Ollama Unload (free VRAM)
- passthrough
- passthrough
- status
◄urlhttp://127.0.0.1:11434►
◄model►
◄waittrue►
◄timeout60►
◄free_comfy_vramtrue►
CategoryOllama
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| url | STRING | http://127.0.0.1:11434 | Ollama server base URL, e.g. http://127.0.0.1:11434. |
| model | STRING | Exact model name to unload (e.g. gemma4:26b). Empty = unload every loaded model. | |
| wait | BOOLEAN | true | Block until the model leaves Ollama memory (VRAM actually freed) before continuing. |
| timeout | INT | 601–600 | Max seconds to wait for the unload and the resident-memory poll. |
| free_comfy_vram | BOOLEAN | true | Also unload ComfyUI's own models and empty the CUDA cache. |
| passthroughopt | * | Wire your final prompt/conditioning through here so this node runs BEFORE the sampler. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| passthrough | * | — |
| status | STRING | — |