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

Fix bug where GPT always enabled distopt overlapped param sync #5995

Merged

Conversation

timmoon10
Copy link
Collaborator

@timmoon10 timmoon10 commented Feb 11, 2023

What does this PR do ?

With the changes in #5684, I observe that GPT always sets overlap_param_sync=True. This PR allows the user to manually override that option, which now False by default.

Collection: NLP

Changelog

  • Fix bug where GPT always enabled distopt overlapped param sync

Usage

When using the distributed_fused_adam optimizer, set overlap_param_sync: True in the optimizer config.

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

@github-actions github-actions bot added core Changes to NeMo Core NLP labels Feb 11, 2023
@timmoon10 timmoon10 added bug Something isn't working and removed core Changes to NeMo Core labels Feb 11, 2023
@github-actions github-actions bot added the core Changes to NeMo Core label Feb 11, 2023
@timmoon10 timmoon10 force-pushed the dist-adam-overlap-forward-option-bugfix branch from 3240a9f to 0afb078 Compare February 11, 2023 00:22
@timmoon10 timmoon10 force-pushed the dist-adam-overlap-forward-option-bugfix branch from 1b0f3d3 to 022f488 Compare February 13, 2023 22:38
@github-actions github-actions bot removed the core Changes to NeMo Core label Feb 13, 2023
ericharper
ericharper previously approved these changes Feb 13, 2023
Copy link
Collaborator

@ericharper ericharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Signed-off-by: Tim Moon <[email protected]>
Copy link
Collaborator

@ericharper ericharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@timmoon10 timmoon10 merged commit 850f5ce into NVIDIA:main Feb 15, 2023
titu1994 pushed a commit to titu1994/NeMo that referenced this pull request Mar 24, 2023
…A#5995)

* GPT no longer explicitly overlaps distopt communication with forward compute

Signed-off-by: Tim Moon <[email protected]>

* Remove unused import

Signed-off-by: Tim Moon <[email protected]>

---------

Signed-off-by: Tim Moon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working NLP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants