Skip to content

[dynamo, 3.12] xfail refleaking tests due to buggy getattr_static #125062

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

Conversation

williamwen42
Copy link
Member

@williamwen42 williamwen42 commented Apr 26, 2024

Copy link

pytorch-bot bot commented Apr 26, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 14f1559 with merge base 80046c3 (image):
💚 Looks good so far! There are no failures yet. 💚

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

…_static"


For tracking #124302 so that we can re-enable the test once 3.12 updates with the bug fix for python/cpython#118013.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang

[ghstack-poisoned]
williamwen42 added a commit that referenced this pull request Apr 26, 2024
@@ -10167,14 +10172,14 @@ def __init__(self):
self.fc_ref = fc

def forward(self, x):
return fc(x[0])
return self.fc_ref(x[0])

# return fc to keep it alive in _test_compile_model_free
return Mod(), (torch.randn(100, 100), fc)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you check if returning 'fc' here works correctly for '_test_compile_model_free'. The call to 'model_input_ptr' returns a tuple of 3 elements. But the code expects mod and inp. It works somehow without failing today, but causes failure for my stack.

Copy link
Member Author

Choose a reason for hiding this comment

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

In 3.12 the layer leaks due to getattr_static if we call self.fc_ref but not fc. I think I originally intended to use self.fc_ref (otherwise, why would I define it?).

The return of model_inp_ctr is a little tricky but it returns 2 things - the second returned item is a tuple of input and layer, but the forward function only uses the input.

[ghstack-poisoned]
@williamwen42
Copy link
Member Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 29, 2024
@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: This PR needs a release notes: label
If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Details for Dev Infra team Raised by workflow job

…_static"


For tracking #124302 so that we can re-enable the test once 3.12 updates with the bug fix for python/cpython#118013.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang

[ghstack-poisoned]
[ghstack-poisoned]
williamwen42 added a commit that referenced this pull request Apr 29, 2024
…_static"


For tracking #124302 so that we can re-enable the test once 3.12 updates with the bug fix for python/cpython#118013.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang

[ghstack-poisoned]
williamwen42 added a commit that referenced this pull request Apr 30, 2024
@williamwen42
Copy link
Member Author

@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

facebook-github-bot pushed a commit to pytorch/benchmark that referenced this pull request May 1, 2024
Summary:
For tracking pytorch/pytorch#124302 so that we can re-enable the test once 3.12 updates with the bug fix for python/cpython#118013.

X-link: pytorch/pytorch#125062
Approved by: https://github.com/anijain2305, https://github.com/jansel

Reviewed By: kit1980

Differential Revision: D56801860

Pulled By: williamwen42

fbshipit-source-id: 16b38ce7f1b8cabe2fcdd660fc8a2fabdda04aca
petrex pushed a commit to petrex/pytorch that referenced this pull request May 3, 2024
…torch#125062)

For tracking pytorch#124302 so that we can re-enable the test once 3.12 updates with the bug fix for python/cpython#118013.

Pull Request resolved: pytorch#125062
Approved by: https://github.com/anijain2305, https://github.com/jansel
@github-actions github-actions bot deleted the gh/williamwen42/67/head branch June 4, 2024 01:59
@williamwen42 williamwen42 added the module: python version Issues related to specific Python versions label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged module: dynamo module: python version Issues related to specific Python versions topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants