Skip to content

update kernels-community/aiter-rope version - #46810

Merged
vasqu merged 3 commits into
huggingface:mainfrom
Abdennacer-Badaoui:update-aiter-rope-versin
Jun 22, 2026
Merged

vasqu merged 3 commits into
huggingface:mainfrom
Abdennacer-Badaoui:update-aiter-rope-versin

Conversation

@Abdennacer-Badaoui

@Abdennacer-Badaoui Abdennacer-Badaoui commented Jun 22, 2026 •

Copy link
Copy Markdown
Member

As per title.
Related to : huggingface/kernels-community#974

@Abdennacer-Badaoui
Abdennacer-Badaoui requested a review from vasqu June 22, 2026 08:39
@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.

@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.

LGTM, would just add a small test so we might catch this earlier

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.

Can we add a small test that requires rocm so we don't encounter this again? Maybe a kernels test with a small dummy model 🫡

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Happy to add it. Since the breakage was a signature mismatch (aiter-rope still carried the old apply_rotary_transformers(..., position_ids) after the kernel dropped it and added can_torch_compile=True), I'd go with a functional test gated behind require_rocm + @slow: load a tiny dummy model with use_kernels=True on ROCm and compare logits against the non-kernelized baseline. That actually dispatches through apply_rotary_transformers, so a stale signature/version blows up; exactly what slipped through here. A pure signature-comparison test would be more targeted but fragile (compiled kernel funcs often expose only (*args, **kwargs) to inspect.signature, so it can silently pass), and it still needs ROCm to load the kernel anyway; so the forward test is strictly more robust for the same hardware requirement. Sound good?

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.

Yea sure, sounds good!

Comment thread tests/kernels/test_kernels.py Outdated
@require_kernels
@require_rocm
@slow
class TestRocmRotaryKernel(TestCasePlus):

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.

Imo we can add it under https://github.com/Abdennacer-Badaoui/transformers/blob/65d46ca47ef29547eb82783a9bc15ceebdb4636a/tests/kernels/test_kernels.py#L57

no need for a full new set here (just needs that on additional decorator then)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok let me move it there then

@vasqu
vasqu enabled auto-merge June 22, 2026 17:05
@vasqu

vasqu commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Perfect, merging 🫡 thanks a lot for pushing on the AMD side, super nice

@vasqu
vasqu added this pull request to the merge queue Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CI Dashboard: View test results in Grafana

Merged via the queue into huggingface:main with commit 8fea7d3 Jun 22, 2026
189 of 191 checks passed
stevhliu pushed a commit to stevhliu/transformers that referenced this pull request Jul 30, 2026
* update aiter-rope version

* add test

* move test
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