ComfyUI > Nodes > ComfyUI-WanVideoWrapper > WanVideo TeaCache

ComfyUI Node: WanVideo TeaCache

Class Name

WanVideoTeaCache

Category
WanVideoWrapper
Author
kijai (Account age: 2871days)
Extension
ComfyUI-WanVideoWrapper
Latest Updated
2026-05-05
Github Stars
6.41K

How to Install ComfyUI-WanVideoWrapper

Install this extension via the ComfyUI Manager by searching for ComfyUI-WanVideoWrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-WanVideoWrapper in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

WanVideo TeaCache Description

Enhances WanVideo model performance through TeaCache integration, speeding up inference by caching and reusing output.

WanVideo TeaCache:

The WanVideoTeaCache node is designed to enhance the performance of the WanVideo model by integrating the TeaCache mechanism. This node significantly speeds up the inference process by caching the output of the model and reusing it, rather than recalculating each step. This caching approach is particularly beneficial in scenarios where computational efficiency is crucial, as it reduces the time and resources required for processing. The node is especially effective when the appropriate coefficients are selected for the model, ensuring that the early steps are not skipped, which could otherwise negatively impact the motion quality. By starting the caching process at a later step, users can mitigate potential issues with motion degradation. When coefficients are not used, it is recommended to set the threshold value to be approximately ten times smaller than when coefficients are applied. This node is a valuable tool for AI artists looking to optimize their video processing workflows, providing a balance between speed and quality.

WanVideo TeaCache Input Parameters:

rel_l1_thresh

The rel_l1_thresh parameter determines the relative L1 threshold for caching. It influences how aggressively the caching mechanism is applied, with lower values leading to more frequent caching. This parameter is crucial for balancing the trade-off between speed and accuracy, as a lower threshold may result in faster processing but could potentially compromise the quality of the output.

start_step

The start_step parameter specifies the step at which the caching process begins. This allows users to control when the caching mechanism should start taking effect, providing flexibility in managing the trade-off between computational efficiency and the quality of the initial steps. Starting the caching later can help maintain the quality of the early steps, which are critical for motion consistency.

end_step

The end_step parameter defines the step at which the caching process should stop. This parameter is useful for limiting the caching to a specific range of steps, ensuring that the latter parts of the process can be executed without caching if desired. This can be important for maintaining the quality of the final output.

cache_device

The cache_device parameter determines the device on which the caching will occur. Options include the main_device or an offload_device, allowing users to choose based on their hardware configuration and performance needs. Selecting the appropriate device can optimize the caching process and improve overall efficiency.

use_coefficients

The use_coefficients parameter indicates whether coefficients should be used in the caching process. When enabled, it allows for more precise control over the caching mechanism, potentially improving the quality of the output. However, it requires careful selection of coefficients to avoid skipping early steps, which are crucial for maintaining motion quality.

mode

The mode parameter specifies the mode of operation for the caching process. The default value is "e", which represents a specific configuration or method within the caching mechanism. This parameter allows users to tailor the caching process to their specific needs and preferences.

WanVideo TeaCache Output Parameters:

cache_args

The cache_args output parameter is a dictionary containing the configuration settings for the caching process. It includes all the input parameters and their respective values, providing a comprehensive overview of the caching setup. This output is essential for understanding how the caching mechanism is configured and can be used for debugging or further optimization.

WanVideo TeaCache Usage Tips:

  • To achieve the best results, carefully select the coefficients for your model to ensure that early steps are not skipped, as this can negatively impact motion quality.
  • Consider starting the caching process at a later step to maintain the quality of the initial steps, which are crucial for consistent motion.
  • When not using coefficients, set the threshold value to be approximately ten times smaller than when coefficients are applied to maintain a balance between speed and quality.

WanVideo TeaCache Common Errors and Solutions:

"Invalid cache device specified"

  • Explanation: This error occurs when an unsupported device is selected for caching.
  • Solution: Ensure that the cache_device parameter is set to either "main_device" or "offload_device".

"Threshold value too high"

  • Explanation: This error indicates that the rel_l1_thresh value is set too high, potentially leading to skipped steps and degraded motion quality.
  • Solution: Adjust the rel_l1_thresh to a lower value, especially when not using coefficients, to ensure that early steps are not skipped.

"Coefficient selection error"

  • Explanation: This error arises when inappropriate coefficients are used, leading to skipped early steps.
  • Solution: Carefully select and apply the recommended coefficients for your model to maintain motion quality and avoid skipping crucial steps.

WanVideo TeaCache Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-WanVideoWrapper
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

WanVideo TeaCache