8000 [precompile] [easy] Refactor FxGraphCache to add cache_hit_post_compile function by jamesjwu · Pull Request #152839 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[precompile] [easy] Refactor FxGraphCache to add cache_hit_post_compile function #152839

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 1 commit into from

Conversation

jamesjwu
Copy link
Contributor
@jamesjwu jamesjwu commented May 5, 2025

Stack from ghstack (oldest at bottom):

This PR refactors CompiledFxGraph by adding a new post_compile step that only runs on cache hit. This refactors a bunch of code in _lookup_graph to its own function so that we can use it in BundledAOTAutogradCacheEntry. No difference in behavior here.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

[ghstack-poisoned]
Copy link
pytorch-bot bot commented May 5, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 4dda1cf with merge base 30453d6 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@jamesjwu jamesjwu added the topic: not user facing topic category label May 5, 2025
@jamesjwu jamesjwu changed the title Refactor FxGraphCache to add cache_hit_post_compile function [precompile] Refactor FxGraphCache to add cache_hit_post_compile function May 5, 2025
@jamesjwu jamesjwu changed the title [precompile] Refactor FxGraphCache to add cache_hit_post_compile function [precompile] [easy] Refactor FxGraphCache to add cache_hit_post_compile function May 5, 2025
@jamesjwu jamesjwu marked this pull request as ready for review May 5, 2025 17:36
@jamesjwu jamesjwu requested review from zhxchen17, oulgen and masnesral May 5, 2025 17:37
@jamesjwu jamesjwu added the ciflow/trunk Trigger trunk jobs on your pull request label May 5, 2025
@jamesjwu
Copy link
Contributor Author
jamesjwu commented May 6, 2025

@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

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.

3 participants
0