Acceleration library for diffusion models
Top 23.3% on sourcepulse
OneDiff is an acceleration library designed to speed up diffusion models for users of popular UIs like ComfyUI and Hugging Face Diffusers. It offers PyTorch code compilation and optimized GPU kernels, aiming to provide significant performance gains with minimal code changes.
How It Works
OneDiff leverages PyTorch module compilation, specifically through its OneFlow backend or the optional Nexfort compiler. This process compiles PyTorch code into optimized kernels, reducing overhead from dynamic Python execution and enabling faster inference. The compilation can be done offline and the results loaded for online serving, supporting dynamic input shapes without recompilation penalties.
Quick Start & Requirements
python3 -m pip install --pre onediff
(or from source for plugins).Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 months ago
1 day