cache-dit 1.5.2


pip install cache-dit

  Latest version

Released: Sep 07, 2026


Meta
Author: DefTruth, vipshop.com, etc.
Maintainer: DefTruth, vipshop.com, etc
Requires Python: >=3.10

Classifiers

⚡️🎉A PyTorch-native Inference Engine with Cache,
Parallelism, Quantization and CPU Offload for DiTs
Featured|HelloGitHub

🤗Why Cache-DiT❓❓Cache-DiT is built on top of the 🤗Diffusers library and now supports nearly ALL DiTs from Diffusers. It provides hybrid cache acceleration (DBCache, TaylorSeer, SCM, etc.) and comprehensive parallelism optimizations, including Context Parallelism, Tensor Parallelism, hybrid 2D or 3D parallelism, and dedicated extra parallelism support for Text Encoder, VAE, and ControlNet.

Cache-DiT is compatible with compilation, CPU Offloading, and quantization, fully integrates with SGLang Diffusion, vLLM-Omni, TensorRT-LLM, ComfyUI, and runs natively on NVIDIA GPUs, Ascend NPUs and AMD GPUs. Cache-DiT is fast, easy to use, and flexible for various DiTs (online docs at 📘cache-dit.io, tech report at 📘paper).

⚡️9x speedup by Cache-DiT with Cache, Context Parallelism and Compilation

📋Supported DiT Models

Cache-DiT supports 40+ DiT pipeline families (120+ Variants) from 🤗Diffusers, covering the vast majority of DiT-based pipelines. For full support matrix and detailed usage, please refer to our documentation at 📘cache-dit.io.

