Skip to content

[ET-VK] Support alias_copy in partitioner by removing it as a redundant op#18408

Merged
meta-codesync[bot] merged 1 commit intogh/SS-JIA/501/basefrom
gh/SS-JIA/501/head
Mar 24, 2026
Merged

[ET-VK] Support alias_copy in partitioner by removing it as a redundant op#18408
meta-codesync[bot] merged 1 commit intogh/SS-JIA/501/basefrom
gh/SS-JIA/501/head

Conversation

@SS-JIA
Copy link
Copy Markdown
Contributor

@SS-JIA SS-JIA commented Mar 23, 2026

Stack from ghstack (oldest at bottom):

Models using QK normalization (e.g., Qwen3) generate aten.alias_copy.default
nodes from RMSNorm. Without Vulkan support for this op, these nodes create
partition boundaries that cause SpecViolationError during export. Since
alias_copy is a no-op identity operation, the fix registers it in op_registry
so the partitioner delegates it, and adds it to RemoveRedundantOpsTransform
so preprocess removes it before serialization. The C++ runtime never needs to
handle alias_copy.

Differential Revision: D97757921

…nt op

Models using QK normalization (e.g., Qwen3) generate aten.alias_copy.default
nodes from RMSNorm. Without Vulkan support for this op, these nodes create
partition boundaries that cause SpecViolationError during export. Since
alias_copy is a no-op identity operation, the fix registers it in op_registry
so the partitioner delegates it, and adds it to RemoveRedundantOpsTransform
so preprocess removes it before serialization. The C++ runtime never needs to
handle alias_copy.

Differential Revision: [D97757921](https://our.internmc.facebook.com/intern/diff/D97757921/)

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Mar 23, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18408

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit 6264407 with merge base 60d57e5 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

SS-JIA pushed a commit that referenced this pull request Mar 23, 2026
…nt op

Models using QK normalization (e.g., Qwen3) generate aten.alias_copy.default
nodes from RMSNorm. Without Vulkan support for this op, these nodes create
partition boundaries that cause SpecViolationError during export. Since
alias_copy is a no-op identity operation, the fix registers it in op_registry
so the partitioner delegates it, and adds it to RemoveRedundantOpsTransform
so preprocess removes it before serialization. The C++ runtime never needs to
handle alias_copy.

Differential Revision: [D97757921](https://our.internmc.facebook.com/intern/diff/D97757921/)

ghstack-source-id: 356136429
Pull Request resolved: #18408
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 23, 2026
@github-actions
Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-codesync meta-codesync Bot merged commit 8955ecd into gh/SS-JIA/501/base Mar 24, 2026
138 of 146 checks passed
@meta-codesync meta-codesync Bot deleted the gh/SS-JIA/501/head branch March 24, 2026 19:59
@meta-codesync meta-codesync Bot temporarily deployed to cherry-pick-bot March 24, 2026 19:59 Inactive
SS-JIA pushed a commit that referenced this pull request Mar 24, 2026
…nt op (#18461)

This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #18408 by
@SS-JIA
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/501/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/501/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/500/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/501/orig
Differential Revision:
[D97757921](https://our.internmc.facebook.com/intern/diff/D97757921/)
@diff-train-skip-merge

Co-authored-by: ssjia <ssjia@devvm26340.ftw0.facebook.com>
SS-JIA pushed a commit that referenced this pull request Mar 24, 2026
…nt op (#18461)

This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #18408 by
@SS-JIA
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/501/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/501/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/500/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/501/orig
Differential Revision:
[D97757921](https://our.internmc.facebook.com/intern/diff/D97757921/)
@diff-train-skip-merge

Co-authored-by: ssjia <ssjia@devvm26340.ftw0.facebook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants