需先自行安装 torch 和 diffusers,并额外安装编译器后端(Nexfort 或 OneFlow);用 ComfyUI/SD web UI 插件时建议从源码安装,并手动复制或软链代码到扩展目录;README 未说明默认端口。
onediff
siliconflowApache-2.0更新放缓开箱即用的扩散模型推理加速库,兼容 Diffusers 和 ComfyUI,通过编译优化和 LoRA 支持显著提升图像生成速度。
OneDiff: An out-of-the-box acceleration library for diffusion models.
python3 -m pip install onediff需要 Linux(Windows 需在 WSL2 下使用)和 NVIDIA GPU,README 列出的兼容型号包括 3090、4090、A100、A800、A10 等,Ascend 兼容仍在进行中;README 未说明显存要求。
一行代码加速扩散模型的即插即用库,兼容 HF diffusers、ComfyUI 和 SD web UI
开箱即用的扩散模型推理加速库,兼容 Diffusers 和 ComfyUI,通过编译优化和 LoRA 支持显著提升图像生成速度。
核心能力
- 一行代码接入 HF diffusers、ComfyUI、SD web UI
- 提供 PyTorch 代码编译工具与优化的 GPU Kernel
- 支持动态分辨率输入且无额外开销
- 可离线编译并保存计算图,线上加载省去编译时间
- 覆盖 SD1.5~2.1、SDXL、SVD、LoRA、ControlNet 等模型
容易踩的坑
- 1.2.01.2.0(SD3, Latte and Kolors acceleratoin)最新正式版2024-07-29 · 2024-07-29 14:57 UTC
Hightlight
- DiT model acceleratoin
- Kolors
- nexfort backend support SD 1.5~2.1 models
Distributed Run- This is moved to the next version
Reference: 1.2 milestone. https://github.com/siliconflow/onediff/milestone/5
New Contributors
- @rewbs made their first contribution in https://github.com/siliconflow/onediff/pull/888
- @sirouk made their first contribution in https://github.com/siliconflow/onediff/pull/1036
- @sh-tsai made their first contribution in https://github.com/siliconflow/onediff/pull/1038
What's Changed
- Modify mode for dynamic shape in README by @lixiang007666 in https://github.com/siliconflow/onediff/pull/943
- Dev nodes nexfort booster by @ccssu in https://github.com/siliconflow/onediff/pull/911
- Support diffusers sd3 speedup by @lixiang007666 in https://github.com/siliconflow/onediff/pull/945
- Support comfyui sd3 speedup by @ccssu in https://github.com/siliconflow/onediff/pull/946
- sd-webui refactor, and support refiner model by @marigoold in https://github.com/siliconflow/onediff/pull/930
- Add dynamic shape demo for diffusers sd3 by @lixiang007666 in https://github.com/siliconflow/onediff/pull/953
- Add prompt_styler by @ccssu in https://github.com/siliconflow/onediff/pull/959
- Fix Lora switching by @ccssu in https://github.com/siliconflow/onediff/pull/967
- remove oudated args for load_checkpoint by @doombeaker in https://github.com/siliconflow/onediff/pull/962
- webui support controlnet extension by @marigoold in https://github.com/siliconflow/onediff/pull/948
- webui supports nexfort backend and refactor compile related code by @marigoold in https://github.com/siliconflow/onediff/pull/966
- Refine diffusers SD3 by @lixiang007666 in https://github.com/siliconflow/onediff/pull/972
- Fix onediff_comfy_nodes/sd3_demo/README.md by @ccssu in https://github.com/siliconflow/onediff/pull/949
- add onediff_comfy_nodes/benchmarks by @ccssu in https://github.com/siliconflow/onediff/pull/956
- webui remove
import oneflowfor nexfort backend by @marigoold in https://github.com/siliconflow/onediff/pull/973 - fix bug of webui controlnet arbitrary resolution by @marigoold in https://github.com/siliconflow/onediff/pull/982
- Update SD3 performance by @lixiang007666 in https://github.com/siliconflow/onediff/pull/991
- Support latte by @clackhan in https://github.com/siliconflow/onediff/pull/964
- webui fix bug of AttrError shared.opt.onediff_compiler_cache_path by @marigoold in https://github.com/siliconflow/onediff/pull/989
- Refine pixart readme for sigma support by @lixiang007666 in https://github.com/siliconflow/onediff/pull/986
- Auto-Sync Graph Tensor on Weight Update by @ccssu in https://github.com/siliconflow/onediff/pull/1000
- Don't suppress OneDiff logging if client code has already defined handlers in parent logger by @rewbs in https://github.com/siliconflow/onediff/pull/888
- Fix load pipe by @ccssu in https://github.com/siliconflow/onediff/pull/1005
- to_support_animatediff by @lijunliangTG in https://github.com/siliconflow/onediff/pull/1009
- add diffusers nexfort example by @marigoold in https://github.com/siliconflow/onediff/pull/998
- Sd3 a100 by @strint in https://github.com/siliconflow/onediff/pull/1013
- fix latte max mem used by @strint in https://github.com/siliconflow/onediff/pull/1019
- Fix onediff comfy nodes docs by @ccssu in https://github.com/siliconflow/onediff/pull/988
- Feat pre commit lint by @strint in https://git
- 1.1.01.1.0( DiT model Acceleration and nexfort compiler backend Beta Release)2024-06-07 · 2024-06-07 14:14 UTC
查看更新说明
Hightlight
- Acceleration of DiT model (with Pixart alpha as example): https://github.com/siliconflow/onediff/tree/main/onediff_diffusers_extensions/examples/pixart_alpha
- nexfort( a lightweight compiler backend for DiT models): https://github.com/siliconflow/onediff/tree/main/src/onediff/infer_compiler/backends/nexfort
What's Changed
- add user enterprise key guide by @lijunliangTG in https://github.com/siliconflow/onediff/pull/819
- Refining the Deversus Quantization Documentation by @lijunliangTG in https://github.com/siliconflow/onediff/pull/802
- Fixed minor error in README.md by @iamrohitanshu in https://github.com/siliconflow/onediff/pull/823
- update sd-webui doc and api_example by @marigoold in https://github.com/siliconflow/onediff/pull/712
- ComfyUI online quantitative usage documentation in wiki by @fmk345 in https://github.com/siliconflow/onediff/pull/809
- onediffx add get_active_adapters, and related unittest by @marigoold in https://github.com/siliconflow/onediff/pull/833
- fix bug in webui when switching from quantized to non-quantized by @marigoold in https://github.com/siliconflow/onediff/pull/830
- onediffx supports lycoris by @marigoold in https://github.com/siliconflow/onediff/pull/817
- Refine SVD diffusers example for graph save/load by @lixiang007666 in https://github.com/siliconflow/onediff/pull/836
- Add Apache 2.0 LICENSE by @strint in https://github.com/siliconflow/onediff/pull/842
- Update README.md file by @lijunliangTG in https://github.com/siliconflow/onediff/pull/846
- Support 8x dimensions by hijacking cat in webui by @nono-Sang in https://github.com/siliconflow/onediff/pull/847
- Update onediff/onediff_comfy_nodes/README.md by @ccssu in https://github.com/siliconflow/onediff/pull/853
- fix removeprefix for python 3.8 by @nono-Sang in https://github.com/siliconflow/onediff/pull/856
- fix bug of always recompile in enterprise by @marigoold in https://github.com/siliconflow/onediff/pull/858
- [Fix] diffusers enterprise example seed by @lixiang007666 in https://github.com/siliconflow/onediff/pull/860
- Fix grammar in README by @jackalcooper in https://github.com/siliconflow/onediff/pull/803
- Refine README details by @jackalcooper in https://github.com/siliconflow/onediff/pull/862
- Dev ipa+isntantid by @ccssu in https://github.com/siliconflow/onediff/pull/814
- fix error caused by interpolate by @nono-Sang in https://github.com/siliconflow/onediff/pull/863
- add ONEFLOW_CONV2D_KERNEL_ENABLE_TUNING_WARMUP Environment variable by @lijunliangTG in https://github.com/siliconflow/onediff/pull/871
- Fix IPAdapter save load graph by @ccssu in https://github.com/siliconflow/onediff/pull/872
- define removesuffix in webui for python38 compatible by @marigoold in https://github.com/siliconflow/onediff/pull/874
- webui support save/load graph, refine UI by @marigoold in https://github.com/siliconflow/onediff/pull/825
- api for new backend by @hjchen2 in https://github.com/siliconflow/onediff/pull/794
- Version 1.1.0.dev1 by @jackalcooper in https://github.com/siliconflow/onediff/pull/876
- Fix Ci Error by @ccssu in https://github.com/siliconflow/onediff/pull/875
- Refine manual seed by @lixiang007666 in https://github.com/siliconflow/onediff/pull/877
- Fix bug for torch2oflow demo test by @nono-Sang in https://github.com/siliconflow/onediff/pull/878
- Upgrade ipa support by @ccssu in https://github.com/siliconflow/onediff/pull/879
- fix bug of onediff.infer_compiler.register by @marigoold in https://github.com/siliconflow/onediff/pull/885
- Fix ipa weight update by @ccssu in https://github.com/siliconflow/onediff/pull/891
- add nexfort and pixart alpha by @strint in https://github.com/siliconflow/onediff/pull/882
- Add throughput for benchmark by @lixiang007666 in https://github.com/siliconflow/onediff/pull/894
- Pixart performance data by @strint in https://github.com/siliconflow/onediff/pull/902
- Modify after Cancelling Quantitative Model by @ccssu in h
- 1.0.02024-04-13 · 2024-04-13 11:24 UTC
查看更新说明
OneDiff 1.0
OneDiff 1.0 is for Stable Diffusion and Stable Video Diffusion models(UNet/VAE/CLIP based) acceleration. We have got a lot of support/feedback from the community: https://github.com/siliconflow/onediff/wiki , big thanks!
The later version 2.0 will focus on DiT/Sora-like models.
OneDiff 1.0 's updates are mainly the issues in milestone 0.13
- New Features
- Quantize tools for enterprise edition
- https://github.com/siliconflow/onediff/tree/main/src/onediff/quantization
- https://github.com/siliconflow/onediff/blob/main/README_ENTERPRISE.md#onediff-enterprise
- SD-WebUI supports offline quantized model
- OneDiff Quality Evaluation
- Reuse compiled graph
- Refine support for Playground v2.5
- support ComfyUI-AnimateDiff-Evolved
- support ComfyUI_IPAdapter_plus
- support stable cascade
- Quantize tools for enterprise edition
- Improvements
- Improve performance of VAE
- Bug fixes
- Fix graph save/load
- Fix cuda memory usage on cuda 0 when run on other device
- Fix the quality problem
- many others bugs/issues from the community are fixed: https://github.com/siliconflow/onediff/milestone/2?closed=1
- Documentation
- Add more intro about onediff: https://github.com/siliconflow/onediff?tab=readme-ov-file#about-onediff
What's Changed
- Add -U in code blocks of installation using aliyun index link by @jackalcooper in https://github.com/siliconflow/onediff/pull/699
- Fix black images issues with v2.1 by @doombeaker in https://github.com/siliconflow/onediff/pull/701
- enterprise doc add sdwebui by @marigoold in https://github.com/siliconflow/onediff/pull/705
- Dev quantize pipeline by @hjchen2 in https://github.com/siliconflow/onediff/pull/704
- fix quantize pipeline by @hjchen2 in https://github.com/siliconflow/onediff/pull/706
- update script of webui in enterprise doc by @marigoold in https://github.com/siliconflow/onediff/pull/709
- add quantize tools for diffusers by @hjchen2 in https://github.com/siliconflow/onediff/pull/710
- QuantPipeline support from_single_file by @marigoold in https://github.com/siliconflow/onediff/pull/711
- Fix graph save by @doombeaker in https://github.com/siliconflow/onediff/pull/702
- support stable cascade by @chengzeyi in https://github.com/siliconflow/onediff/pull/659
- Allow image_only_indicator to be None (comfy) by @lixiang007666 in https://github.com/siliconflow/onediff/pull/720
- open_conv_bias_add_act_fusion_default by @clackhan in https://github.com/siliconflow/onediff/pull/721
- fix ci error by @ccssu in https://github.com/siliconflow/onediff/pull/729
- [Fix] black images issues with diffusers SD2.1 by @lixiang007666 in https://github.com/siliconflow/onediff/pull/725
- [feat] Add SVD1.1 example by @lixiang007666 in https://github.com/siliconflow/onediff/pull/726
- doc for rsd to by @strint in https://github.com/siliconflow/onediff/pull/713
- SD-WebUI supports offline quantized model by @marigoold in https://github.com/siliconflow/onediff/pull/718
- Refactor onediffx deepcache by @clackhan in https://github.com/siliconflow/onediff/pull/733
- fix pipeline save load by @strint in https://github.com/siliconflow
- New Features
- 0.12.10.12.1(Stable acceleration of SD and SVD for production environment)2024-03-02 · 2024-03-02 06:33 UTC
查看更新说明
SOTA performance update for SDXL and SVD
https://github.com/siliconflow/onediff/tree/main?tab=readme-ov-file#state-of-the-art-performance
Fully support dynamic resolution run of SD and SVD
Compile/Save/Load pipeline for HF diffusers
Fast LoRA loading and switching for HF diffusers
Accelerate InstantID
https://github.com/siliconflow/onediff/blob/main/benchmarks/instant_id.py https://github.com/siliconflow/onediff/tree/main/onediff_comfy_nodes#instantid
Accelerate SDXL lightning
Reuse compiled components between pipelines
Compatible with HF diffisers 0.26
SD Webui support img2img
Change log
- Official LoRA compatible with OneDiff by @marigoold in https://github.com/siliconflow/onediff/pull/507
- use dict.setdefault in oneflow_compile by @marigoold in https://github.com/siliconflow/onediff/pull/515
- fix compilation failure of resnet50 and faster_rcnn by @haoyang9804 in https://github.com/siliconflow/onediff/pull/491
- Add SILICON_ONEDIFF_LICENSE_KEY by @jackalcooper in https://github.com/siliconflow/onediff/pull/519
- Dev quant tools and fix graph file management by @ccssu in https://github.com/siliconflow/onediff/pull/495
- refine document of setup by @doombeaker in https://github.com/siliconflow/onediff/pull/522
- replace reshape by flatten and unflatten to speedup svd by @hjchen2 in https://github.com/siliconflow/onediff/pull/516
- graph load fix by @strint in https://github.com/siliconflow/onediff/pull/525
- compile vae decoder to avoid oneflow module to while upcasting vae by @hjchen2 in https://github.com/siliconflow/onediff/pull/526
- Debug Comfy in CI by @jackalcooper in https://github.com/siliconflow/onediff/pull/521
- simplify test by @strint in https://github.com/siliconflow/onediff/pull/529
- Enable docker hub cache by @jackalcooper in https://github.com/siliconflow/onediff/pull/532
- Add links for NA/EU by @jackalcooper in https://github.com/siliconflow/onediff/pull/542
- Reorder links by @jackalcooper in https://github.com/siliconflow/onediff/pull/544
- support_deepcache_svd_pipeline by @clackhan in https://github.com/siliconflow/onediff/pull/514
- view comfyui log by @doombeaker in https://github.com/siliconflow/onediff/pull/534
- Documents for OneDiff Enterprise by @doombeaker in https://github.com/siliconflow/onediff/pull/545
- fix adpater id argument by @doombeaker in https://github.com/siliconflow/onediff/pull/478
- Dev optimize svd by @chengzeyi in https://github.com/siliconflow/onediff/pull/533
- fix bug of _torch_module_to_with_check using oneflow args by @marigoold in https://github.com/siliconflow/onediff/pull/548
- transform diffusers AttnProcessor by @hjchen2 in https://github.com/siliconflow/onediff/pull/550
- update readme by @doombeaker in https://github.com/siliconflow/onediff/pull/553
- Update hf sd1.5 model url by @doombeaker in https://github.com/siliconflow/onediff/pull/554
- rm dynamo by @hjchen2 in https://github.com/siliconflow/onediff/pull/558
- Fix Quantitative Execution in sd_webui by @ccssu in https://github.com/siliconflow/onediff/pull/517
- Publish onediff on pypi automatically by @jackalcooper in https://github.com/siliconflow/onediff/pull/560
- add sd-webui api doc and script by @marigoold in https://github.com/siliconflow/onediff/pull/559
- Fix ControlNet Usage by @ccssu in https://github.co
- 0.12.00.12.0(Enable vm runtime as default)2024-01-12 · 2024-01-12 07:07 UTC
查看更新说明
onediff 0.12 (change image size will have no cost for most of the models now)
- switch image size will not trigger re-compilation(i.e. no time cost);
- faster to save and load a graph;
- smaller static memory needed;
- much easier to switch graphs;
Note
- After updating onediff to 0.12, oneflow also needs to be updated to the latest with https://github.com/siliconflow/onediff?tab=readme-ov-file#1-install-oneflow
- If you are using save/load graph. Please use this new version to save the graph again.
- For SVD(Stable Video Diffusion) onediff users, please use os.environ["VM_REBUILD_DYNAMIC_SHAPE"] = "1" to support DYNAMIC SHAPE with SVD. There has some re-compile cost, when enabling VM_REBUILD_DYNAMIC_SHAPE, so loading graph is needed. We will do more work on this.
OneDiff SDXL inference has been integrated into fal.ai playground
SDXL inference at the speed of thought: https://www.fal.ai/models/onediff-sdxl
And OneDiff ComfyUI nodes are in ComfyUI-Manager Now
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
onediff is an out-of-the-box acceleration library for diffusion models, it provides:
- Out-of-the-box acceleration for popular UIs/libs(such as HF diffusers and ComfyUI)
- PyTorch code compilation tools and strong optimized GPU Kernels for diffusion models
News
- [2024/07/23] :rocket: Up to 1.7x Speedup for Kolors: Kolors Acceleration Report
- [2024/06/18] :rocket: Acceleration for DiT models: SD3 Acceleration Report, PixArt Acceleration Report, and Latte Acceleration Report
- [2024/04/13] :rocket: OneDiff 1.0 is released (Acceleration of SD & SVD with one line of code)
- [2024/01/12] :rocket: Accelerating Stable Video Diffusion 3x faster with OneDiff DeepCache + Int8
- [2023/12/19] :rocket: Accelerating SDXL 3x faster with DeepCache and OneDiff
Hiring
We're hiring! If you are interested in working on onediff at SiliconFlow, we have roles open for Interns and Engineers in Beijing (near Tsinghua University).
If you have contributed significantly to open-source software and are interested in remote work, you can contact us at [email protected] with onediff in the email title.
Documentation
onediff is the abbreviation of "one line of code to accelerate diffusion models".
Use with HF diffusers and ComfyUI
Performance comparison
SDXL E2E time
- Model stabilityai/stable-diffusion-xl-base-1.0;
- Image size 1024*1024, batch size 1, steps 30;
- NVIDIA A100 80G SXM4;
SVD E2E time
- Model stabilityai/stable-video-diffusion-img2vid-xt;
- Image size 576*1024, batch size 1, steps 25, decoder chunk size 5;
- NVIDIA A100 80G SXM4;
Note that we haven't got a way to run SVD with TensorRT on Feb 29 2024.
Quality Evaluation
We also maintain a repository for benchmarking the quality of generation after acceleration: odeval
Community and Support
- Create an issue
- Chat in Discord:
- Community and Feedback
Installation
0. OS and GPU Compatibility
- Linux
- If you want to use onediff on Windows, please use it under WSL.
- The guide to install onediff in WSL2.
- NVIDIA GPUs
1. Install torch and diffusers
Note: You can choose the latest versions you want for diffusers or transformers.
python3 -m pip install "torch" "transformers==4.27.1" "diffusers[torch]==0.19.3"
2. Install a compiler backend
When considering the choice between OneFlow and Nexfort, either one is optional, and only one is needed.
-
For DiT structural models or H100 devices, it is recommended to use Nexfort.
-
For all other cases, it is recommended to use OneFlow. Note that optimizations within OneFlow will gradually transition to Nexfort in the future.
Nexfort
Install Nexfort is Optional. The detailed introduction of Nexfort is here.
python3 -m pip install -U torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 torchao==0.1
python3 -m pip install -U nexfort
OneFlow
Install OneFlow is Optional.
NOTE: We have updated OneFlow frequently for onediff, so please install OneFlow by the links below.
-
CUDA 11.8
For NA/EU users
python3 -m pip install -U --pre oneflow -f https://github.com/siliconflow/oneflow_releases/releases/expanded_assets/community_cu118For CN users
python3 -m pip install -U --pre oneflow -f https://oneflow-pro.oss-cn-beijing.aliyuncs.com/branch/community/cu118
-
CUDA 12.1
For NA/EU users
python3 -m pip install -U --pre oneflow -f https://github.com/siliconflow/oneflow_releases/releases/expanded_assets/community_cu122For CN users
python3 -m pip install -U --pre oneflow -f https://oneflow-pro.oss-cn-beijing.aliyuncs.com/branch/community/cu122 -
CUDA 12.2
For NA/EU users
python3 -m pip install -U --pre oneflow -f https://github.com/siliconflow/oneflow_releases/releases/expanded_assets/community_cu122For CN users
python3 -m pip install -U --pre oneflow -f https://oneflow-pro.oss-cn-beijing.aliyuncs.com/branch/community/cu122
3. Install onediff
- From PyPI
python3 -m pip install --pre onediff
- From source
git clone https://github.com/siliconflow/onediff.git
cd onediff && python3 -m pip install -e .
Or install for development:
# install for dev
cd onediff && python3 -m pip install -e '.[dev]'
# code formatting and linting
pip3 install pre-commit
pre-commit install
pre-commit run --all-files
NOTE: If you intend to utilize plugins for ComfyUI/StableDiffusion-WebUI, we highly recommend installing OneDiff from the source rather than PyPI. This is necessary as you'll need to manually copy (or create a soft link) for the relevant code into the extension folder of these UIs/Libs.
More about onediff
Architecture
Features
| Functionality | Details |
|---|---|
| Compiling Time | About 1 minute (SDXL) |
| Deployment Methods | Plug and Play |
| Dynamic Image Size Support | Support with no overhead |
| Model Support | SD1.5~2.1, SDXL, SDXL Turbo, etc. |
| Algorithm Support | SD standard workflow, LoRA, ControlNet, SVD, InstantID, SDXL Lightning, etc. |
| SD Framework Support | ComfyUI, Diffusers, SD-webui |
| Save & Load Accelerated Models | Yes |
| Time of LoRA Switching | Hundreds of milliseconds |
| LoRA Occupancy | Tens of MB to hundreds of MB. |
| Device Support | NVIDIA GPU 3090 RTX/4090 RTX/A100/A800/A10 etc. (Compatibility with Ascend in progress) |
Acceleration for State-of-the-art models
onediff supports the acceleration for SOTA models.
- stable: release for public usage, and has long-term support;
- beta: release for professional usage, and has long-term support;
- alpha: early release for expert usage, and should be careful to use;
| AIGC Type | Models | HF diffusers | ComfyUI | SD web UI | |||
|---|---|---|---|---|---|---|---|
| Community | Enterprise | Community | Enterprise | Community | Enterprise | ||
| Image | SD 1.5 | stable | stable | stable | stable | stable | stable |
| SD 2.1 | stable | stable | stable | stable | stable | stable | |
| SDXL | stable | stable | stable | stable | stable | stable | |
| LoRA | stable | stable | stable | ||||
| ControlNet | stable | stable | |||||
| SDXL Turbo | stable | stable | |||||
| LCM | stable | stable | |||||
| SDXL DeepCache | alpha | alpha | alpha | alpha | |||
| InstantID | beta | beta | |||||
| Video | SVD(stable Video Diffusion) | stable | stable | stable | stable | ||
| SVD DeepCache | alpha | alpha | alpha | alpha |
Acceleration for production environment
PyTorch Module compilation
Avoid compilation time for new input shape
Avoid compilation time for online serving
Compile and save the compiled result offline, then load it online for serving
- Save and Load the compiled graph
- Compile at one device(such as device 0), then use the compiled result to other device(such as device 1~7). Change device of the compiled graph to do multi-process serving
Distributed Run
If you want to do distributed inference, you can use onediff's compiler to do single-device acceleration in a distributed inference engine such as xDiT
OneDiff Enterprise Solution
If you need Enterprise-level Support for your system or business, you can email us at [email protected], or contact us through the website: https://siliconflow.cn/pricing
| Onediff Enterprise Solution | |
|---|---|
| More extreme compiler optimization for diffusion process | Usually another 20%~30% or more performance gain |
| End-to-end workflow speedup solutions | Sometimes 200%~300% performance gain |
| End-to-end workflow deployment solutions | Workflow to online model API |
| Technical support for deployment | High priority support |
Citation
@misc{2022onediff,
author={OneDiff Contributors},
title = {OneDiff: An out-of-the-box acceleration library for diffusion models},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/siliconflow/onediff}}
}