ComfyUI v0.45.0 doubles local LLM token generation speed

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...

This article has been automatically translated.
You've built a workflow in ComfyUI: an LLM node expands the prompt first, then hands it to an image model to generate the image. The image step finishes in tens of seconds, but the text step before it crawls out one character at a time. If you're on a local consumer GPU, this kind of wait is common.
The ComfyUI team published an engineering blog post on November 11, 2026, explaining that they rewrote the critical path for local text generation, focusing on the Qwen3.x series models. The conclusion is straightforward: on the same GPU and with the same model file, token output speed can be up to twice as fast, with no change to the model itself or to generation quality. These changes are already included in ComfyUI v0.45.0. You just need to load a Qwen3.x checkpoint and leave the mtp option on the Text Generate node set to auto.
This article aims to help you judge what this speedup actually changed, which steps in your workflow will benefit, and which bottlenecks it can't address.
To understand where the speedup comes from, you first need to understand where the slowness comes from.
Text generation is serial: each new token (roughly, a "character" or a "word piece") requires reading the entire model's weights from VRAM. Large online services can spread this cost through batching—packing many users' unrelated requests together so that one weight read serves many people.
But a single ComfyUI workflow usually generates only one sequence, so the batch size at every step is 1. The blog gives a concrete number: a 27-billion-parameter model quantized to four bits (such as Qwen3.8 W4A8) reads about 14 GB of weights per token generated, and each weight may participate in only one math operation.
So the bottleneck for a local LLM is VRAM bandwidth—how fast the GPU can read VRAM, not how much compute it has. This is the opposite of the diffusion models you're used to: image and video models process the entire latent at every step, so their bottleneck is compute.
This distinction is practical. If you've been lowering sampling steps or resolution to make prompt enhancement faster, you've been turning the wrong knob—those measures only affect the compute-bound diffusion stage and do nothing for the VRAM-bound token loop.
Qwen3.x checkpoints come with a multi-token prediction (MTP) head, an extra layer much smaller than the main model that can use the model's hidden states to guess the next few tokens ahead of time. ComfyUI uses it for "speculative decoding."
The process works like this: the MTP head drafts a few tokens, then in the next forward pass, those candidates are sent for verification together. This verification costs about the same as generating one token, because the bottleneck is still reading VRAM. Any draft that was guessed correctly is accepted directly by the main model, effectively skipping a full weight read. The more guesses that are correct, the more you save.
An analogy: instead of flipping through the entire dictionary for every character you write, you first guess a few characters from memory and then check them all at once—checking costs about the same as looking up one character, and whatever you guessed right comes for free. The limitation of this analogy is that the number of guesses has a hard cap; more isn't always better.
The improvement in v0.45.0 is that a "tree" replaced a "chain." The old approach bet on a single chain: guess the first token, feed it back into the model, then guess the next. The problem is that if the first guess is wrong, the whole chain is wasted, even if the second-ranked candidate was actually correct. The new adaptive tree algorithm keeps the runner-up candidates at each level as sibling nodes, verifies the whole tree in one pass, and replans the tree's shape based on actual hit rates.
The tree's shape also depends on the type of text. The blog notes that predictable outputs like code, lists, and descriptions of repeated prompts suit "deep" long chains, because the whole chain is easily accepted as a unit; creative writing suits "wide" trees, because the top choice is often wrong, but the correct token is usually among the top three.
The benchmark data in the blog is worth reading item by item, rather than just remembering the phrase "twice as fast."
With the same software, the 5090 gets close to double, while the 5080 gets only about 40%. So "up to twice as fast" is a ceiling, not a promise. Mid-range card users shouldn't expect 2x for their own results.
The most relevant set for workflows is the image description one, because image tagging and prompt expansion are exactly what you commonly do in an LLM node. Separately, the blog mentions that Qwen3.8 27B W4A8 on a 5090, describing a 1500×1500 image while writing a story, reached 137 tokens/sec with mtp set to auto.
My assessment: your actual gain depends on both your GPU and the type of text your node outputs. A single benchmark number can't predict your situation—you have to test it yourself.
Besides MTP, the blog describes several changes that can be understood on their own.
Interleaved weight and scale storage. The new kernel interleaves weights and their group scaling factors in VRAM in the order the kernel consumes them, so each thread block reads a contiguous stretch instead of jumping back and forth between weight tensors and scale tensors. This rearrangement is done in place directly in VRAM, only once per model load, and requires no extra memory or VRAM—good news for those already tight on VRAM. The blog also notes that this rearrangement is only necessary for the LLM's "thin" linear layers; the diffusion model's wider linear layers are compute-bound and can already hide this jump-read latency.
Aligning the thin dimension to the hardware's minimum tile of 8. The new kernel maps the MTP's row count onto the hardware's minimum tile size of 8, so up to eight rows of MTP guesses are almost as fast as one row. This also explains why the guess cap is seven (8 minus 1).
Comfy-Kitchen attention. v0.45.0 adds Comfy-Kitchen attention and KV Cache support, providing INT8 attention. The blog says it both reduces KV cache VRAM usage and significantly speeds up prefill for long prompts, system prompts, or existing context. Start ComfyUI with --use-ck-attention to enable it. The blog also mentions that long contexts that previously couldn't run due to insufficient VRAM can now fit.
Below is a checklist to help you judge whether this upgrade applies to you. Note that there are no hands-on tests here from me or the author—everything is based on the blog's description.
If step 1 or step 2 doesn't hold, don't restructure your workflow around this speedup.
There are a few limitations worth knowing in advance.
Gains are uneven. The numbers on the 5080 already show that mid-range cards may get only part of the improvement. The blog doesn't explain the specific reason for the hardware difference, and I won't speculate.
Adaptive switching has a debounce threshold. It only switches when a tree shape is at least 3% better than the current scheme, to avoid the shape oscillating back and forth. The cost is that smaller gains may not trigger a switch.
The benefit is on the text side, not the image side. The blog states clearly that the reordering applies only to thin linear layers, and the diffusion model part is not a beneficiary. So if your bottleneck is already in the sampling steps, this upgrade won't help you.
It applies to a fairly wide range of platforms. The blog says these improvements are available on NVIDIA and AMD, Windows and Linux, and require no extra steps beyond keeping ComfyUI up to date.
When is it not worth the effort? If your LLM node only occasionally expands a short prompt and the wait is already just one or two seconds, restructuring your workflow brings limited returns. What's really worth the investment is multi-step pipelines that run the LLM on every generation round and output several hundred tokens at a time, such as batch tagging or long story generation.