-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[diffusion][doc]: add ring sp performance benchmark page #20998
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
Merged
+75
−0
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,67 @@ | ||
| # Ring SP Benchmark: Wan2.2-TI2V-5B (u1r2 vs Baseline) | ||
|
|
||
| This page reports Ring-SP performance for `Wan2.2-TI2V-5B-Diffusers` using: | ||
|
|
||
| - Parallel config: `sp=2, ulysses=1, ring=2` (short: `u1r2`) | ||
| - Baseline config: `sp=1, ulysses=1, ring=1` (short: `u1r1`) | ||
|
|
||
| ## Benchmark Setup | ||
|
|
||
| - Model: `Wan2.2-TI2V-5B-Diffusers` | ||
| - GPU: `48G RTX40 series * 2` | ||
|
|
||
| ## Online Serving | ||
|
|
||
| ### Ring SP (`u1r2`) | ||
|
|
||
| ```bash | ||
| sglang serve \ | ||
| --model-type diffusion \ | ||
| --model-path /model/HuggingFace/Wan-AI/Wan2.2-TI2V-5B-Diffusers \ | ||
| --num-gpus 2 --sp-degree 2 --ulysses-degree 1 --ring-degree 2 \ | ||
| --port 8898 | ||
| ``` | ||
|
|
||
| ### Baseline (`u1r1`) | ||
|
|
||
| ```bash | ||
| sglang serve \ | ||
| --model-type diffusion \ | ||
| --model-path /model/HuggingFace/Wan-AI/Wan2.2-TI2V-5B-Diffusers \ | ||
| --num-gpus 1 --sp-degree 1 --ulysses-degree 1 --ring-degree 1 \ | ||
| --port 8898 | ||
| ``` | ||
|
|
||
| ## Benchmarks | ||
|
|
||
| Benchmark Disclaimer | ||
|
|
||
| These benchmarks are provided for reference under one specific setup and command configuration. Actual performance may vary with model settings, runtime environment, and request patterns. | ||
|
|
||
| ### Stage Time Breakdown | ||
|
|
||
| | Stage / Metric | `u1r2` (s) | `u1r1` baseline (s) | Speedup | | ||
| |---|---:|---:|---:| | ||
| | InputValidation | 0.1060 | 0.1029 | 0.97x | | ||
| | TextEncoding | 1.3965 | 2.2261 | 1.59x | | ||
| | LatentPreparation | 0.0002 | 0.0002 | 1.00x | | ||
| | TimestepPreparation | 0.0003 | 0.0004 | 1.33x | | ||
| | Denoising | 52.6358 | 71.6785 | 1.36x | | ||
| | Decoding | 7.6708 | 13.4314 | 1.75x | | ||
| | **Total** | **63.74** | **90.63** | **1.42x** | | ||
|
|
||
| ### Memory Usage | ||
|
|
||
| | Memory Metric | `u1r2` (GB) | `u1r1` baseline (GB) | Delta | | ||
| |---|---:|---:|---:| | ||
| | Peak GPU Memory | 20.07 | 27.40 | -7.33 | | ||
| | Peak Allocated | 13.35 | 20.40 | -7.05 | | ||
| | Memory Overhead | 6.72 | 7.00 | -0.28 | | ||
| | Overhead Ratio | 33.5% | 25.6% | +7.9pp | | ||
|
|
||
| ## Summary | ||
|
|
||
| - End-to-end latency improves from `90.63s` to `63.74s` (`1.42x`). | ||
| - Main gains come from `Denoising` (`1.36x`) and `Decoding` (`1.75x`). | ||
| - Absolute memory usage drops noticeably on Ring-SP (`Peak GPU Memory -7.33GB`, `Peak Allocated -7.05GB`). | ||
| - Overhead ratio rises (`+7.9pp`), so future tuning can focus on reducing communication/runtime overhead while preserving the latency gain. | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.