ComfyUI node expands prompts with a local LLM that offloads VRAM after each generation

ProcedureFit789 · reddit · 2026-11-03

A Reddit user open-sourced a custom ComfyUI node that expands short prompts into detailed text-to-image prompts using a small local LLM — without permanently hogging the VRAM your diffusion models need.

Key design

Tested on a laptop with RTX 2050 (4GB VRAM) + 16GB RAM. Caveats: offloading doesn't remove the system RAM requirement (diffusion model, text encoder, VAE plus the LLM's pinned copy still need headroom); on 4GB GPUs use offload mode. Small models may need prompt regeneration or tweaks. Install details in the GitHub README.

Original post →

More from coding & agent

coding & agent channel →