FireRed Unloader (Trent)
The off button for a pipeline that hogs your memory
- firered_pipe
This node does one thing: it makes a 20GB+ pipeline go away. FireRed Unloader (Trent) exists because the pack's Loader caches the whole FireRed-Image-Edit-1.0 pipeline in memory between runs - great for iterating on one workflow, annoying when you're done and your VRAM and RAM stay committed to a model you're no longer using. This is the cleanup call.
What it does
You feed it the firered_pipe output from the FireRed Loader (or from the LoRA loader's pass-through) and it runs a teardown: removes any offload hooks diffusers attached, clears the Loader's module-level cache, deletes the pipeline reference, runs the garbage collector, and empties ComfyUI's soft cache. It's marked as an output node with no outputs, so ComfyUI treats it as an execution endpoint - wire it as a parallel branch off the Loader and it runs at the end of the queue, after your sampling is done.
It also plays nice with the LoRA loader's quirk. Because LoRAs are baked into the cached pipeline in place, the Unloader is your reliable "start clean" button: run it, and the next Loader call builds a fresh pipeline with nothing applied.
When you'd actually use it
- You finished a big edit job and want to switch to a completely different workflow without restarting ComfyUI.
- You're chaining workflows in one session and VRAM pressure is mounting.
- You changed your mind about a LoRA and the "still applied" effect from the cached pipeline is confusing you - unload, then reload.
One input, no outputs, nothing to tune. That's the whole node.
The honest limits
It only frees the pipeline it's handed - if you forget to connect it, the memory just sits there until you restart ComfyUI, which is the state of the world without this pack anyway. And unloading is blunt: it tears the whole pipeline down, so if you're planning to sample again in the same session, you'll pay the reload cost. Don't wire the Unloader into a loop and expect it to be gentle. Install is the same as the rest of the pack - ComfyUI Manager, search "ComfyUI-FireRedTrent", or git clone https://github.com/TrentHunter82/ComfyUI-FireRedTrent into custom_nodes and restart. It has no model files of its own; it just turns off the one the Loader brought.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| firered_pipe | FIRERED_PIPE | — |
Outputs (0)
No outputs