-
Notifications
You must be signed in to change notification settings - Fork 454
docstrings improvements for core modules #598
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
8316e0f
to
80073b1
Compare
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, one small nit on trying to reduce the verbosity of the comments by doing:
:class:.ComposerModel
instead of :class:~.base.ComposerModel
.
Overall looks good; here are some comments:
|
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.
See narrative comments.
@ravi-mosaicml : Fixed most of it but need clarification on the following:
How do we usually link non-api references? using full path such as https://docs.mosaicml.com/en/v0.4.0/trainer/time.html?
We are not mutating
I forced link them. They are not getting picked by the Sphinx automatically.
Are you suggesting that we get rid of them ? |
You can use
No, I think describe the plural options. e.g. Schedulers can be pytorch schedulers, our composer schedulers, or a list or tuple of these schedulers. |
It should be possible to use
The deepspeed checkpointing logic does modify serialized_attributes so it can skip serialization of the models and optimizers on the state dict.
KK, we can address in a separate PR.
Actually, don't worry about this one. It will depend on #640. Generally speaking, we will want to remove the plural types from the docstrings and instead replace it with |
606fb3b
to
fa61a7e
Compare
@ravi-mosaicml, @hanlint Addressed all comments. |
For evaluator.py, precision.py, serializable.py, state.py, time.py and types.py in composer.core