Skip to content
,

TeaCache, MagCache and EasyCache in ComfyUI: 2x Faster Flux, Qwen and Wan (2026)

8–12 minutes
Woman in a living room holding a tablet with a TEACACHE card, hook 2x faster Flux and Wan

Flux, Qwen-Image and Wan spend most of their time running the same huge transformer once per step. But between neighbouring steps the output often barely changes. Caching nodes spot those “quiet” steps and reuse the previous result instead of running the model again.

The result: roughly 1.5x to 2x faster generations for a small loss of detail, with no new model to download.

This guide covers the three caching options you’ll see in ComfyUI workflows: the built-in EasyCache and LazyCache nodes, and the popular TeaCache and MagCache custom nodes. Every setting below comes from the nodes’ source code and their official READMEs, checked in late November 2026.

TL;DR

  • Start with EasyCache: it’s built into ComfyUI (no install), works with most models, and is actively maintained. Put it between your model loader (or Load LoRA) and the KSampler. Defaults: reuse_threshold 0.2, start_percent 0.15, end_percent 0.95.
  • LazyCache is the built-in fallback that works with everything, but ComfyUI’s own description says it “overall works worse than EasyCache”.
  • TeaCache (welltop-cn/ComfyUI-TeaCache) and MagCache (Zehong-Ma/ComfyUI-MagCache) use per-model tuned curves. They support a fixed list of models (Flux.1, Wan 2.1, HunyuanVideo, Qwen-Image for MagCache and so on) and are updated less often.
  • Expect ~1.5x to 2x speed for a small detail loss. Too blurry or smeared? Lower the threshold.
  • The console tells you exactly how many steps EasyCache skipped and the real speedup.

New to ComfyUI? Start with my ComfyUI guide for the basics of nodes and workflows.

How Step Caching Works

A sampler with 30 steps normally runs the diffusion model 30 times (60 if CFG is above 1, because the negative prompt needs its own pass). Caching methods all follow the same idea:

  1. At each step, cheaply estimate how much the model’s output would change compared with the last fully computed step.
  2. Add that estimate to a running total.
  3. If the total is still below a threshold, skip the real model run and reuse the cached change from earlier.
  4. Once the total passes the threshold, run the model for real, update the cache and reset the total.

The early steps decide composition and change a lot, so caches usually leave them alone. The last steps add fine detail, which is why aggressive caching tends to cost sharpness first.

The methods differ in how they make the estimate. TeaCache uses the timestep-modulated input of the model and a polynomial fitted per model. MagCache uses the magnitude of the output residuals with a per-model curve.

EasyCache, per the ComfyUI docs, “skips steps when the estimated output change stays below a user-defined threshold”, measuring it at runtime rather than from a fitted curve, which is why it isn’t tied to a model list.

EasyCache vs LazyCache vs TeaCache vs MagCache

EasyCache LazyCache TeaCache MagCache
Install Built in Built in Custom node Custom node
Models Most core models (Flux, Qwen-Image, Wan, LTX-2, HunyuanVideo, SDXL and more) Anything ComfyUI runs Fixed list: Flux.1, Flux Kontext, HiDream, Lumina 2, HunyuanVideo, LTX-Video, Wan 2.1 Fixed list: Flux.1, Flux Kontext, Chroma, Qwen-Image, HunyuanVideo, HunyuanVideo 1.5, Wan 2.1, Wan 2.1 VACE
Main setting reuse_threshold reuse_threshold rel_l1_thresh magcache_thresh, magcache_K
Last update (as of 29 Nov 2026) Ships with every ComfyUI update Same July 2025 November 2025
Best for Default choice, newer models Models EasyCache doesn’t handle Older Flux/Wan 2.1 workflows that already use it Qwen-Image, HunyuanVideo 1.5, Wan 2.1 when you want tuned presets

My recommendation: try EasyCache first. It needs no install, it keeps up with new model support (for example, the ComfyUI changelog lists “EasyCache now works with LTX2”), and the official Flux USO template already includes it. Reach for TeaCache or MagCache if you’re running one of their supported models and want their published presets.

Use the Built-in EasyCache Node

