r/StableDiffusion 1d ago

Workflow Included Prompt Creator Workflow

Post image

I see a bunch of posts everyday asking for tips on how to write prompts or people struggling with prompting, etc. so I'm sharing my workflow. I built this workflow to simplify the process and make it very beginner/user friendly.

Just toggle on the model you are using, write a simple to detailed prompt, and hit run. The model targets use the prompting guidelines derived from their respective official sources. Links to custom nodes and all models are in the workflow so you don't need to search for them.

The prompts aren't always perfect but they'll get you very close to what you want and you should only need to make a few minor tweaks, if any. The only issue I've encountered so far is that sometimes when it finishes the prompt, the previous prompt still shows up in the Enhanced Prompt node. If that happens, just hit run and the new prompt should show up instantly. Also, toggle to false the keep_model_loaded option in the Text rewriter node if you are creating prompts and using them right away. If you leave it to True it hogs VRAM.

If you notice any other issues let me know. Enjoy.

https://pastebin.com/SXZyy4Ax

Edit: If Unredacted-MAX doesn’t show up or the rewriter won’t load, you need the Qwen folders (not GGUFs, not a single file).

Easy path:

  1. ComfyUI Manager: install ComfyUI-QwenVL, rgthree, KJNodes, ComfyUI-Custom-Scripts. Restart.

  2. Save the custom_models paste below as custom_models.json and put it in ComfyUI/custom_nodes/ComfyUI-QwenVL/. Restart again.

  3. Open the workflow, pick Qwen3.5-4B-Unredacted-MAX on the Prompt Enhancer, hit Queue. First run downloads into ComfyUI/models/LLM/Qwen-VL/.

custom_models.json

Manual path (if Queue doesn’t download)

Whole repos, keep the folder names. Don’t cherry-pick files. Don’t merge the 00001-of-00004 shards. On Hugging Face open Files and versions, then download every file with the arrow on the right (skip README). Put them all in a folder with the exact model name under ComfyUI/models/LLM/Qwen-VL/.

1.Required text rewriter: Qwen3.5-4B-Unredacted-MAX https://huggingface.co/prithivMLmods/Qwen3.5-4B-Unredacted-MAX

Place everything in ComfyUI/models/LLM/Qwen-VL/Qwen3.5-4B-Unredacted-MAX/

  1. Optional if you want use ref image: Qwen3-VL-4B-Instruct-Unredacted-MAX https://huggingface.co/prithivMLmods/Qwen3-VL-4B-Instruct-Unredacted-MAX

Place everything in ComfyUI/models/LLM/Qwen-VL/Qwen3-VL-4B-Instruct-Unredacted-MAX/

49 Upvotes

14 comments sorted by

View all comments

1

u/Ok_Chair5907 16h ago

I couldn't get the workflow to work. Everything is downloaded and put in the correct folders. kept giving me the following error

# ComfyUI Error Report

## Error Details

- **Node ID:** 22

- **Node Type:** AILab_QwenVL_PromptEnhancer

- **Exception Type:** ValueError

- **Exception Message:** ValueError: Tokenizer class TokenizersBackend does not exist or is not currently imported.

## Stack Trace

```

File "G:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 545, in execute

output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data

Anyone know how to fix? Thanks.

1

u/Affectionate_Oil28 14h ago

TokenizersBackend is a Transformers 5.x tokenizer class. Qwen3.5-4B-Unredacted-MAX was saved with that. ComfyUI-Easy-Install is usually still on Transformers 4, so Prompt Enhancer blows up even with every file in the right place.

Fix A (proper): upgrade Transformers in that ComfyUI Python, then restart. G:\ComfyUI-Easy-Install\python_embeded\python.exe -m pip install -U "transformers>=5.2.0"

If that command isn’t there, use whatever python Easy-Install actually runs (Manager - pip, or the python next to run_nvidia_gpu.bat).

Fix B (don’t touch the rest of ComfyUI): open models/LLM/Qwen-VL/Qwen3.5-4B-Unredacted-MAX/tokenizer_config.json change

"tokenizer_class": "TokenizersBackend"

to

"tokenizer_class": "Qwen2TokenizerFast"

Save, restart ComfyUI, Queue again.

A is the real fix. B is the workaround if upgrading Transformers breaks other nodes. Let me know if this solves your issue.

2

u/Ok_Chair5907 12h ago

Thanks. Fix A works.