KEMBAR78
[dynamo][guards] Recursive dict tag optimization by anijain2305 · Pull Request #159183 · pytorch/pytorch · GitHub
Skip to content

Conversation

@pytorch-bot
Copy link

pytorch-bot bot commented Jul 25, 2025

🔗 Helpful Links

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

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

❌ 1 Cancelled Job, 2 Unrelated Failures

As of commit 453077c with merge base 8d37073 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

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

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

anijain2305 added a commit that referenced this pull request Jul 25, 2025
ghstack-source-id: 026798a
Pull Request resolved: #159183
@anijain2305 anijain2305 added topic: not user facing topic category ciflow/slow ci-no-td Do not run TD on this PR ciflow/trunk Trigger trunk jobs on your pull request labels Jul 25, 2025
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela

[ghstack-poisoned]
[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jul 27, 2025
ghstack-source-id: 54ed54b
Pull Request resolved: #159183
[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jul 27, 2025
ghstack-source-id: 1b293dd
Pull Request resolved: #159183
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
# tags to avoid full guard execution.
use_recursive_dict_tags_for_guards = False

max_saved_pointers_for_recursive_dict_tags_check = 256
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add in the next one, where I turn the flag on, and let this PR go into fbcode.

Copy link
Contributor

Choose a reason for hiding this comment

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

One case I wonder about is if people use __slots__ which can cause object members to not come from __dict__. Maybe nn.Module doesn't supprt this though...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case, we will not have any guards with __dict_ and we will not apply a recursive dict tag optimization.

It will be safe.

@anijain2305
Copy link
Contributor 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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: slow / linux-jammy-rocm-py3.10 / test (slow, 1, 2, linux.rocm.gpu.2, module:rocm)

Details for Dev Infra team Raised by workflow job

@anijain2305
Copy link
Contributor Author

@pytorchbot merge -i

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 3 checks: trunk / linux-jammy-rocm-py3.10 / test (distributed, 1, 1, linux.rocm.gpu.4), slow / linux-jammy-rocm-py3.10 / test (slow, 1, 2, linux.rocm.gpu.2, module:rocm), pull / linux-jammy-py3_9-clang9-xla / test (xla, 1, 1, lf.linux.12xlarge, unstable)

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

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/slow ciflow/trunk Trigger trunk jobs on your pull request Merged module: dynamo topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants