VC

vipshop/cache-dit

Developer tools
1.2์ฒœย stars ํ’ˆ์งˆ 46 ํŠธ๋ Œ๋“œ 46

โšก๏ธ๐ŸŽ‰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

ยฉ๏ธ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}
}
View this README on GitHub

์ถ”์ฒœ ๋„๊ตฌ

๋‹ค๋ฅธ ํ‚ค์›Œ๋“œ๋ฅผ ์ž…๋ ฅํ•˜๊ฑฐ๋‚˜ ํ•„ํ„ฐ๋ฅผ ์ œ๊ฑฐํ•ด ๋ณด์„ธ์š”.

์„ค์น˜

npx skillfish add vipshop/cache-dit