-
Notifications
You must be signed in to change notification settings - Fork 80
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 callable for torch compile #1041
Conversation
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.
Stamped!
Seems I hit the exact problem that Ivan described. |
Turns out that here, it seems the problem was that the |
Merging, but don't hesitate to scream if you don't like it. 😉 |
Yes, that would be nice. Regions look like subclasses of TraceCtx with positional-only arguments and automatic identification of arguments and outputs. |
Fixes #1040
Note that back in the day, @IvanYashchuk added a comment about suspected bugs preventing this approach:
lightning-thunder/thunder/executors/torch_compile.py
Lines 69 to 85 in 7c1f94a
Now I seem to get good results with just calling
transform_for_execution
with only thetorchex
as int theexecutors_list
. Maybe the bugs have been fixed since.