<span class="author-block">
<a href="https://liewfeng.github.io" target="_blank">Feng Liu</a><sup>1</sup><sup>*</sup>,
</span>
<span class="author-block">
<a href="https://scholar.google.com.hk/citations?user=ZO3OQ-8AAAAJ" target="_blank">Shiwei Zhang</a><sup>2</sup><sup>†</sup>,
</span>
<span class="author-block">
<a href="https://jeffwang987.github.io" target="_blank">Xiaofeng Wang</a><sup>1,3</sup>,
</span>
<span class="author-block">
<a href="https://weilllllls.github.io" target="_blank">Yujie Wei</a><sup>4</sup>,
</span>
<span class="author-block">
<a href="http://haonanqiu.com" target="_blank">Haonan Qiu</a><sup>5</sup>
</span>
<span class="author-block">
<a href="https://callsys.github.io/zhaoyuzhong.github.io-main" target="_blank">Yuzhong Zhao</a><sup>1</sup>,
</span>
<span class="author-block">
<a href="https://scholar.google.com.sg/citations?user=16RDSEUAAAAJ" target="_blank">Yingya Zhang</a><sup>2</sup>,
</span>
<span class="author-block">
<a href="https://scholar.google.com/citations?user=tjEfgsEAAAAJ&hl=en&oi=ao" target="_blank">Qixiang Ye</a><sup>1</sup>,
</span>
<span class="author-block">
<a href="https://scholar.google.com/citations?user=0IKavloAAAAJ&hl=en&oi=ao" target="_blank">Fang Wan</a><sup>1</sup><sup>‡</sup>
</span>
<span class="author-block"><sup>1</sup>University of Chinese Academy of Sciences, </span>
<span class="author-block"><sup>2</sup>Alibaba Group</span>
<span class="author-block"><sup>3</sup>Institute of Automation, Chinese Academy of Sciences</span>
<span class="author-block"><sup>4</sup>Fudan University, </span>
<span class="author-block"><sup>5</sup>Nanyang Technological University</span>
(* Work was done during internship at Alibaba Group. † Project Leader. ‡ CorresCorresponding author.)

We introduce Timestep Embedding Aware Cache (TeaCache), a training-free caching approach that estimates and leverages the fluctuating differences among model outputs across timesteps, thereby accelerating the inference. TeaCache works well for Video Diffusion Models, Image Diffusion models and Audio Diffusion Models. For more details and results, please visit our project page.
If you develop/use TeaCache in your projects and you would like more people to see it, please inform us.(liufeng20@mails.ucas.ac.cn)
Model - FramePack supports TeaCache. Thanks @lllyasviel. - FastVideo supports TeaCache. Thanks @BrianChen1129 and @jzhang38. - EasyAnimate supports TeaCache. Thanks @hkunzhe and @bubbliiiing. - Ruyi-Models supports TeaCache. Thanks @cellzero. - ConsisID supports TeaCache. Thanks @SHYuanBest.
ComfyUI - ComfyUI-TeaCache for TeaCache. Thanks @YunjieYu. - ComfyUI-WanVideoWrapper supports TeaCache4Wan2.1. Thanks @kijai. - ComfyUI-TangoFlux supports TeaCache. Thanks @LucipherDev. - ComfyUI_Patches_ll supports TeaCache. Thanks @lldacing. - Comfyui_TTP_Toolset supports TeaCache. Thanks @TTPlanetPig. - ComfyUI-TeaCacheHunyuanVideo for TeaCache4HunyuanVideo. Thanks @facok. - ComfyUI-HunyuanVideoWrapper supports TeaCache4HunyuanVideo. Thanks @kijai, ctf05 and DarioFT.
Parallelism - Teacache-xDiT for multi-gpu inference. Thanks @MingXiangL.
Engine - SD.Next supports TeaCache. Thanks @vladmandic. - DiffSynth Studio supports TeaCache. Thanks @Artiprocher.
Text to Video - TeaCache4Wan2.1 - TeaCache4Cosmos - TeaCache4CogVideoX1.5 - TeaCache4LTX-Video - TeaCache4Mochi - TeaCache4HunyuanVideo - TeaCache4CogVideoX - TeaCache4Open-Sora - TeaCache4Open-Sora-Plan - TeaCache4Latte
Image to Video - TeaCache4Wan2.1 - TeaCache4Cosmos - TeaCache4CogVideoX1.5 - TeaCache4ConsisID
Text to Image - TeaCache4Lumina2 - TeaCache4HiDream-I1 - TeaCache4FLUX - TeaCache4Lumina-T2X
Text to Audio - TeaCache4TangoFlux
This repository is built based on VideoSys, Diffusers, Open-Sora, Open-Sora-Plan, Latte, CogVideoX, HunyuanVideo, ConsisID, FLUX, Mochi, LTX-Video, Lumina-T2X, TangoFlux, Cosmos, Wan2.1, HiDream-I1 and Lumina-Image-2.0. Thanks for their contributions!
If you find TeaCache is useful in your research or applications, please consider giving us a star ⭐ and citing it by the following BibTeX entry.
@article{liu2024timestep,
title={Timestep Embedding Tells: It's Time to Cache for Video Diffusion Model},
author={Liu, Feng and Zhang, Shiwei and Wang, Xiaofeng and Wei, Yujie and Qiu, Haonan and Zhao, Yuzhong and Zhang, Yingya and Ye, Qixiang and Wan, Fang},
journal={arXiv preprint arXiv:2411.19108},
year={2024}
}
$ claude mcp add TeaCache \
-- python -m otcore.mcp_server <graph>