[Diffusion] add rocm support#13492
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Hi @sabreshao, |
|
/tag-and-rerun-ci |
|
We have to add tests on amd before merging this |
|
Hi @sabreshao, I’ve been working on a more detailed version of the AMD diffusion support. Do you mind if I file a new PR and add you as a co-author? Really appreciate your work! |
Fix pyproject_other.toml for rocm diffusion.
|
@hubertlu-tw #13743 merged into this PR. |
|
resolved in #13760 |
Motivation
Enable sglang diffusion on AMD hardware.
Modifications
1, Add hip path for custom_op.
2, Use Aiter as default attention backend on ROCm.
Accuracy Tests
Verified on MI308x and H20 platform.
Setup on MI308x:
Validation script:
from sglang.multimodal_gen import DiffGeneratordef main():generator = DiffGenerator.from_pretrained(model_path="Wan-AI/Wan2.1-T2V-1.3B-Diffusers",num_gpus=4,)prompt = "A curious raccoon peers through a vibrant field of yellow sunflowers, its eyes wide with interest."video = generator.generate(prompt,return_frames=True,output_path="my_videos/",save_output=True)if __name__ == '__main__':main()Benchmarking and Profiling
Checklist