Skip to content

feat(utils): optional aiter swizzle GEMM for ROCm MI + aiter#13327

Open
LiuYinfeng01 wants to merge 1 commit intohuggingface:mainfrom
LiuYinfeng01:feat/aiter-swizzle-gemm-rocm-mi
Open

feat(utils): optional aiter swizzle GEMM for ROCm MI + aiter#13327
LiuYinfeng01 wants to merge 1 commit intohuggingface:mainfrom
LiuYinfeng01:feat/aiter-swizzle-gemm-rocm-mi

Conversation

@LiuYinfeng01
Copy link

@LiuYinfeng01 LiuYinfeng01 commented Mar 25, 2026

Add diffusers.utils.aiter_swizzle_gemm: can_shuffle (layout k multiple of 2*IK), apply_swizzle for eligible large nn.Linear layers using shuffle_weight + hipb_mm with bpreshuffle.

Requires AMD MI-series (ROCm) with the aiter package installed; raises ImportError if aiter is missing when apply_swizzle is called. Exported from diffusers.utils alongside existing is_aiter_available checks.

What does this PR do?

Fixes # (issue)

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

Add diffusers.utils.aiter_swizzle_gemm: can_shuffle (layout k multiple of 2*IK), apply_swizzle for eligible large nn.Linear layers using shuffle_weight + hipb_mm with bpreshuffle.

Requires AMD MI-series (ROCm) with the aiter package installed; raises ImportError if aiter is missing when apply_swizzle is called. Exported from diffusers.utils alongside existing is_aiter_available checks.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant