Skip to content

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

Open
Abdennacer-Badaoui wants to merge 2 commits into
huggingface:mainfrom
Abdennacer-Badaoui:fix-aiter-rope-signature-clean
Open

aiter-rope/aiter-kernels: sync apply_rotary_transformers signature with rotary#974
Abdennacer-Badaoui wants to merge 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.
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