AIToday
Large Language ModelsImage GenerationGIGAZINE AIPublished: Nov 12, 2026, 19:01 JST

ComfyUI 0.40.0–0.45.0 more than doubles text generation speed

Send on LINE
ComfyUI 0.40.0–0.45.0 more than doubles text generation speed

3 Key Points

  1. What happened

    ComfyUI says its 0.40.0–0.45.0 releases more than doubled text generation speed, including 2048 tokens with Qwen3.5 9B and 4096 tokens from a 1536×1536 image with Qwen3.8 27B on an RTX 5090.

  2. Why it matters

    The speedup comes from a tree-structured MTP algorithm and kernel optimizations, so workflows that generate prompts before image or video generation run faster.

WHO IT HITSComfyUI users who run prompt-generation steps before image or video workflows, especially those on NVIDIA RTX 5090 or AMD GPUs, get faster text generation without changing their setup beyond toggling the mtp option or adding a launch flag.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

ComfyUI is known mainly for image and video generation, but it also supports text generation through LLMs and VLMs to help improve prompt quality and build video stories. As image and video models have become more controllable through prompts, users face the burden of writing detailed instructions by hand and matching each model's preferred prompt structure. Official and community workflows have therefore increasingly adopted a setup where an LLM or VLM reads the user's text or image input and generates a properly formatted prompt before handing it to the image or video model. That makes text generation speed a practical bottleneck for the overall workflow, not just a side feature.

The optimization work focuses especially on the Qwen3.5 and Qwen3.8 series. According to the blog post, comparing version 0.40.0 with 0.44.0 shows more than double the speed on tasks such as generating 2048 tokens with Qwen3.5 9B and reading a 1536×1536 image to generate 4096 tokens with Qwen3.8 27B on an RTX 5090. A major factor is the shift from a chain-structured MTP algorithm, where a failed draft prediction wasted most of the work, to a tree-structured version that processes predictions across multiple branches instead of deepening only one.

Beyond the MTP change, ComfyUI's official workflows use W4A8 quantized models, and linear kernels were optimized to handle them more efficiently. The fast attention mechanism Comfy-Kitchen attention, previously used for image and video generation, is now available for text generation as well. These changes apply on Windows and Linux with NVIDIA and AMD GPUs, and users can enable Comfy-Kitchen attention by adding --use-ck-attention to the launch options, while the other improvements arrive automatically with an update.

FAQ
How do I enable the new tree-structured MTP algorithm?
Set the mtp field in the Generate Text node to auto.
Which GPUs and operating systems benefit from these improvements?
The improvements work on Windows and Linux with NVIDIA and AMD GPUs.
Do I need to change anything to get the other speed improvements?
No, the other improvements are applied automatically when you update ComfyUI.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleGlobal Brain names one keyword at Kyoto summit on AI bubble