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 support for overlapped gradient and parameter synchronization for GPT SFT model #10041

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

michal2409
Copy link
Collaborator

@michal2409 michal2409 commented Aug 5, 2024

Add support for overlapped gradient and parameter synchronization for GPT SFT model

What does this PR do ?

Add support for overlapped gradient and parameter synchronization

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 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

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 Aug 5, 2024
@michal2409 michal2409 changed the title Add support for overlapped gradient and parameter synchronization for… Add support for overlapped gradient and parameter synchronization for GPT SFT model Aug 5, 2024
… GPT SFT model

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>
@michal2409 michal2409 force-pushed the mfutrega/mcore_dist_opt branch from d2da57d to f5a7259 Compare August 5, 2024 13:13
@michal2409 michal2409 requested a review from terrykong August 5, 2024 13:35
michal2409 and others added 2 commits August 5, 2024 17:44
Signed-off-by: michal2409 <michal2409@users.noreply.github.com>
@terrykong terrykong requested a review from cuichenx August 5, 2024 16:29
Copy link
Collaborator

@cuichenx cuichenx left a comment

Choose a reason for hiding this comment

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

Approving based on similar change in MegatronGPTModel (#9034)

@cuichenx cuichenx merged commit 1bc5a87 into main Aug 6, 2024
225 checks passed
@cuichenx cuichenx deleted the mfutrega/mcore_dist_opt branch August 6, 2024 17:03
adityavavre pushed a commit to adityavavre/NeMo that referenced this pull request Sep 15, 2024
… GPT SFT model (NVIDIA#10041)

* Add support for overlapped gradient and parameter synchronization for GPT SFT model

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>

* Add finalize_model_grads

* Apply isort and black reformatting

Signed-off-by: michal2409 <michal2409@users.noreply.github.com>

---------

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>
Signed-off-by: michal2409 <michal2409@users.noreply.github.com>
Co-authored-by: michal2409 <michal2409@users.noreply.github.com>
Signed-off-by: adityavavre <aditya.vavre@gmail.com>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
… GPT SFT model (#10041)

* Add support for overlapped gradient and parameter synchronization for GPT SFT model

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>

* Add finalize_model_grads

* Apply isort and black reformatting

Signed-off-by: michal2409 <michal2409@users.noreply.github.com>

---------

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>
Signed-off-by: michal2409 <michal2409@users.noreply.github.com>
Co-authored-by: michal2409 <michal2409@users.noreply.github.com>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
… GPT SFT model (NVIDIA#10041)

* Add support for overlapped gradient and parameter synchronization for GPT SFT model

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>

* Add finalize_model_grads

* Apply isort and black reformatting

Signed-off-by: michal2409 <michal2409@users.noreply.github.com>

---------

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>
Signed-off-by: michal2409 <michal2409@users.noreply.github.com>
Co-authored-by: michal2409 <michal2409@users.noreply.github.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
XuesongYang pushed a commit to paarthneekhara/NeMo that referenced this pull request Jan 18, 2025
… GPT SFT model (NVIDIA#10041)

* Add support for overlapped gradient and parameter synchronization for GPT SFT model

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>

* Add finalize_model_grads

* Apply isort and black reformatting

Signed-off-by: michal2409 <michal2409@users.noreply.github.com>

---------

Signed-off-by: Michal Futrega <mfutrega@nvidia.com>
Signed-off-by: michal2409 <michal2409@users.noreply.github.com>
Co-authored-by: michal2409 <michal2409@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants