-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add option to disable autocast pass #77566
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
Conversation
[ghstack-poisoned]
🔗 Helpful links
❌ 4 New FailuresAs of commit 7b7a39e (more details on the Dr. CI page): Expand to see more
🕵️ 4 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
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.
had some small comments, otherwise looks good
|
||
// if invoked on a graph that has already traced through amp | ||
// don't invoke amp pass | ||
mutable bool force_no_amp_ = false; |
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.
does this need to be mutable?
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 think so otherwise all the const
stuff wont compile
"name", | ||
[](const StrongFunctionPtr& self) { return self.function_->name(); }) | ||
.def( | ||
"_set_ignore_amp", |
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.
do we need anything like this for modules?
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.
no, since the use case here is just aot autograd
@pytorchbot merge this pleasee |
Hey @eellison. |
Summary: Pull Request resolved: #77566 Approved by: https://github.com/anijain2305, https://github.com/davidberard98 Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/05ce0f9be63dd6fadd2fb40c29f8f867f267002b Reviewed By: seemethere Differential Revision: D36494147 Pulled By: seemethere fbshipit-source-id: c09a25d1b606e54646e5d12a6c961f91f26b215e
Stack from ghstack (oldest at bottom):
Fix for AOT autograd, where amp has already been traced out and you don't want to re-invoke the amp pass.
cc @anijain2305, @Chillee