EasyCache has been part of ComfyUI core for a while. It sits under advanced → debug and is marked experimental. If it doesn’t show up in search, check that Show experimental nodes in search is on in Settings (it is by default). Double-click the canvas and type EasyCache.

  1. Add EasyCache after your model loader (Load Diffusion Model, Load Checkpoint, Unet Loader GGUF) and after any Load LoRA nodes.
  2. Connect its MODEL output to the KSampler (or to ModelSamplingFlux / ModelSamplingSD3 and then the KSampler, if your workflow has those).
  3. Leave the defaults for the first run and queue.
  4. Look at the console. At the end of sampling it prints a line like EasyCache - skipped 9/30 steps (1.43x speedup).

The settings, straight from the node definition:

Setting Default Range What it does
reuse_threshold 0.2 0.0 to 3.0 Higher = more steps skipped = faster but softer
start_percent 0.15 0.0 to 1.0 Don’t cache before this point (protects composition)
end_percent 0.95 0.0 to 1.0 Stop caching after this point (protects final detail)
verbose off on/off Logs the change rate and skip decision for every step

These options are flagged as “advanced” in the node, so newer frontends may hide them until you show advanced inputs. Turn on the Always show advanced widgets on all nodes setting if you can’t see them.

LazyCache

LazyCache has the same four settings and the same defaults. ComfyUI describes it as “a homebrew version of EasyCache… Overall works worse than EasyCache, but better in some rare cases AND universal compatibility with everything in ComfyUI.” Use it when EasyCache errors out or does nothing on a model.

TeaCache: Install and Recommended Settings

TeaCache (“Timestep Embedding Aware Cache”) is the method that made step caching popular. The ComfyUI port is welltop-cn/ComfyUI-TeaCache.

Install

  1. In ComfyUI Manager, search ComfyUI-TeaCache and install. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/welltop-cn/ComfyUI-TeaCache.git
cd ComfyUI-TeaCache
pip install -r requirements.txt

On the Windows portable build, use ..\..\..\python_embeded\python.exe -m pip install -r requirements.txt from that folder instead. Restart ComfyUI afterwards.

Use it

Add the TeaCache node after Load Diffusion Model (or after Load LoRA), pick your model_type, and connect it to the sampler. Recommended values from the README:

Model rel_l1_thresh start / end Speedup (README)
Flux.1 0.4 0 / 1 ~2x
Flux Kontext 0.22 0.2 / 0.9 ~2x
HiDream-I1 Full 0.35 0.1 / 1 ~2x
Lumina Image 2.0 0.38 0.2 / 1 ~1.7x
HunyuanVideo 0.15 0 / 1 ~1.9x
LTX-Video 0.06 0 / 1 ~1.7x
Wan 2.1 T2V 14B 0.2 0 / 1 ~1.8x
Wan 2.1 I2V 480p 14B 0.26 0 / 1 ~1.9x
Wan 2.1 T2V 14B (ret mode) 0.2 0.1 / 1 ~2.1x

Other settings: cache_device is cuda (faster, a bit more VRAM) or cpu (no extra VRAM, slightly slower). The “ret_mode” Wan variants are, per the README, faster and better quality than the plain ones. The node’s own advice: if quality drops, lower rel_l1_thresh, and leave start/end alone unless you know why.

Note the model list. There are no presets for Flux.2, Qwen-Image or Wan 2.2 in TeaCache, and the repo hasn’t been updated since July 2025. For those models use EasyCache or MagCache.

MagCache: Install and Recommended Settings

MagCache (“Magnitude-aware Cache”) claims 2x to 3x speedups at its default settings. Its ComfyUI node is Zehong-Ma/ComfyUI-MagCache, which added Qwen-Image and HunyuanVideo 1.5 support in November 2025.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/zehong-ma/ComfyUI-MagCache.git
cd ComfyUI-MagCache
pip install -r requirements.txt

Use it

Add MagCache after the model loader or Load LoRA, set model_type, and use the README’s values:

Model magcache_thresh retention_ratio magcache_K
Flux.1 0.24 0.1 5
Flux Kontext 0.05 0.2 4
Chroma 0.10 0.25 2
Qwen-Image 0.10 0.20 2
HunyuanVideo T2V 0.24 0.2 6
HunyuanVideo 1.5 T2V (20 steps) 0.03 0.25 2
Wan 2.1 T2V 14B / I2V 14B 0.24 0.2 6
Wan 2.1 VACE 1.3B / 14B 0.02 0.2 3

