Skip to content

Turn on AOTAutogradCache by default on open source #141981

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 14 commits into from

Conversation

jamesjwu
Copy link
Contributor

@jamesjwu jamesjwu commented Dec 3, 2024

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Dec 3, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit d6b6f62 with merge base 1d3b010 (image):
💚 Looks good so far! There are no failures yet. 💚

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

jamesjwu added a commit that referenced this pull request Dec 3, 2024
ghstack-source-id: 978411a
Pull Request resolved: #141981
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 3, 2024
ghstack-source-id: 7fb3908
Pull Request resolved: #141981
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 5, 2024
ghstack-source-id: 083b01b
Pull Request resolved: #141981
@jamesjwu jamesjwu added topic: not user facing topic category ciflow/trunk Trigger trunk jobs on your pull request labels Dec 5, 2024
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 6, 2024
ghstack-source-id: ae908e9
Pull Request resolved: #141981
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 6, 2024
ghstack-source-id: d821cae
Pull Request resolved: #141981
jamesjwu added a commit that referenced this pull request Dec 6, 2024
ghstack-source-id: 9862b27
Pull Request resolved: #141981
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 6, 2024
ghstack-source-id: ef72d5d
Pull Request resolved: #141981
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 6, 2024
ghstack-source-id: 9a82bec
Pull Request resolved: #141981
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 6, 2024
ghstack-source-id: d6347cb
Pull Request resolved: #141981
@@ -95,10 +95,6 @@ def should_use_local_autograd_cache():
return config.enable_autograd_cache


def autograd_cache_enabled():
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Realized we don't need this

remote,
)
if isinstance(fw_compiler, SerializableAOTDispatchCompiler):
local = should_use_local_autograd_cache()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes it so that we don't spend time calling these should_use_local_autograd_cache functions if there's no way we're caching anyway

@jamesjwu
Copy link
Contributor Author

jamesjwu commented Dec 6, 2024

@laithsakka I updated 2 benchmarks which regressed slightly more than the requirement (~1.5%). This is expected since AOTAutogradCache will take a little bit of extra time with inductor enabled just due to cache key calculations and logging. Actual walltime on non trivial model benchmarks will not be affected.

@jamesjwu jamesjwu requested a review from laithsakka December 6, 2024 18:42
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 6, 2024
ghstack-source-id: 527d2fb
Pull Request resolved: #141981
@jamesjwu
Copy link
Contributor Author

jamesjwu commented Dec 9, 2024

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

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

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/jamesjwu/88/orig onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/141981)

pytorchmergebot pushed a commit that referenced this pull request Dec 9, 2024
ghstack-source-id: 2fe3aef
Pull Request resolved: #141981
@jamesjwu
Copy link
Contributor Author

jamesjwu commented Dec 9, 2024

@pytorchbot merge

@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

@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.

@kit1980
Copy link
Contributor

kit1980 commented Dec 9, 2024

@jamesjwu Sorry I've cancelled the merge. We're doing release branch cut today, please wait before landing.

@jamesjwu
Copy link
Contributor Author

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

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

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/jamesjwu/88/orig onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/141981)

pytorchmergebot pushed a commit that referenced this pull request Dec 11, 2024
ghstack-source-id: 0821874
Pull Request resolved: #141981
[ghstack-poisoned]
jamesjwu added a commit that referenced this pull request Dec 11, 2024
ghstack-source-id: e224add
Pull Request resolved: #141981
@jamesjwu
Copy link
Contributor Author

@pytorchbot merge -i

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 0 checks:

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

@laithsakka
Copy link
Contributor

i guess there was no runaway from the regressiob

bluenote10 pushed a commit to bluenote10/pytorch that referenced this pull request Dec 14, 2024
@github-actions github-actions bot deleted the gh/jamesjwu/88/head branch January 12, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants