-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[compile] Show breakdown of graph break #6601
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.
Thank you @delock, this is a very useful feature! I left a comment, but it looks good to me.
tests/torch_compile/test_compile.py
Outdated
@@ -14,22 +14,11 @@ | |||
|
|||
torch._dynamo.config.cache_size_limit = 100 | |||
|
|||
import collections | |||
|
|||
|
|||
def get_dynamo_stats(): | |||
# TODO: consider deepcopy'ing the entire counters struct and | |||
# adding a helper to do subtraction on it |
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.
Is this comment still valid?
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.
Thanks for the comments, I think they should be removed. Will update.
Hi @tohtana the unneeded comments had been removed. Also make the workflow to count zero2, there is no graph breaks for zero2 in this simple case. https://github.com/microsoft/DeepSpeed/actions/runs/11269655884?pr=6601 |
This PR extends #6570 by showing a breakdown of graph breaks. So we can see how graph breaks are distributed among different reasons. An example of graph break output can be seen from the following workflow run https://github.com/microsoft/DeepSpeed/actions/runs/11199157962