-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 API docs for NeMo Megatron #6850
Conversation
Signed-off-by: ericharper <complex451@gmail.com>
Signed-off-by: ericharper <complex451@gmail.com>
Signed-off-by: ericharper <complex451@gmail.com>
Signed-off-by: ericharper <complex451@gmail.com>
docs/source/nlp/api.rst
Outdated
.. autoclass:: nemo.collections.nlp.models.language_modeling.megatron_bart_model.MegatronBARTModel | ||
:show-inheritance: | ||
:no-members: | ||
:members: training_step, validation_step, build_train_valid_test_datasets, build_LDDL_data, setup, on_save_checkpoint, on_load_checkpoint |
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 meant to show just the members of this class? If so, I don't think BART has any public methods. It just inherits everything from T5 and definitely does not have an LDDL data path.
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.
yeah good catch, LDDL showed up there from copy pasting. I was trying to show methods per class that would be useful
.. autoclass:: nemo.collections.nlp.models.language_modeling.megatron_gpt_sft_model.MegatronGPTSFTModel | ||
:show-inheritance: | ||
:no-members: | ||
:members: generate, training_step, validation_step, build_train_valid_test_datasets, setup |
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.
Should just include methods from parent classes? If not, training_step comes from the parent GPTModel class.
Signed-off-by: ericharper <complex451@gmail.com>
* add model pretraining and customization classes Signed-off-by: ericharper <complex451@gmail.com> * fix Signed-off-by: ericharper <complex451@gmail.com> * test width Signed-off-by: ericharper <complex451@gmail.com> * increase middle pane width Signed-off-by: ericharper <complex451@gmail.com> * add modules and datasets Signed-off-by: ericharper <complex451@gmail.com> * remove global in t5 dataset s and fix formatting in megatron base model Signed-off-by: ericharper <complex451@gmail.com> --------- Signed-off-by: ericharper <complex451@gmail.com>
* add model pretraining and customization classes * fix * test width * increase middle pane width * add modules and datasets * remove global in t5 dataset s and fix formatting in megatron base model --------- Signed-off-by: ericharper <complex451@gmail.com> Co-authored-by: Eric Harper <complex451@gmail.com>
What does this PR do ?
Adds API documentation.
Collection: NLP
Changelog
Usage
# Add a code snippet demonstrating how to use this
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information