What the settings mean: magcache_thresh is how much error to accept before recomputing (max 0.3), retention_ratio keeps the first part of the steps uncached (0.1 to 0.3), and magcache_K is the maximum number of steps in a row that can be skipped (0 to 6).

The README warns that its defaults aim for extreme speed: if output looks wrong, lower both magcache_thresh and magcache_K.

If you use Kijai’s WanVideoWrapper instead of native nodes, it has its own MagCache and TeaCache options, so you don’t need these packs for that workflow.

How to Tune Speed vs Quality

Use a fixed seed and the same prompt, then:

  1. Run once with the cache node bypassed (Ctrl+B) and note the time. This is your reference image.
  2. Run with defaults. Compare faces, hands, small text and fine textures, where caching shows first.
  3. If it looks the same, raise the threshold a little (EasyCache 0.2 → 0.3). If it looks smeared or loses detail, lower it (0.2 → 0.1).
  4. For EasyCache, turn on verbose once to see which steps get skipped.

A few rules of thumb:

  • More steps = more to gain. A 30 to 50 step Flux or Wan run has many similar steps to skip. Few-step distilled models (4 to 8 steps, like Flux schnell or Lightning LoRAs) leave little room, and caching mostly hurts there.
  • Video benefits most because each step is so expensive.
  • Protect the start. If the composition changes when caching is on, raise start_percent (or retention_ratio in MagCache).

To keep a record of settings per image, put the threshold in the file name with the filename_prefix tricks in where ComfyUI saves images.

Combining Caching with Other Speedups

Caching cuts the number of model runs. Other speedups make each run faster, so they stack:

  • Sage Attention / Triton: faster attention kernels. See how to install Triton on Windows.
  • torch.compile: ComfyUI core has a TorchCompileModel node (experimental), and both TeaCache and MagCache ship a “Compile Model” node. Put compile after the cache node.
  • Quantized models (GGUF, fp8, Nunchaku) cut VRAM and can speed things up on cards that would otherwise offload.
  • Fewer steps with a speed LoRA is often a bigger win than caching, but don’t combine heavy caching with a 4-step LoRA.

More options in my how to speed up ComfyUI guide.

Common Problems

Problem Cause Fix
Can’t find EasyCache in search Experimental nodes hidden Look under advanced → debug, and turn on “Show experimental nodes in search”
No speedup at all Threshold too low, or too few steps Check the console line; raise the threshold slightly or use more steps
Blurry or smeared details Threshold too high Lower reuse_threshold / rel_l1_thresh / magcache_thresh
Composition differs from the uncached image Caching starts too early Raise start_percent or retention_ratio
TeaCache or MagCache error on Flux.2, Wan 2.2 or other new models Model not in the pack’s list Use EasyCache instead
“Compile Model” node behaves oddly with both packs installed Both packs register a node with the same name Install only one of TeaCache and MagCache, or use core TorchCompileModel
Warning: “Tensor shape, dtype or device changed, resetting state” Resolution or batch changed between runs Harmless; EasyCache resets its cache automatically

FAQ

Does ComfyUI have TeaCache built in?

Not TeaCache itself, but ComfyUI ships two similar built-in nodes, EasyCache and LazyCache, which skip steps the same way and need no install.

How much faster is TeaCache in ComfyUI?

The TeaCache README lists about 1.7x to 2x for Flux.1, HunyuanVideo and Wan 2.1 at its recommended settings. Real results depend on your step count and settings.

Does TeaCache reduce quality?

Slightly. Reused steps lose some fine detail, especially at high thresholds. Lower the threshold if you see smearing or soft textures.

Which is better, TeaCache or MagCache?

MagCache supports newer models (Qwen-Image, HunyuanVideo 1.5) and was updated more recently. For models neither supports, use the built-in EasyCache.

Does EasyCache work with Flux.2 and Wan 2.2?

EasyCache isn’t tied to a fixed model list like TeaCache and MagCache, so it’s the first thing to try on new models. If a model misbehaves with it, try LazyCache, which works with everything ComfyUI runs.

Can I use caching with LoRAs?

Yes. Put the cache node after the Load LoRA nodes so it wraps the final model.

Should I use caching with 4-step or 8-step models?

Usually not. With so few steps there’s little to skip, and each skipped step costs a lot of quality.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a living room holding a tablet with a TEACACHE card, hook 2x faster Flux and Wan