Skip to content

aiter-rope/aiter-kernels: sync apply_rotary_transformers signature with rotary - #974

Merged
sayakpaul merged 2 commits into
huggingface:mainfrom
Abdennacer-Badaoui:fix-aiter-rope-signature-clean
Jun 20, 2026
Merged

sayakpaul merged 2 commits into
huggingface:mainfrom
Abdennacer-Badaoui:fix-aiter-rope-signature-clean

Conversation

@Abdennacer-Badaoui

Copy link
Copy Markdown
Member

The rotary kernel's apply_rotary_transformers dropped the position_ids parameter (#242) and gained can_torch_compile = True (#907). The aiter-rope and aiter-kernels shims are meant to be drop-in replacements under the "rocm" entry of transformers' _KERNEL_MAPPING["rotary_pos_emb"], but both still carried the old signature.

Updates both shims to (q, k, cos, sin, unsqueeze_dim=1), sets can_torch_compile = True.

…th rotary

Drop the removed position_ids parameter and add can_torch_compile so the
aiter-rope and aiter-kernels shims stay drop-in replacements for rotary's
apply_rotary_transformers.
@sayakpaul

Copy link
Copy Markdown
Member

/kernel-bot build aiter-kernels

@github-actions

github-actions Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot build aiter-kernels
Mode: build only
Target branch: pr-974
PR head SHA: f19c33872e52773a6b15f4917f599b17d9093e41
Workflows: build.yaml, build-mac.yaml, build-windows.yaml

Dispatched (1):

@sayakpaul
sayakpaul merged commit aeb8ef0 into huggingface:main Jun 20, 2026
3 checks passed
@sayakpaul

Copy link
Copy Markdown
Member

/kernel-bot merge-and-upload aiter-kernels

@github-actions

github-actions Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot merge-and-upload aiter-kernels
Mode: merge, build and upload
Target branch: ``
PR head SHA: f19c33872e52773a6b15f4917f599b17d9093e41
Workflows: `build.yaml, build-mac.yaml, build-windows.yaml`

Merge result: PR is already merged. Continuing with build/upload.

Dispatched (1):

@danieldk

Copy link
Copy Markdown
Member

/kernel-bot merge-and-upload aiter-rope

@github-actions

github-actions Bot commented Jun 22, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot merge-and-upload aiter-rope
Mode: merge, build and upload
Target branch: ``
PR head SHA: f19c33872e52773a6b15f4917f599b17d9093e41
Workflows: `build.yaml, build-mac.yaml, build-windows.yaml`

Merge result: PR is already merged. Continuing with build/upload.

Dispatched (1):

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