Cache-DiT is a PyTorch-native inference engine with cache acceleration (DBCache, TaylorSeers, FoCa, SCM, SVD-Cache, DMD-Cache, HiCache, etc), quantization (SVDQ/FP8/FP4/INT4), cpu offload and parallelism (CP/TP/USP/TE-P/VAE-P/2D-P/3D-P) for various DiTs and runs natively on NVIDIA GPUs, Huawei Ascend NPUs and AMD GPUs.
Cache-DiT is also compatible with torch.compile and fully integrates with SGLang Diffusion, vLLM-Omni, TensorRT-LLM, xDiT. Cache-DiT now supports 60+🎉 DiT pipeline families (150+🎉 Variants), covering the vast majority of DiTs. For full support matrix and detailed usage, please refer to our docs at 📘cache-dit.io.
- 🎉xDiT x Cache-DiT
- 🎉ComfyUI x Cache-DiT
- 🎉Diffusers x Cache-DiT
- 🎉MindIE-SD x Cache-DiT
- 🎉TensorRT-LLM x Cache-DiT
- 🎉SGLang Omni x Cache-DiT
- 🎉SGLang Diffusion x Cache-DiT
- 🎉vLLM-Omni x Cache-DiT
- 🎉Nunchaku x Cache-DiT
- 🎉SD.Next x Cache-DiT
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.
@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}
}