Skip to content

Comments

add the mcore interface for optim arg; average_in_collective#10010

Merged
erhoo82 merged 1 commit intoNVIDIA-NeMo:mainfrom
erhoo82:mcore_interface
Aug 7, 2024
Merged

add the mcore interface for optim arg; average_in_collective#10010
erhoo82 merged 1 commit intoNVIDIA-NeMo:mainfrom
erhoo82:mcore_interface

Conversation

@erhoo82
Copy link
Collaborator

@erhoo82 erhoo82 commented Aug 1, 2024

What does this PR do ?

Add the interface to pass the argument for gradient average reduction to MegatronCore

Changelog

  • Add average_in_collective

Usage

  • Set by model.optim.average_in_collective to enable

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 1, 2024
@erhoo82 erhoo82 requested a review from ericharper August 1, 2024 19:00
Signed-off-by: Sangkug Lym <slym@nvidia.com>
@erhoo82 erhoo82 added Run CICD and removed Run CICD labels Aug 6, 2024
@ericharper ericharper requested review from akoumpa and removed request for ericharper August 7, 2024 17:04
Copy link
Collaborator

@akoumpa akoumpa left a comment

Choose a reason for hiding this comment

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

LGTM, spoke with @erhoo82 offline and NeMo has average_in_collective on by default.

@erhoo82 erhoo82 merged commit 6cf59fa into NVIDIA-NeMo:main Aug 7, 2024
adityavavre pushed a commit to adityavavre/NeMo that referenced this pull request Sep 15, 2024
…NeMo#10010)

Signed-off-by: Sangkug Lym <slym@nvidia.com>
Signed-off-by: adityavavre <aditya.vavre@gmail.com>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
…NeMo#10010)

Signed-off-by: Sangkug Lym <slym@nvidia.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
XuesongYang pushed a commit to paarthneekhara/NeMo that referenced this pull request Jan 18, 2025
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