Skip to content
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

Memoize local_scalar_dense calls, refactor all memos #125623

Closed
wants to merge 6 commits into from

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented May 6, 2024

Stack from ghstack (oldest at bottom):

Signed-off-by: Edward Z. Yang ezyang@meta.com

[ghstack-poisoned]
Copy link

pytorch-bot bot commented May 6, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 730446c with merge base b6bcd09 (image):

NEW FAILURE - The following job has failed:

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

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

ezyang added a commit that referenced this pull request May 6, 2024
Signed-off-by: Edward Z. Yang <ezyang@meta.com>

ghstack-source-id: ca6670c2d311fde92eb6212bdb648479ad98880e
Pull Request resolved: #125623
[ghstack-poisoned]
ezyang added a commit that referenced this pull request May 6, 2024
Signed-off-by: Edward Z. Yang <ezyang@meta.com>

ghstack-source-id: 947182e9c757a82c4d8fa27314b65edeb6fb062d
Pull Request resolved: #125623
@@ -541,6 +557,8 @@ def __new__(cls, fake_mode, elem, device, constant=None, real_tensor=None):
self.real_tensor = real_tensor # type: ignore[attr-defined]
self._nonzero_memo = None # type: ignore[attr-defined]
Copy link
Contributor

Choose a reason for hiding this comment

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

Worth generalizing this ? @IvanKobzarev was also recently asking for .tolist() memoization

Copy link
Contributor Author

Choose a reason for hiding this comment

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

alright

@albanD albanD removed their request for review May 6, 2024 20:07
[ghstack-poisoned]
ezyang added a commit that referenced this pull request May 7, 2024
Signed-off-by: Edward Z. Yang <ezyang@meta.com>

ghstack-source-id: a51e72116a4338ef9e49c55ae0d3603a924e38f3
Pull Request resolved: #125623
@ezyang
Copy link
Contributor Author

ezyang commented May 7, 2024

@eellison here, have a descriptor

@ezyang ezyang requested a review from eellison May 7, 2024 02:57
@ezyang ezyang added ciflow/trunk Trigger trunk jobs on your pull request release notes: composability release notes category topic: new features topic category labels May 7, 2024
@ezyang
Copy link
Contributor Author

ezyang commented May 8, 2024

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Rebase failed due to Command git -C /home/runner/work/pytorch/pytorch rebase refs/remotes/origin/viable/strict gh/ezyang/2730/orig returned non-zero exit code 1

Rebasing (1/1)
Auto-merging test/export/test_export.py
CONFLICT (content): Merge conflict in test/export/test_export.py
Auto-merging torch/_subclasses/fake_tensor.py
error: could not apply f28a82e78bd... Memoize local_scalar_dense calls
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply f28a82e78bd... Memoize local_scalar_dense calls

Raised by https://github.com/pytorch/pytorch/actions/runs/8996177476

[ghstack-poisoned]
ezyang added a commit that referenced this pull request May 8, 2024
Signed-off-by: Edward Z. Yang <ezyang@meta.com>

ghstack-source-id: ec67f0686506d37f38c13b0a0f9757f7331cfe00
Pull Request resolved: #125623
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

@ezyang
Copy link
Contributor Author

ezyang commented May 10, 2024

@pytorchbot merge -f "spurious rocm failures"

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

@malfet
Copy link
Contributor

malfet commented May 11, 2024

@pytorchbot merge -m "Broke ROCM, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041" -c ignore signal

Copy link

pytorch-bot bot commented May 11, 2024

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: unrecognized arguments: -m Broke ROCM, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041 -c ignore signal

usage: @pytorchbot [-h] {merge,revert,rebase,label,drci,cherry-pick,close} ...

Try @pytorchbot --help for more info.

@malfet
Copy link
Contributor

malfet commented May 11, 2024

@pytorchbot revert -m "Broke ROCM and CUDA inductor tests, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041" -c ignore signal

Copy link

pytorch-bot bot commented May 11, 2024

❌ 🤖 pytorchbot command failed:

@pytorchbot revert: error: argument -c/--classification: invalid choice: 'ignore' (choose from 'nosignal', 'ignoredsignal', 'landrace', 'weird', 'ghfirst')

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

Try @pytorchbot --help for more info.

@malfet
Copy link
Contributor

malfet commented May 11, 2024

Or may be it was done by #125829

@malfet
Copy link
Contributor

malfet commented May 11, 2024

@pytorchbot revert -m "Broke ROCM, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041" -c ignoredsignal

@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

@ezyang your PR has been successfully reverted.

@ezyang
Copy link
Contributor Author

ezyang commented May 11, 2024

There's no way this possible could have caused the ROCm problems. I'm guessing they are having some server problem

@ezyang
Copy link
Contributor Author

ezyang commented May 11, 2024

@pytorchbot merge -f "confirmed from hud that reverting this didn't fix anything"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

tinglvv pushed a commit to tinglvv/pytorch that referenced this pull request May 14, 2024
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: pytorch#125623
Approved by: https://github.com/eellison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants