-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
SetVariable in dynamo #103205
SetVariable in dynamo #103205
Conversation
Set initial [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/103205
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit fc038f9: NEW FAILURE - The following job has failed:
UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Set initial ghstack-source-id: 79873ff77503d7488c3b2f3929560fb5d3d069aa Pull Request resolved: #103205
torch/_dynamo/variables/lists.py
Outdated
if sys.version_info >= (3, 11): | ||
codegen.foreach(self.items) | ||
return [create_instruction("BUILD_SET", arg=len(self.items))] | ||
else: | ||
create_load_global("set", True) | ||
codegen.foreach(self.items) | ||
return [create_instruction("CALL_FUNCTION", arg=len(self.items))] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually need this to be like this, I can simplify this to just build set.
Set initial cc penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy [ghstack-poisoned]
Set initial ghstack-source-id: 030e4e6d7c5497c9f96ad9d36c94cdfeaf616761 Pull Request resolved: #103205 wip WIP WIP
Set initial cc penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy [ghstack-poisoned]
Set initial ghstack-source-id: b7950036819956f2f0670b9ea278cda89d43bdff Pull Request resolved: #103205 wip WIP WIP WIP
Set initial cc penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy [ghstack-poisoned]
if not self.tx.output.export: | ||
# Export has (supposedly) valid cases for fake tensors as inputs here. | ||
# I am not convinced, atm, but out of scope for what this assert was added for (protecting value checks | ||
# in real_value_tensor_positive_aliases in the common case) | ||
assert not isinstance(value, torch._subclasses.fake_tensor.FakeTensor) | ||
|
||
if value in self.tx.output.real_value_tensor_positive_aliases: | ||
stored_value = self.tx.output.real_value_tensor_positive_aliases[value] | ||
# TODO(voz): Decently common pattern, refactor at some point. | ||
dup_guard = self._make_dupe_guard(stored_value) | ||
if dup_guard: | ||
stored_value = stored_value.add_guards(self.make_guards(dup_guard)) | ||
return stored_value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been on #104921 - but I fat fingered the commit somewhere.
@voznesenskym Looks like there is consistent failure in our CI after this PR was merged: Looks like CUDA oom.
|
@pytorchbot revert -c ignoredsignal -m "Failing cuda11.8-py3.10-gcc7-sm86 / test (inductor_torchbench_dynamic) with CUDA oom" |
@pytorchbot successfully started a revert job. Check the current status here. |
@voznesenskym your PR has been successfully reverted. |
This reverts commit 82fb5ed. Reverted #103205 on behalf of https://github.com/atalman due to Failing cuda11.8-py3.10-gcc7-sm86 / test (inductor_torchbench_dynamic) with CUDA oom ([comment](#103205 (comment)))
I wonder if we are failing because we graph break less now? |
I looked at the log, the oom is on another model, it seems?
is the accuracy failure. |
This reverts commit 94b3f9f. Fix [ghstack-poisoned]
…r improved graph breaks" This reverts commit 94b3f9f. Fix cc penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov [ghstack-poisoned]
…graph breaks (#105345) This reverts commit 94b3f9f. Fix Pull Request resolved: #105345 Approved by: https://github.com/atalman
Set initial ghstack-source-id: aee0c9f4627d63000ba146006d494a2dbf7adcbf Pull Request resolved: #103205 wip WIP WIP WIP lint lint lint lint lint Fix Fix fixup fixup Fix
Set initial ghstack-source-id: aee0c9f4627d63000ba146006d494a2dbf7adcbf Pull Request resolved: #103205 wip WIP WIP WIP lint lint lint lint lint Fix Fix fixup fixup Fix
Set initial ghstack-source-id: aee0c9f4627d63000ba146006d494a2dbf7adcbf Pull Request resolved: #103205 wip WIP WIP WIP lint lint lint lint lint Fix Fix fixup fixup Fix
Stack from ghstack (oldest at bottom):
Set initial
Fixes #94738
cc @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @aakhundov