Skip to content

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented Aug 6, 2025

Stack from ghstack (oldest at bottom):

Use the unlifted pass to tag constants for delegates.

Implications:

  • Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?

  • The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
  • After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
  • The lifted graph requires the ep graph signature to differentiate constants via the is_param function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

Differential Revision: D79736684

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Aug 6, 2025

🔗 Helpful Links

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

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

❌ 5 New Failures

As of commit 0593388 with merge base 9807fbe (image):

NEW FAILURES - The following jobs have failed:

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

lucylq added a commit that referenced this pull request Aug 6, 2025
Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

ghstack-source-id: 301154681
Pull Request resolved: #13163
@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 Aug 6, 2025
@facebook-github-bot
Copy link
Contributor

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

Copy link

github-actions bot commented Aug 6, 2025

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.

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Aug 6, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

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

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Aug 10, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.
ghstack-source-id: 301988374

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

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

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
@lucylq lucylq requested a review from jackzhxng as a code owner August 13, 2025 21:56
lucylq added a commit that referenced this pull request Aug 13, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.
ghstack-source-id: 302224469

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

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

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Aug 13, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.
ghstack-source-id: 302846439

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

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

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Aug 14, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.
ghstack-source-id: 302846439

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

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

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Aug 14, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.
ghstack-source-id: 302920139

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

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

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Aug 14, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.
ghstack-source-id: 302920139

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

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

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Aug 14, 2025
Pull Request resolved: #13163

Use the unlifted pass to tag constants for delegates.

Implications:
- Tagging must happen on the unlifted ep.module(), before going into to_edge_transform_and_lower/to_edge.

Why?
- The unlifted graph contains constants in getattr nodes, which is a convenient way to isolate constants.
- After going into to_edge_transform_and_lower/to_edge, transforms happen on the graph_module, which is lifted.
- The lifted graph requires the ep graph signature to differentiate constants via the `is_param` function. However, in to_edge.transform, we do not have access to the ep. Baking the ep as an argument via partial function doesn't work, as the ep from earlier may be outdated. This means we are comparing an older ep to a newer graph_module, which may not have corresponding graph signatures etc.
ghstack-source-id: 302925208

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

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

@facebook-github-bot facebook-github-bot merged commit 9d762f4 into gh/lucylq/100/base Aug 14, 2025
100 of 106 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/lucylq/100/head branch August 14, 2025 07:35
manuelcandales added a commit that referenced this pull request Aug 14, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #13163 by
@lucylq
^ 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/lucylq/100/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/lucylq/100/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/lucylq/100/orig
@diff-train-skip-merge

Co-authored-by: lucylq <lfq@meta.com>
Co-authored-by: Manuel Candales <42380156+manuelcandales@users.noreply.github.com>
agrima1304 pushed a commit to agrima1304/executorch that referenced this pull request Aug 26, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: pytorch#13163 by
@lucylq
^ 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/lucylq/100/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/lucylq/100/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/lucylq/100/orig
@diff-train-skip-merge

Co-authored-by: lucylq <lfq@meta.com>
Co-authored-by: Manuel Candales <42380156+manuelcandales@users.noreply.github.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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants