Nodes/Qwen-llm-loader/Qwen Thinking Prompt (Before KSampler)
ComfyUI Node

Qwen Thinking Prompt (Before KSampler)

A ComfyUI node in Qwen/Thinking with 8 inputs and 2 outputs.

By capitan01R·Created 7 months ago·Updated 7 months ago· 7
Qwen Thinking Prompt (Before KSampler)
  • model
  • tokenizer
  • refined_prompt
  • thinking
user_prompt
prompt_body<think> {instructions} User prompt: {user_prompt} Final prompt: </think> Final prompt:
instruction_bodyYou are an expert Stable Diffusion prompt engineer. Rules: - Preserve the exact original meaning and intent. - Do NOT add any new concepts, styles, subjects, or details not present or implied. - Remove redundancy and make the prompt concise but descriptive. - Structure as a single, clean, comma-separated line. - Output ONLY the final prompt. No reasoning, no extra text.
max_new_tokens256
temperature0.60
top_p0.85
CategoryQwen/Thinking

Inputs (8)

NameTypeDefaultDescription
modelQWEN_THINKING_MODEL
tokenizerQWEN_TOKENIZER
user_promptSTRING
prompt_bodySTRING<think> {instructions} User prompt: {user_prompt} Final prompt: </think> Final prompt:
instruction_bodySTRINGYou are an expert Stable Diffusion prompt engineer. Rules: - Preserve the exact original meaning and intent. - Do NOT add any new concepts, styles, subjects, or details not present or implied. - Remove redundancy and make the prompt concise but descriptive. - Structure as a single, clean, comma-separated line. - Output ONLY the final prompt. No reasoning, no extra text.
max_new_tokensINT25632–512
temperatureFLOAT0.600.1–1.2
top_pFLOAT0.850.1–1

Outputs (2)

NameTypeDescription
refined_promptSTRING
thinkingSTRING