Modality Pipeline Series Transformer Variants C/P/Q/OF
Image FLUX FluxTransformer2DModel 10+ ✔️/✔️/✔️/✔️
Image FLUX.2 Flux2Transformer2DModel 1 ✔️/✔️/✔️/✔️
Image FLUX.2 Klein Flux2Transformer2DModel 3 ✔️/✔️/✔️/✔️
Image ERNIE-Image ErnieImageTransformer2DModel 1 ✔️/✔️/✔️/✔️
Image Qwen-Image QwenImageTransformer2DModel 9+ ✔️/✔️/✔️/✔️
Image Z-Image ZImageTransformer2DModel 6 ✔️/✔️/✔️/✔️
Image Joy-Image JoyImageEditTransformer3DModel 1 ✔️/✔️/✔️/✔️
Image Krea-2 Krea2Transformer2DModel 1 ✔️/✔️/✔️/✔️
Image Bria-Fibo BriaFiboTransformer2DModel 2 ✔️/✔️/✔️/✔️
Image GLM-Image GlmImageTransformer2DModel 1 ✔️/✔️/✔️/✔️
Image LongCat-Image LongCatImageTransformer2DModel 2 ✔️/✔️/✔️/✔️
Image Ovis-Image OvisImageTransformer2DModel 1 ✔️/✔️/✔️/✔️
Image SD3 SD3Transformer2DModel 3 ✔️/✖️/✔️/✔️
Image PixArt-Alpha PixArtTransformer2DModel 1 ✔️/✔️/✔️/✔️
Image PixArt-Sigma PixArtTransformer2DModel 1 ✔️/✔️/✔️/✔️
Image Sana (image) SanaTransformer2DModel 4 ✔️/✖️/✔️/✔️
Image DiT DiTTransformer2DModel 1 ✔️/✔️/✔️/✔️
Image HunyuanDiT HunyuanDiT2DModel 1 ✔️/✔️/✔️/✔️
Image HunyuanDiT-PAG HunyuanDiT2DModel 1 ✔️/✔️/✔️/✔️
Image AuraFlow AuraFlowTransformer2DModel 1 ✔️/✖️/✔️/✔️
Image CogView4 CogView4Transformer2DModel 2 ✔️/✔️/✔️/✔️
Image CogView3Plus CogView3PlusTransformer2DModel 1 ✔️/✔️/✔️/✔️
Image Hunyuan-Image HunyuanImageTransformer2DModel 2 ✔️/✔️/✔️/✔️
Image HiDream HiDreamImageTransformer2DModel 1 ✔️/✖️/✔️/✔️
Image Bria BriaTransformer2DModel 1 ✔️/✖️/✔️/✔️
Image Chroma ChromaTransformer2DModel 3 ✔️/✔️/✔️/✔️
Image PRX PRXTransformer2DModel 2 ✔️/✖️/✔️/✔️
Image OmniGen OmniGenTransformer2DModel 1 ✔️/✖️/✔️/✔️
Image Lumina LuminaNextDiT2DModel 2 ✔️/✖️/✔️/✔️
Image Lumina 2 Lumina2Transformer2DModel 2 ✔️/✖️/✔️/✔️
Image VisualCloze FluxTransformer2DModel 2 ✔️/✔️/✔️/✔️
Image Amused UVit2DModel 1 ✔️/✖️/✔️/✔️
Video CogVideoX CogVideoXTransformer3DModel 4 ✔️/✔️/✔️/✔️
Video Wan (T2V/I2V) WanTransformer3DModel 3 ✔️/✔️/✔️/✔️
Video Any-Flow AnyFlowTransformer3DModel 1 ✔️/✔️/✔️/✔️
Video Any-Flow-FAR AnyFlowFARTransformer3DModel 1 ✖️/✖️/✔️/✔️
Video Wan-VACE WanVACETransformer3DModel 1 ✔️/✔️/✔️/✔️
Video HunyuanVideo HunyuanVideoTransformer3DModel 4 ✔️/✔️/✔️/✔️
Video HunyuanVideo 1.5 HunyuanVideo15Transformer3DModel 2 ✔️/✖️/✔️/✔️
Video Mochi MochiTransformer3DModel 1 ✔️/✔️/✔️/✔️
Video Allegro AllegroTransformer3DModel 1 ✔️/✖️/✔️/✔️
Video EasyAnimate EasyAnimateTransformer3DModel 3 ✔️/✖️/✔️/✔️
Video ConsisID ConsisIDTransformer3DModel 1 ✔️/✔️/✔️/✔️
Video Cosmos CosmosTransformer3DModel 7+ ✔️/✖️/✔️/✔️
Video Cosmos3 (Omni) Cosmos3OmniTransformer 2 ✔️/✖️/✔️/✔️
Video LTX LTXVideoTransformer3DModel 5 ✔️/✔️/✔️/✔️
Video LTX2 LTX2VideoTransformer3DModel 6 ✔️/✔️/✔️/✔️
Video Helios HeliosTransformer3DModel 2 ✔️/✔️/✔️/✔️
Video ChronoEdit ChronoEditTransformer3DModel 1 ✔️/✔️/✔️/✔️
Video SkyReelsV2 SkyReelsV2Transformer3DModel 5 ✔️/✔️/✔️/✔️
Video Kandinsky5 (T2V/I2V) Kandinsky5Transformer3DModel 4 ✔️/✔️/✔️/✔️
Audio StableAudio StableAudioDiTModel 1 ✔️/✖️/✔️/✔️
3D/Other Shap-E PriorTransformer 1 ✔️/✖️/✔️/✔️
Other LucyEdit WanTransformer3DModel 1 ✔️/✔️/✔️/✔️

C: Hybrid Cache (DBCache + Calibrator: TaylorSeer/DMD/FoCa/SCM); P: Parallelism (Ulysses/Ring/USP/TP
TE-P/VAE-P/2D-P/3D-P); Q: Quantization (W8A8, W4A4); OF: Bucket-style Layerwise Offload (~0 overhead)

🤖Agentic Workflows

Cache-DiT provides a model-integration SKILL to help users integrate new DiT pipelines into Cache-DiT, including Cache, CP, TP, TE-P, VAE-P and carefully designed test cases. Users can use it with Coding Agents, e.g, GitHub Copilot, Claude Code, Open Code.

[!NOTE] Please note that quantization and layerwise offload in Cache-DiT are generally supported for nn.Module, thus no extra integration is needed for new DiT pipelines or transformers.

🌐Community Integration

©️Acknowledgements

Special thanks to vipshop's Computer Vision AI Team for supporting testing and deployment of this project. We learned and reused codes from: Diffusers, SGLang, vLLM-Omni, Nunchaku, xDiT and TaylorSeer.

©️Citations

