Skip to content
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

Merged
merged 8 commits into from
Jun 13, 2023
Merged

Add API docs for NeMo Megatron #6850

merged 8 commits into from
Jun 13, 2023

Conversation

ericharper
Copy link
Collaborator

What does this PR do ?

Adds API documentation.

Collection: NLP

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

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

  • Related to # (issue)

@github-actions github-actions bot added the NLP label Jun 11, 2023
@ericharper ericharper marked this pull request as ready for review June 11, 2023 22:02
.. 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
Copy link
Contributor

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.

Copy link
Collaborator Author

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
Copy link
Contributor

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.

@ericharper ericharper merged commit 87e1b81 into r1.19.0 Jun 13, 2023
7 of 9 checks passed
@ericharper ericharper deleted the fix_nlp_docs branch June 13, 2023 17:25
github-actions bot pushed a commit that referenced this pull request Jun 13, 2023
* add model pretraining and customization classes

Signed-off-by: ericharper <[email protected]>

* fix

Signed-off-by: ericharper <[email protected]>

* test width

Signed-off-by: ericharper <[email protected]>

* increase middle pane width

Signed-off-by: ericharper <[email protected]>

* add modules and datasets

Signed-off-by: ericharper <[email protected]>

* remove global in t5 dataset s and fix formatting in megatron base model

Signed-off-by: ericharper <[email protected]>

---------

Signed-off-by: ericharper <[email protected]>
ericharper added a commit that referenced this pull request Jun 14, 2023
* 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 <[email protected]>
Co-authored-by: Eric Harper <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants