-
Notifications
You must be signed in to change notification settings - Fork 10
Add tlparse support #21
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
bdhirsh
left a comment
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.
definitely looks to me like a good starting point!
Run your pytorch program with `TORCH_TRACE=<path_to_logdir>` set, and then run `tlparse <path_to_specific_logfile>` to generate a manifold URL to an html artifact. At this point, it adds 3 artifact files into the tlparse, and others could be added later as needed. - autoparallel_joint_graph - autoparallel_sharding_optimizer_log - autoparallel_parallel_graph Example output (llama3 debugmodel, 8gpu, tp=4, without torch.compile): https://manifold.edge.x2p.facebook.net/v0/read/tree/logs/.tmpblWM9X/index.html?bucketName=tlparse_reports&apiKey=tlparse_reports-key&withPayload=1&timeoutMsec=10000
| # clean it up by removing the added aliases from previous pass | ||
| # as well as redundant views | ||
| parallel_gm = joint_graph_passes(parallel_gm) | ||
| trace_structured( |
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.
nit: it would be maybe more readable to store the parallel_gm after the apply_node_renaming as the nodes would have the same name as for the unsharded graph
| "name": "autoparallel_joint_graph", | ||
| "encoding": "string", | ||
| }, | ||
| payload_fn=lambda: str(gm.graph), |
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.
Might be preferable to store the str(gm), as it would let it be a runnable representation of the graph.
Run your pytorch program with `TORCH_TRACE=<path_to_logdir>` set, and then run `tlparse <path_to_specific_logfile>` to generate a manifold URL to an html artifact. At this point, it adds 3 artifact files into the tlparse, and others could be added later as needed. - autoparallel_joint_graph - autoparallel_sharding_optimizer_log - autoparallel_parallel_graph Example output (llama3 debugmodel, 8gpu, tp=4, without torch.compile): https://manifold.edge.x2p.facebook.net/v0/read/tree/logs/.tmpblWM9X/index.html?bucketName=tlparse_reports&apiKey=tlparse_reports-key&withPayload=1&timeoutMsec=10000
Run your pytorch program with
TORCH_TRACE=<path_to_logdir>set, and then runtlparse <path_to_specific_logfile>to generate a manifold URL to an html artifact.At this point, it adds 3 artifact files into the tlparse, and others could be added later as needed.
Example output (llama3 debugmodel, 8gpu, tp=4, without torch.compile): https://manifold.edge.x2p.facebook.net/v0/read/tree/logs/.tmpblWM9X/index.html?bucketName=tlparse_reports&apiKey=tlparse_reports-key&withPayload=1&timeoutMsec=10000