Skip to content

Conversation

Copy link

pytorch-bot bot commented Aug 9, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 261c8e6 with merge base a8f0979 (image):

NEW FAILURE - The following job has failed:

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

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

[ghstack-poisoned]
setattr(obj, self._memo_vc(obj), None)
setattr(obj, self._memo_epoch(obj), None)
elif not torch.is_inference_mode_enabled():
elif not torch.is_inference_mode_enabled() or self._opt_vc:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder why we don't just check obj.is_inference() here

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, is inference seems better

@soulitzer soulitzer marked this pull request as draft August 9, 2024 01:11
Tries to solve https://fb.workplace.com/groups/296513499814673/permalink/465746352891386/


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

[ghstack-poisoned]
@soulitzer soulitzer marked this pull request as ready for review August 9, 2024 01:35
@ezyang
Copy link
Contributor

ezyang commented Aug 9, 2024

In general, I don't think you should need an opt_vc. Instead, you check if you have an inference tensor / are in inference mode before you do a vc test. If you are, you skip the vc test.

@soulitzer
Copy link
Contributor Author

soulitzer commented Aug 9, 2024

In general, I don't think you should need an opt_vc. Instead, you check if you have an inference tensor / are in inference mode before you do a vc test. If you are, you skip the vc test.

Hmm I feel like I don't completely understand. Are you proposing that opt_vc always be True? In my head the idea behind the logic today seems to be that we want to be conservative in inference mode, e.g. always assume that a mutation happened, which makes sense because otherwise we'd could incorrectly infer that two nonzero have the same shape when they don't. Do we no longer want to do that?

Tries to solve https://fb.workplace.com/groups/296513499814673/permalink/465746352891386/


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

[ghstack-poisoned]
@soulitzer
Copy link
Contributor Author

Closing as these changes have been added to the reland of the previous PR: #133196

@soulitzer soulitzer closed this Aug 12, 2024
soulitzer added a commit that referenced this pull request Aug 12, 2024
This reverts commit 154d40c.

and adds changes from #133061

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

[ghstack-poisoned]
soulitzer added a commit that referenced this pull request Aug 12, 2024
This reverts commit 154d40c.

and adds changes from #133061

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

[ghstack-poisoned]
soulitzer added a commit that referenced this pull request Aug 13, 2024
This reverts commit 154d40c.

and adds changes from #133061

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

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Aug 14, 2024
This reverts commit 154d40c.

and adds changes from #133061

Pull Request resolved: #133196
Approved by: https://github.com/ezyang
ghstack dependencies: #133145
@github-actions github-actions bot deleted the gh/soulitzer/321/head branch September 12, 2024 02:04
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.

2 participants