@misc{cache-dit@2025,
  title={Cache-DiT: A PyTorch-native Inference Engine with Cache, Parallelism, Quantization and CPU Offload for DiTs.},
  url={https://github.com/vipshop/cache-dit.git},
  note={Open-source software available at https://github.com/vipshop/cache-dit.git},
  author={DefTruth, vipshop.com, etc.},
  year={2025}
}
1.5.2 Sep 07, 2026
1.5.1 Sep 01, 2026
1.5.0 Jun 16, 2026
1.3.12 Jun 09, 2026
1.3.11 Jun 04, 2026
1.3.10 Jun 04, 2026
1.3.9 May 27, 2026
1.3.8 May 25, 2026
1.3.7 May 12, 2026
1.3.6 May 11, 2026
1.3.5 Mar 30, 2026
1.3.4 Mar 27, 2026
1.3.3 Mar 26, 2026
1.3.2 Mar 26, 2026
1.3.1 Mar 25, 2026
1.3.0 Mar 11, 2026
1.2.3 Feb 26, 2026
1.2.2 Feb 10, 2026
1.2.1 Feb 02, 2026
1.2.0 Jan 16, 2026
1.1.10 Dec 31, 2025
1.1.9 Dec 22, 2025
1.1.8 Dec 10, 2025
1.1.7 Dec 06, 2025
1.1.6 Dec 05, 2025
1.1.5 Dec 05, 2025
1.1.4 Nov 28, 2025
1.1.3 Nov 28, 2025
1.1.2 Nov 24, 2025
1.1.1 Nov 19, 2025
1.1.0 Nov 18, 2025
1.0.16 Nov 17, 2025
1.0.15 Nov 13, 2025
1.0.14 Nov 11, 2025
1.0.13 Nov 07, 2025
1.0.12 Nov 07, 2025
1.0.11 Nov 05, 2025
1.0.10 Oct 30, 2025
1.0.9 Oct 24, 2025
1.0.8 Oct 22, 2025
1.0.7 Oct 22, 2025
1.0.6 Oct 20, 2025
1.0.5 Oct 15, 2025
1.0.4 Oct 14, 2025
1.0.3 Oct 12, 2025
1.0.2 Oct 10, 2025
1.0.1 Sep 26, 2025
1.0.0 Sep 25, 2025
0.3.3 Sep 23, 2025
0.3.2 Sep 22, 2025
0.3.1 Sep 19, 2025
0.3.0 Sep 17, 2025
0.2.37 Sep 17, 2025
0.2.36 Sep 16, 2025
0.2.34 Sep 12, 2025
0.2.33 Sep 10, 2025
0.2.32 Sep 08, 2025
0.2.31 Sep 08, 2025
0.2.30 Sep 05, 2025
0.2.29 Sep 04, 2025
0.2.28 Sep 03, 2025
0.2.27 Sep 01, 2025
0.2.26 Aug 29, 2025
0.2.25 Aug 28, 2025
0.2.24 Aug 26, 2025
0.2.23 Aug 25, 2025
0.2.22 Aug 25, 2025
0.2.21 Aug 22, 2025
0.2.20 Aug 21, 2025
0.2.19 Aug 20, 2025
0.2.18 Aug 20, 2025
0.2.17 Aug 19, 2025
0.2.16 Aug 15, 2025
0.2.15 Aug 11, 2025
0.2.14 Aug 05, 2025
0.2.13 Jul 30, 2025
0.2.12 Jul 24, 2025
0.2.11 Jul 21, 2025
0.2.10 Jul 17, 2025
0.2.9 Jul 13, 2025
0.2.8 Jul 11, 2025
0.2.7 Jul 10, 2025
0.2.6 Jul 09, 2025
0.2.5 Jul 09, 2025
0.2.4 Jul 03, 2025
0.2.3 Jul 01, 2025
0.2.2 Jun 30, 2025
0.2.1 Jun 22, 2025
0.2.0 Jun 20, 2025
0.1.8 Jun 20, 2025
0.1.7 Jun 18, 2025
0.1.6 Jun 18, 2025
0.1.5 Jun 18, 2025
0.1.3 Jun 17, 2025
0.1.2 Jun 17, 2025
0.1.1 Jun 17, 2025
0.1.1.dev2 Jun 16, 2025
0.1.0 Jun 17, 2025

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
packaging
pyyaml
torch (>=2.7.1)
diffusers (>=0.36.0)
transformers (>=4.55.2)