-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LoRA to Combine with DeepCache for Acceleration (#511)
This PR is done: - [x] Add workflow. After testing multiple trained LoRAs, apply the most relatively appropriate DeepCache hyperparameters. - [x] Add README. ![image](https://github.com/siliconflow/onediff/assets/54010254/e71e6428-8cf1-4b21-b607-ce141f4712a8) For the Aether Cloud style of LoRA, it can be downloaded from https://civitai.com/models/141029/aether-cloud-lora-for-sdxl.
- Loading branch information
1 parent
f1e18ef
commit a385601
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## LoRA to Combine with DeepCache for Acceleration | ||
|
||
We combined [OneDiff DeepCache](https://github.com/siliconflow/onediff/tree/main/onediff_comfy_nodes#deepcache) and LoRA, achieving more than a 2.7x acceleration for shapes of 1024*1024, workflow reference: | ||
![](lora-deepcache.png) | ||
|
||
For the Aether Cloud style of LoRA, it can be downloaded from https://civitai.com/models/141029/aether-cloud-lora-for-sdxl. | ||
|
||
|
||
#### Performance of Community Edition: | ||
|
||
Updated on Jan 11, 2024. Device: A100 GPU | ||
|
||
| | LoRA | LoRA + DeepCache | Percentage improvement | | ||
| -------------------------------------------------------------- | --------------- | ------------------ | ---------------------- | | ||
| 512 * 1024 | 16.30 it/s | 39.57 it/s | 142.45% | | ||
| 1024 * 1024 | 9.10 it/s | 25.19 it/s | 176.04% | | ||
|
||
However, due to the characteristics of DeepCache, combining it with LoRA introduces some differences in the output: | ||
![](compare.png) | ||
|
||
|
||
Note: If your system or business requires more personalized support, please check: https://github.com/siliconflow/onediff?tab=readme-ov-file#onediff-enterprise-edition |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.