-
Notifications
You must be signed in to change notification settings - Fork 461
Add profiler #1
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
Add profiler #1
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.
Awesome! Thanks for the quick progress! I think this looks great, have a few comments about how to trigger the profiler inlined.
…rofiling.py file, global dumps folder, logging_utils.py
pr is updated to address the previous feedback. |
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.
lgtm, only have one comment about profiling flags
…filing, create custom named folders for traces
Adds option to do torch profile tracing via: --run_profiler (T/F) --profile_folder (str) Traces are saved out with rank_X as part of the trace name. <img width="1711" alt="rank_named_traces" src="https://github.com/pytorch-labs/torchtrain/assets/46302957/6eb3c3e0-6034-4d1f-8ea8-f43988755714"> Implemented as context wrapper around the main training loop.
Adds option to do torch profile tracing via:
--run_profiler (T/F)
--profile_folder (str)
Traces are saved out with rank_X as part of the trace name.

Implemented as context wrapper around the main training loop.