Skip to content

Conversation

PaliC
Copy link
Contributor

@PaliC PaliC commented Jul 14, 2025

Stack from ghstack (oldest at bottom):

This PR is part of the work to deprecate torch::deploy in OSS. Effectively it does 3 things to get started.

  1. Remove test_deploy_interaction as we no longer need to worry about this
  2. Remove all torch._running_with_deploy checks and use the False path always (surfaced 1)
  3. Remove USE_DEPLOY and switch to the default path always

Note: MyPy does fail on a bunch of things here as a bunch of older files are touched. It may be better to fix these things on a separate PR

cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @Lucaskabela

[ghstack-poisoned]
@PaliC PaliC requested review from eqy and syed-ahmed as code owners July 14, 2025 22:20
Copy link

pytorch-bot bot commented Jul 14, 2025

🔗 Helpful Links

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

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 ae3d13e with merge base e067981 (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.

@pytorch-bot pytorch-bot bot added ciflow/inductor module: dynamo module: inductor oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (fsdp) release notes category labels Jul 14, 2025
@PaliC PaliC marked this pull request as draft July 14, 2025 22:21
[ghstack-poisoned]
@PaliC PaliC requested a review from albanD July 15, 2025 01:53
@PaliC PaliC marked this pull request as ready for review July 15, 2025 01:54
@PaliC PaliC requested a review from malfet July 15, 2025 01:56
[ghstack-poisoned]
@PaliC PaliC requested a review from janeyx99 July 15, 2025 02:10
[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.

Very nice!

Comment on lines +22 to +27
try:
from torch.compiler import is_dynamo_compiling as is_torchdynamo_compiling
except Exception:
warnings.warn(
"Unable to import torchdynamo util `is_torchdynamo_compiling`, so won't support torchdynamo correctly"
)
Copy link
Collaborator

@albanD albanD Jul 15, 2025

Choose a reason for hiding this comment

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

@jansel this looks pretty bad right?

Nothing for you to do in this PR Sahan, just flagging.

[ghstack-poisoned]
This PR is part of the work to deprecate torch::deploy in OSS. Effectively it does 3 things to get started.
1. Remove test_deploy_interaction as we no longer need to worry about this
2. Remove all torch._running_with_deploy checks and use the False path always (surfaced 1)
3. Remove `USE_DEPLOY` and switch to the default path always

Note: MyPy does fail on a bunch of things here as a bunch of older files are touched. It may be better to fix these things on a separate PR


cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov 

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158290

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158291

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #158291

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
@PaliC
Copy link
Contributor Author

PaliC commented Jul 25, 2025

@pytorchbot revert

Copy link

pytorch-bot bot commented Jul 25, 2025

❌ 🤖 pytorchbot command failed:

@pytorchbot revert: error: the following arguments are required: -m/--message, -c/--classification

usage: @pytorchbot revert -m MESSAGE -c
                          {nosignal,ignoredsignal,landrace,weird,ghfirst}

Try @pytorchbot --help for more info.

@ZainRizvi
Copy link
Contributor

@pytorchbot revert -c ghfirst -m "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"

@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 added a commit that referenced this pull request Jul 25, 2025
… is in use (#158407)"

This reverts commit 255c054.

Reverted #158407 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 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 added a commit that referenced this pull request Jul 25, 2025
…#158290)"

This reverts commit 6ed2cb6.

Reverted #158290 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 added a commit that referenced this pull request Jul 25, 2025
This reverts commit ab26d4f.

Reverted #158288 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 successfully reverted.

This PR is part of the work to deprecate torch::deploy in OSS. Effectively it does 3 things to get started.
1. Remove test_deploy_interaction as we no longer need to worry about this
2. Remove all torch._running_with_deploy checks and use the False path always (surfaced 1)
3. Remove `USE_DEPLOY` and switch to the default path always

Note: MyPy does fail on a bunch of things here as a bunch of older files are touched. It may be better to fix these things on a separate PR


cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela 

[ghstack-poisoned]
@PaliC
Copy link
Contributor Author

PaliC commented Jul 28, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 28, 2025
@PaliC
Copy link
Contributor Author

PaliC commented Jul 29, 2025

@pytorchbot merge -i

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 2 checks: pull / linux-jammy-py3_9-clang9-xla / test (xla, 1, 1, linux.12xlarge, unstable), trunk / linux-jammy-rocm-py3.10 / test (distributed, 1, 1, linux.rocm.gpu.4)

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

yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
… is in use (#158407)"

This reverts commit 255c054.

Reverted #158407 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 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
…#158290)"

This reverts commit 6ed2cb6.

Reverted #158290 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 reverts commit ab26d4f.

Reverted #158288 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 is part of the work to deprecate torch::deploy in OSS. Effectively it does 3 things to get started.
1. Remove test_deploy_interaction as we no longer need to worry about this
2. Remove all torch._running_with_deploy checks and use the False path always (surfaced 1)
3. Remove `USE_DEPLOY` and switch to the default path always

Note: MyPy does fail on a bunch of things here as a bunch of older files are touched. It may be better to fix these things on a separate PR

Pull Request resolved: #158288
Approved by: https://github.com/albanD
XuehaiPan added a commit that referenced this pull request Aug 25, 2025
ghstack-source-id: 04be446
Pull-Request: #158541
@github-actions github-actions bot deleted the gh/PaliC/12/head branch August 29, 2025 02:11
pytorchmergebot pushed a commit that referenced this pull request Sep 2, 2025
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
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 Merged module: dynamo module: inductor oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (fsdp) release notes category release notes: package/deploy release notes category Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants