ToriiGate Text Generate Reforged
ToriiGate Text Generate Reforged does text only
- clip
- text
Every other node in this pack stares at a picture. This one doesn't. ToriiGate Text Generate Reforged is the same Qwen3.5-4B model, but you hand it a text prompt and it returns text - no image input anywhere. It's the pack's answer to "what if I want the LLM part of this vision model without the vision?" and it exists because ToriiGate is, under the hood, a chat model that was fine-tuned to describe anime art.
Let's be straight about when you'd use it. If you want a generic in-graph text generator, there are fancier options - GGUF LLM nodes, Ollama bridges, the whole prompt-enhancer ecosystem. But this one is genuinely local, offline, uncensored, and it needs nothing beyond the model you already downloaded for the Caption node. That's a real combination. Dialogue lines for a video clip, a rough idea expanded into a structured prompt, a rewrite pass on a caption that came out flat - it does those fine, and at a 4B int8 it runs on cards that are already busy generating images. It's not the smartest model you could bolt in; it is the one already sitting in your models/clip folder.
How it works
Same sampler and template machinery as the Caption node, minus the image. Feed it clip from a native Load CLIP and a prompt string. In the default toriigate template mode it applies the model's own chat template with a system prompt; set template_mode to raw and it tokenizes your text exactly as given - useful when you've already formatted something yourself and don't want the template mangling it.
The knobs you'll actually touch:
- prompt - the text to generate from. Yes, it's required, and yes, you can wire it from another text node.
- system_prompt (optional) - an instruction layered on top of ToriiGate's default system prompt. This is how you steer the model without editing the prompt itself.
- template_mode -
toriigate(chat template, default) orraw(tokenize directly). - decoding -
greedy_fastis deterministic and the default; switch tosampleandtemperature,top_p,top_kstart meaning something. Seed is fixed at 42, randomized by ComfyUI's generation control. - max_new_tokens - 512 by default, up to 8192 for longer output.
Output: a text STRING you can preview, save, or feed into whatever's downstream.
Install
Same story as the rest of the pack - that's the point of a Reforged rebuild, one install, no pip extras:
cd ComfyUI/custom_nodes
git clone https://github.com/CocyNoric/ComfyUI-ToriiGate-Reforged.git
Restart ComfyUI, or use ComfyUI Manager and search "ToriiGate". You still need the model loaded via Load CLIP (type: stable_diffusion), same ToriiGate-0.5_int8_convrot.safetensors weight the Caption node uses - the pack has no bundled loader and no automatic download, by design.
Common issues
The failure modes mirror the Caption node's. Connect a non-ToriiGate CLIP model and you'll get a tokenizer error, because the node needs the native tokenize/generate interface the ToriiGate weight exposes - the pack's whole architecture assumes you loaded that specific model. And set expectations on quality: it's a 4B model optimized for captioning, so it's a willing writer, not a frontier chatbot. Use it for short structured rewriting - which, honestly, is all an LLM in an image pipeline usually needs to do. If you want that job done without an API, this is a clean, dependency-free way to get it.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| clip | CLIP | ToriiGate-compatible model from a native ComfyUI loader. | |
| prompt | STRING | Text prompt to generate from. | |
| max_new_tokens | INT | 5121–8192 | Maximum number of generated tokens. |
| temperature | FLOAT | 0.500–2 | Sampling temperature; used when decoding is sample. |
| top_p | FLOAT | 1.000–1 | Nucleus sampling threshold. |
| top_k | INT | 00–200 | Top-k sampling; 0 disables the limit. |
| decoding | COMBO | greedy_fast | greedy_fast is deterministic; sample uses temperature/top-p/top-k. |
| seed | INT | 420–18446744073709550000 | Fixed seed for repeatable sampling. |
| system_promptopt | STRING | Optional system instruction. | |
| template_modeopt | COMBO | toriigate | toriigate applies the model's chat template; raw tokenizes the supplied text directly. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |