Skip to content

Add some AITER kernel routing for ROCm - #46268

Merged
vasqu merged 4 commits into
huggingface:mainfrom
Abdennacer-Badaoui:some-rocm-kernels
Jun 17, 2026
Merged

vasqu merged 4 commits into
huggingface:mainfrom
Abdennacer-Badaoui:some-rocm-kernels

Conversation

@Abdennacer-Badaoui

@Abdennacer-Badaoui Abdennacer-Badaoui commented May 28, 2026 •

Copy link
Copy Markdown
Member

Routes ROCm to AITER Triton kernels on AMD GPUs:

Longer-term goal: ship the full AITER in Kernels (same model as liger-kernels) rather than one repo per kernel. We're starting with aiter-rope and aiter-flash-attn because those are the two we need in transformers right now.

@Abdennacer-Badaoui
Abdennacer-Badaoui marked this pull request as draft May 28, 2026 17:15
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Abdennacer-Badaoui
Abdennacer-Badaoui requested a review from vasqu June 4, 2026 15:18
@Abdennacer-Badaoui
Abdennacer-Badaoui marked this pull request as ready for review June 4, 2026 15:21

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work! I just have a few smaller questions / suggestions

Comment thread src/transformers/modeling_utils.py Resolved
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46268&sha=5ba56a

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 🤗

@vasqu

vasqu commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

@Abdennacer-Badaoui time to sync with main. Can you readjust? Then I would merge afterwards 🫡

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge?

@Abdennacer-Badaoui

Copy link
Copy Markdown
Member Author

Yes, I’m done. If you don't have any additional comments or concerns, we can merge it.

@vasqu
vasqu enabled auto-merge June 17, 2026 17:25
@vasqu

vasqu commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Nope looks good, adding it to the queue

@vasqu
vasqu added this pull request to the merge queue Jun 17, 2026
Merged via the queue into huggingface:main with commit 497d83c Jun 17, 2026
101 checks passed
@stevhliu stevhliu mentioned this pull request Jun 24, 2026
stevhliu pushed a commit to stevhliu/transformers that referenced this pull request Jul 30, 2026
* use kernels-community/megablocks for rocm

* add aiter-rope rocm mapping

* add aiter-flash-attn rocm fallback for FA3

* resolve_kernel_device_type for rocm
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.

3 participants