โก๏ธ๐A PyTorch-native Inference Engine with Cache, Parallelism, Quantization and CPU Offload for DiTs
๊ฐ์
โก๏ธ๐A PyTorch-native Inference Engine with Cache, Parallelism, Quantization and CPU Offload for DiTs
README
**๐ค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).
๐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.
๐ค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
- ๐ComfyUI x Cache-DiT
- ๐(Intel) llm-scaler x Cache-DiT
- ๐Diffusers x Cache-DiT
- ๐TensorRT-LLM x Cache-DiT
- ๐SGLang Diffusion x Cache-DiT
- ๐vLLM-Omni x Cache-DiT
- ๐Nunchaku x Cache-DiT
- ๐SD.Next x Cache-DiT
- ๐stable-diffusion.cpp x Cache-DiT
- ๐jetson-containers x Cache-DiT
ยฉ๏ธ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}
}
์ถ์ฒ ๋๊ตฌ
๋ค๋ฅธ ํค์๋๋ฅผ ์ ๋ ฅํ๊ฑฐ๋ ํํฐ๋ฅผ ์ ๊ฑฐํด ๋ณด์ธ์.
์ค์น
npx skillfish add vipshop/cache-dit