-
Notifications
You must be signed in to change notification settings - Fork 128
Add performance data sdxl for RTX 4090 24G and 48G #1041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
eb122f2
29dfb2a
73cffe4
d9500e7
a833209
d127c51
facf6c3
c9b1751
efabda7
85c67c1
e7becc6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,23 +66,26 @@ python3 benchmarks/text_to_image.py \ | |
| ## Performance comparison | ||
|
|
||
| Testing on NVIDIA GeForce RTX 3090 / 4090, with image size of 1024*1024, iterating 20 steps: | ||
| | Metric | RTX 3090 1024*1024 | RTX 4090 1024*1024 | | ||
| | ------------------------------------ | --------------------- | --------------------- | | ||
| | Data update date (yyyy-mm-dd) | 2024-07-10 | 2024-07-10 | | ||
| | PyTorch iteration speed | 4.08 it/s | 6.93 it/s | | ||
| | OneDiff iteration speed | 7.21 it/s (+76.7%) | 13.92 it/s (+100.9%) | | ||
| | PyTorch E2E time | 5.60 s | 3.23 s | | ||
| | OneDiff E2E time | 3.41 s (-39.1%) | 1.67 s (-48.3%) | | ||
| | PyTorch Max Mem Used | 10.467 GiB | 10.467 GiB | | ||
| | OneDiff Max Mem Used | 12.004 GiB | 12.021 GiB | | ||
| | PyTorch Warmup with Run time | | | | ||
| | OneDiff Warmup with Compilation time | 474.36 s <sup>1</sup> | 236.54 s <sup>2</sup> | | ||
| | OneDiff Warmup with Cache time | 306.84 s | 104.57 s | | ||
| | Metric | RTX 3090 1024*1024 | RTX 4090 1024*1024 |RTX 4090(32G) 1024*1024|RTX 4090(48G) 1024*1024|RTX 4090(48G) 2048*2048| | ||
| | ------------------------------------ | --------------------- | --------------------- | --------------------- | --------------------- |---------------------- | | ||
| | Data update date (yyyy-mm-dd) | 2024-07-10 | 2024-07-10 |2024-07-25 |2024-07-25 |2024-07-25 | | ||
| | PyTorch iteration speed | 4.08 it/s | 6.93 it/s |6.158 it/s |7.585 it/s |1.649 it/s | | ||
| | OneDiff iteration speed | 7.21 it/s (+76.7%) | 13.92 it/s (+100.9%) |11.789 it/s (+91.4%) |14.895 it/s (+96.3%) |2.967 it/s (+79.9%) | | ||
| | PyTorch E2E time | 5.60 s | 3.23 s |3.674s |2.972 s |13.422s | | ||
| | OneDiff E2E time | 3.41 s (-39.1%) | 1.67 s (-48.3%) |2.029s (-44.8%) |1.571s (-47.2%) |7.688s(-42.8%) | | ||
| | PyTorch Max Mem Used | 10.467 GiB | 10.467 GiB |10.465 GiB |10.471 GiB |21.723 GiB | | ||
| | OneDiff Max Mem Used | 12.004 GiB | 12.021 GiB |12.002 GiB |12.013 GiB |24.015 GiB | | ||
| | PyTorch Max reserved CUDA memory Used| | |14.078 GiB |14.078 GiB |35.615 GiB | | ||
| | OneDiff Max reserved CUDA memory Used| | |14.873 GiB |14.859 GiB |35.666 GiB | | ||
| | PyTorch Warmup with Run time | | | | | | | ||
| | OneDiff Warmup with Compilation time | 474.36 s <sup>1</sup> | 236.54 s <sup>2</sup> |142.691 s <sup>3</sup> |287.011 s <sup>3</sup> |502.223 s <sup>3</sup> | | ||
| | OneDiff Warmup with Cache time | 306.84 s | 104.57 s |142.992s |132.207 s |363.051 s | | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oom 时的报错信息是什么,可以发下
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 报错信息如下
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 看起来是否会 oom,Max reserved CUDA memory Used 更有参考价值。
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| <sup>1</sup> OneDiff Warmup with Compilation time is tested on Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz. Note this is just for reference, and it varies a lot on different CPU. | ||
|
|
||
| <sup>2</sup> AMD EPYC 7543 32-Core Processor. | ||
|
|
||
| <sup>3</sup> Intel(R) Xeon(R) Gold 6150 CPU @ 2.70GHz (8 cores). | ||
|
|
||
| ## Dynamic shape for SDXL | ||
|
|
||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.