-
Notifications
You must be signed in to change notification settings - Fork 46
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
Clarify how traces are collected + Some Minor Documentation Updates #119
base: main
Are you sure you want to change the base?
Clarify how traces are collected + Some Minor Documentation Updates #119
Conversation
Hi @wkaisertexas! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
What does this PR do?
Clarifies documentation surrounding how traces are collected.
In #107, I had some issues collecting traces to use with HTA. The core of this issue was the example on the Read The Docs for this project. From an outside perspective, it is not immediately clear how to collect traces.
My Code:
Code from the documentation:
The difference here is that the code in the documentation ensures to step for every batch rather than every epoch. A subtle difference, but one a core library maintainer was unable to spot right away.
Given models are trained in many epochs, updating the examples to show the more common pattern of training for epochs and iterating over the data loader for each epoch helps clarify trace collection in my opinion.
That was the main change, but I made some others. Please let me know if you have questions. I marked this PR as a draft because I would love to hear from maintainers about their opinions on documentation and the right thing to do.
Also, if no ranks are found, what are your thoughts on populating this information with a rank of zero. Or, alternatively, allowing the user to specify a default rank when creating a
TraceAnalysis
object.i.e.
Let me know your thoughts. Thank you!
Before submitting