Skip to content

Conversation

@Gasoonjia
Copy link
Contributor

@Gasoonjia Gasoonjia commented Jun 11, 2025

Stack from ghstack (oldest at bottom):

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

Differential Revision: D76405701

…block pybinding backend migration

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

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

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 11, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit a16e37e with merge base c4c4763 (image):

NEW FAILURE - The following job has failed:

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

@facebook-github-bot facebook-github-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 Jun 11, 2025
Gasoonjia added a commit that referenced this pull request Jun 11, 2025
…block pybinding backend migration

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

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

ghstack-source-id: 289729679
Pull Request resolved: #11566
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76405701

@github-actions
Copy link

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.

…ssues to unblock pybinding backend migration"

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

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

[ghstack-poisoned]
Gasoonjia added a commit that referenced this pull request Jun 11, 2025
…block pybinding backend migration

Pull Request resolved: #11566

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

Differential Revision: [D76405701](https://our.internmc.facebook.com/intern/diff/D76405701/)
ghstack-source-id: 289747055
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76405701

@Gasoonjia Gasoonjia changed the title hacky solution to solve D73564127's duplicate dependency issues to unblock pybinding backend migration solve duplicate dependency issues to unblock pybinding backend migration Jun 11, 2025
@shoumikhin
Copy link
Contributor

I vaguely remember a discussion with @swolchok et al. about this hack, did we eventually decide to go with it? Will it be temporary workaround with a timeline to revert when a proper solution is introduced?

@swolchok
Copy link
Contributor

swolchok commented Jun 11, 2025

I vaguely remember a discussion with @swolchok et al. about this hack, did we eventually decide to go with it? Will it be temporary workaround with a timeline to revert when a proper solution is introduced?

yeah I don't think we should be doing this and I also vaguely recall talking about it previously, but I don't have a reference to the specific previous discussion.

…kend migration"

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76405701

…kend migration"

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

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

[ghstack-poisoned]
Gasoonjia added a commit that referenced this pull request Jun 11, 2025
…block pybinding backend migration

Pull Request resolved: #11566

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.
ghstack-source-id: 289776208

Differential Revision: [D76405701](https://our.internmc.facebook.com/intern/diff/D76405701/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76405701

…kend migration"

This diff creates different namespace for Module and BundledModule under different mode (aten or portable) to hacky solve the duplicated symbol issues in D73564127 since the their are too many complex dependency issues to solve, and lots of users are asking for pybinding backend migration.

In the future this impl should be replaced by shim-like layers.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76405701

@facebook-github-bot facebook-github-bot merged commit 48ef48c into gh/gasoonjia/14/base Jun 12, 2025
103 of 105 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/gasoonjia/14/head branch June 12, 2025 05:46
JacobSzwejbka pushed a commit that referenced this pull request Jun 12, 2025
…ion (#11594)

This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #11566 by
@Gasoonjia
^ 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/gasoonjia/14/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/14/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/14/orig
@diff-train-skip-merge

Co-authored-by: gasoonjia <[email protected]>
@Gasoonjia
Copy link
Contributor Author

@shoumikhin and @swolchok yes we do have discussion previously and this is sort of a hacky way. But in our codebase there're too much existing targets that depends on both aten and portable mode at the same time and some weird dependency situation we can not solve. So maybe currently we can land it first and then working on some shim-like layer to solve the dependency issue completely.

cc. @larryliu0820 @cccclai @lucylq

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants