turn off dit_layerwise_offload for wan on rocm#17569
turn off dit_layerwise_offload for wan on rocm#17569Fridge003 merged 3 commits intosgl-project:mainfrom
Conversation
Summary of ChangesHello @zyzshishui, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements a crucial performance enhancement for users running Wan models on ROCm-based hardware. By disabling the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request disables dit_layerwise_offload for Wan models on ROCm platforms by default to improve performance, which is supported by the provided benchmarks. The implementation is well-structured, introducing a new method in the Platform interface to handle platform-specific defaults and overriding it for ROCm. The logic is correctly applied in the server arguments check. The changes are clear and effective. I have one minor style suggestion to ensure code consistency.
|
/tag-run-ci-label |
Motivation
This pr is related to #16499. On MI350/MI355X, Wan models run faster with
dit_layerwise_offloadoff.Modifications
Turn off
dit_layerwise_offloadon rocm platform by defaultAccuracy Tests
Benchmarking and Profiling
MI350
MI355X
Repro commands
Wan2.2-T2V-A14B (single GPU)
Wan2.2-T2V-A14B (8 GPUs)
Wan2.2-TI2V-5B (single GPU / 8 GPUs)
Checklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci