Skip to content

[BE] Remove __reduce_deploy__ #158291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed

[BE] Remove __reduce_deploy__ #158291

wants to merge 13 commits into from

Conversation

PaliC
Copy link
Contributor

@PaliC PaliC commented Jul 14, 2025

Stack from ghstack (oldest at bottom):

This PR removes the integration point torch.fx had with torch::deploy (and another minor change).

Note: This PR has some broken mypy errors, but I believe those should have been in the code base beforehand, and should be fixed in a separate PR

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv @voznesenskym @penguinwu @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jul 14, 2025

🔗 Helpful Links

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

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 e711a50 with merge base d987a6f (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

[ghstack-poisoned]
[ghstack-poisoned]
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM !

@albanD albanD added the suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) label Jul 15, 2025
@albanD
Copy link
Collaborator

albanD commented Jul 15, 2025

Skipping bc test as we do want to break these! :D

[ghstack-poisoned]
This PR removes the integration point torch.fx had with torch::deploy (and another minor change). 

[TODO] There is an expect test I have to rerun before merging this PR

cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv voznesenskym penguinwu Guobing-Chen XiaobingSuper zhuhaozhe blzheng jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
@PaliC
Copy link
Contributor Author

PaliC commented Jul 15, 2025

@pytorchbot merge -i

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 15, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 2 checks: Lint / lintrunner-noclang / linux-job, trunk / cuda12.8-py3.10-gcc9-sm80 / build

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

pytorchmergebot pushed a commit that referenced this pull request Jul 17, 2025
…se (#158407)

This PR makes some less risky changes to PyObjectSlot as there is a lot of stuff we do not need since there is only one interpreter. Specifically `check_interpreter` and `has_pyobj_nonhermetic` are removed

Pull Request resolved: #158407
Approved by: https://github.com/albanD
ghstack dependencies: #158288, #158290, #158291
pytorchmergebot added a commit that referenced this pull request Jul 21, 2025
This reverts commit 0b9fb91.

Reverted #158291 on behalf of https://github.com/ZainRizvi due to Sorry but this is breaking internally, see D78496147 for details. To validate your fixes internally, you can follow the instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](#158288 (comment)))
@pytorchmergebot
Copy link
Collaborator

@PaliC your PR has been reverted as part of the stack under #158288.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Jul 21, 2025
saienduri pushed a commit to saienduri/pytorch that referenced this pull request Jul 22, 2025
This reverts commit 0b9fb91.

Reverted pytorch#158291 on behalf of https://github.com/ZainRizvi due to Sorry but this is breaking internally, see D78496147 for details. To validate your fixes internally, you can follow the instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](pytorch#158288 (comment)))
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158407

1 similar comment
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158407

pytorchmergebot pushed a commit that referenced this pull request Jul 23, 2025
…se (#158407)

This PR makes some less risky changes to PyObjectSlot as there is a lot of stuff we do not need since there is only one interpreter. Specifically `check_interpreter` and `has_pyobj_nonhermetic` are removed

Pull Request resolved: #158407
Approved by: https://github.com/albanD
ghstack dependencies: #158288, #158290, #158291
pytorchmergebot added a commit that referenced this pull request Jul 25, 2025
This reverts commit 9c68c4d.

Reverted #158291 on behalf of https://github.com/ZainRizvi due to Reverting as per offline discussion to fix internal breaks.  @PaliC will reland this as a codev diff. Instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](#158288 (comment)))
@pytorchmergebot
Copy link
Collaborator

@PaliC your PR has been reverted as part of the stack under #158288.

PaliC and others added 2 commits July 25, 2025 17:46
This PR removes the integration point torch.fx had with torch::deploy (and another minor change). 

Note: This PR has some broken mypy errors, but I believe those should have been in the code base beforehand, and should be fixed in a separate PR

cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv voznesenskym penguinwu Guobing-Chen XiaobingSuper zhuhaozhe blzheng jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela

[ghstack-poisoned]
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158407

pytorchmergebot pushed a commit that referenced this pull request Jul 30, 2025
…se (#158407)

This PR makes some less risky changes to PyObjectSlot as there is a lot of stuff we do not need since there is only one interpreter. Specifically `check_interpreter` and `has_pyobj_nonhermetic` are removed

Pull Request resolved: #158407
Approved by: https://github.com/albanD
ghstack dependencies: #158290, #158291
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
This reverts commit 9c68c4d.

Reverted #158291 on behalf of https://github.com/ZainRizvi due to Reverting as per offline discussion to fix internal breaks.  @PaliC will reland this as a codev diff. Instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](#158288 (comment)))
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
This PR removes the integration point torch.fx had with torch::deploy (and another minor change).

Note: This PR has some broken mypy errors, but I believe those should have been in the code base beforehand, and should be fixed in a separate PR

Pull Request resolved: #158291
Approved by: https://github.com/albanD
ghstack dependencies: #158290
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
…se (#158407)

This PR makes some less risky changes to PyObjectSlot as there is a lot of stuff we do not need since there is only one interpreter. Specifically `check_interpreter` and `has_pyobj_nonhermetic` are removed

Pull Request resolved: #158407
Approved by: https://github.com/albanD
ghstack dependencies: #158290, #158291
@yangw-dev
Copy link
Contributor

@pytorchbot revert -m "user modified the diff internally after github pr is merged, break the diff train ,please reland this with codev internally" -c ghfirst

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

Reverting PR 158291 failed

Reason: Command git -C /home/runner/work/pytorch/pytorch revert --no-edit a753a72b144633d1dc556a29e2373886cf73348c returned non-zero exit code 1

Auto-merging c10/core/impl/PyObjectSlot.cpp
Auto-merging c10/core/impl/PyObjectSlot.h
CONFLICT (content): Merge conflict in c10/core/impl/PyObjectSlot.h
Auto-merging torch/csrc/Storage.cpp
error: could not revert a753a72b144... [BE] Modify PyObjectSlot the assume only a single interpreter is in use (#158407)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git revert --continue".
hint: You can instead skip this commit with "git revert --skip".
hint: To abort and get back to the state before "git revert",
hint: run "git revert --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Details for Dev Infra team Raised by workflow job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-no-td Do not run TD on this PR ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request fx Merged module: dynamo release notes: fx release notes category Reverted suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants