Nodes/ComfyUI_Patches_ll/ApplyTeaCachePatch
ComfyUI Node Runs on cloud

ApplyTeaCachePatch

Apply the TeaCache patch to accelerate the model. Use it together with nodes that have the suffix ForwardOverrider. This is effective only for Flux, HunYuanVideo, LTXVideo, WanVideo and MochiVideo.

By lldacing·Created 2 years ago·Updated 7 months ago· 124
ApplyTeaCachePatch
  • model
  • model
rel_l1_thresh0.250
cache_deviceoffload_device
wan_coefficientsdisabled
Categorypatches/speed

Inputs (4)

NameTypeDefaultDescription
modelMODEL
rel_l1_threshFLOAT0.2500–5Flux: 0 (original), 0.25 (1.5x speedup), 0.4 (1.8x speedup), 0.6 (2.0x speedup), and 0.8 (2.25x speedup). HunYuanVideo: 0 (original), 0.1 (1.6x speedup), 0.15 (2.1x speedup). LTXVideo: 0 (original), 0.03 (1.6x speedup), 0.05 (2.1x speedup). MochiVideo: 0 (original), 0.06 (1.5x speedup), 0.09 (2.1x speedup). WanVideo: 0 (original), reference values Wan2.1 t2v 1.3B 0.05 0.07 0.08 Wan2.1 t2v 14B 0.14 0.15 0.2 Wan2.1 i2v 480P 0.13 0.19 0.26 Wan2.1 i2v 720P 0.18 0.2 0.3
cache_deviceoptCOMBOoffload_device2 options: main_device, offload_device
wan_coefficientsoptCOMBOdisabledWanVideo coefficients.

Outputs (1)

NameTypeDescription
modelMODEL