-
Notifications
You must be signed in to change notification settings - Fork 84
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
use transform for execution to get torch_compile executable #1500
Conversation
ebaf17f
to
24d6a8d
Compare
@@ -240,6 +240,23 @@ def split_forward_backward(computation_trc: TraceCtx, compile_data, compile_stat | |||
skip_output=False, | |||
skip_subsymbols=False, | |||
) | |||
|
|||
# remove duplicates | |||
# The NVFuser (and possibly others) fusion pass applied on the forward during has a |
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 is super interesting!
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.
Out of curiosity, do duplicates cause any functional issue?
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.
Looks great, also great docstring addition! Let's merge as is
return self.swap_map.get(variableify(v), v) | ||
|
||
def add_unprocessed_bsyms(self, bsyms): | ||
self.unprocessed_bsyms[:0] = bsyms |
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.
we could probably add self.unprocessed_bsyms
and self.new_bsyms
to __init__
for readability - not mandatory
Transform for execution used to produce duplicate names, this changes the implementation to be close to interpret_trace (with the plan of merging the two eventually).
Unfortunately, there seems to be some bad interaction, the newly skipped tests have been leading to segfaults, this needs investigation.
Fixes: #1131
Also:
Fixes: #1501