|
Download exp_code/1_benchmark/DiffSynth-Studio/examples/TeaCache/README.md from SuperCS/useful_code: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/datasets/SuperCS/useful_code/resolve/a15ff044296b40dcb1cd3f65de1e0cd84a0150ec/exp_code/1_benchmark/DiffSynth-Studio/examples/TeaCache/README.md
- Command line
-
hf download hf://datasets/SuperCS/useful_code@a15ff044296b40dcb1cd3f65de1e0cd84a0150ec/exp_code/1_benchmark/DiffSynth-Studio/examples/TeaCache/README.md
-
curl -L -o README.md https://huggingface.co/datasets/SuperCS/useful_code/resolve/a15ff044296b40dcb1cd3f65de1e0cd84a0150ec/exp_code/1_benchmark/DiffSynth-Studio/examples/TeaCache/README.md
1.19 kB
TeaCache
TeaCache (Timestep Embedding Aware Cache) is a training-free caching approach that estimates and leverages the fluctuating differences among model outputs across timesteps, thereby accelerating the inference.
Examples
FLUX
Script: ./flux_teacache.py
Model: FLUX.1-dev
Steps: 50
GPU: A100
Hunyuan Video
Script: ./hunyuanvideo_teacache.py
Model: Hunyuan Video
Steps: 30
GPU: A100
The following video was generated using TeaCache. It is nearly identical to the video without TeaCache enabled, but with double the speed.
https://github.com/user-attachments/assets/cd9801c5-88ce-4efc-b055-2c7737166f34