Skip to content

[dynamo] Refactor into torch/_inductor/runtime/compile_tasks.py#124681

Closed
jansel wants to merge 4 commits intogh/jansel/329/basefrom
gh/jansel/329/head
Closed

[dynamo] Refactor into torch/_inductor/runtime/compile_tasks.py#124681
jansel wants to merge 4 commits intogh/jansel/329/basefrom
gh/jansel/329/head

Conversation

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Apr 22, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 701be7d with merge base 26f8d96 (image):
💚 Looks good so far! There are no failures yet. 💚

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

[ghstack-poisoned]
@jansel jansel added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 23, 2024
Comment on lines +27 to +30
if codecache:
return codecache.PyCodeCache.load_by_key_path(key, path)
else:
return _reload_python_module(key, path)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: AFAICT, this PR is mostly just moving methods around. This is the one place I don't quite grok. What's happening that requires the sys.modules.get? So a comment about what's going on here would be nice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is so that in the next PR when we do:

sys.modules["torch"] = MockTorch()

we don't try to go via codecache.

Copy link
Contributor

@masnesral masnesral left a comment

Choose a reason for hiding this comment

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

One nit, but LGTM

@jansel
Copy link
Contributor Author

jansel commented Apr 23, 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. If you believe this is a mistake, then you can re trigger it through pytorch-bot.

@jansel
Copy link
Contributor Author

jansel commented Apr 23, 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

@jeanschmidt
Copy link
Contributor

@pytorchbot revert -m "breaking internal tests, check D56522594 -c nosignal

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 25, 2024

❌ 🤖 pytorchbot command failed:

Got EOF while in a quoted string```
Try `@pytorchbot --help` for more info.

@jeanschmidt
Copy link
Contributor

@pytorchbot revert -m "breaking internal tests, check D56522594" -c nosignal

@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

@jansel your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Apr 25, 2024
…py (#124681)"

This reverts commit 0792cea.

Reverted #124681 on behalf of https://github.com/jeanschmidt due to breaking internal tests, check D56522594 ([comment](#124681 (comment)))
alat-rights pushed a commit to alat-rights/pytorch that referenced this pull request Apr 26, 2024
…py (pytorch#124681)"

This reverts commit 0792cea.

Reverted pytorch#124681 on behalf of https://github.com/jeanschmidt due to breaking internal tests, check D56522594 ([comment](pytorch#124681 (comment)))
…ks.py"

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@masnesral
Copy link
Contributor

@masnesral has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

…or/runtime/compile_tasks.py"

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

Differential Revision: [D56723769](https://our.internmc.facebook.com/intern/diff/D56723769)

[ghstack-poisoned]
masnesral added a commit that referenced this pull request Apr 29, 2024
@masnesral
Copy link
Contributor

@masnesral has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@masnesral
Copy link
Contributor

@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

petrex pushed a commit to petrex/pytorch that referenced this pull request May 3, 2024
petrex pushed a commit to petrex/pytorch that referenced this pull request May 3, 2024
…py (pytorch#124681)"

This reverts commit 0792cea.

Reverted pytorch#124681 on behalf of https://github.com/jeanschmidt due to breaking internal tests, check D56522594 ([comment](pytorch#124681 (comment)))
pytorch-bot bot pushed a commit that referenced this pull request May 3, 2024
)

Differential Revision: [D56723769](https://our.internmc.facebook.com/intern/diff/D56723769)
Co-authored-by: Sam Larsen <slarsen@meta.com>
Pull Request resolved: #124681
Approved by: https://github.com/masnesral
ghstack dependencies: #124592
@github-actions github-actions bot deleted the gh/jansel/329/head branch June 4, 2024 01:58
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.

4 participants