Skip to content

Conversation

@kunlunl
Copy link
Contributor

@kunlunl kunlunl commented Jun 30, 2025

Important

The Update branch button must only be pressed in very rare occassions.
An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Collection: [Note which collection this PR will affect]

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 core Changes to NeMo Core label Jun 30, 2025
@kunlunl kunlunl force-pushed the load_main_params_from_ckpt branch 2 times, most recently from a047a03 to e8bf6de Compare June 30, 2025 18:37
@gautham-kollu gautham-kollu requested a review from ananthsub July 1, 2025 16:12
@ko3n1g ko3n1g added Run CICD and removed Run CICD labels Jul 3, 2025
@ko3n1g ko3n1g added Run CICD and removed Run CICD labels Jul 3, 2025
@kunlunl kunlunl force-pushed the load_main_params_from_ckpt branch from d367576 to 5be0f55 Compare July 14, 2025 08:44
@ko3n1g ko3n1g added Run CICD and removed Run CICD labels Jul 14, 2025
def test_ckpt_load_main_params_and_ckpt_load_optimizer_both_true(self):
# Make sure ckpt_load_optimizer and ckpt_load_main_params cannot be both set to True.
with pytest.raises(ValueError):
strategy = MegatronStrategy(ckpt_load_optimizer=True, ckpt_load_main_params=True)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable strategy is not used.
@gautham-kollu gautham-kollu merged commit ce30972 into NVIDIA-NeMo:main Jul 21, 2025
280 checks passed
AmirHussein96 pushed a commit to AmirHussein96/NeMo that referenced this pull request Jul 23, 2025
* Load master weights from checkpoint

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

* Change the default behavior to not load the main parameters from the checkpoint.

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

* Add tests to cover all the added code

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

* Apply isort and black reformatting

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

---------

Signed-off-by: kunlunl <[email protected]>
Signed-off-by: ko3n1g <[email protected]>
Co-authored-by: ko3n1g <[email protected]>
Signed-off-by: Amir Hussein <[email protected]>
monica-sekoyan pushed a commit that referenced this pull request Aug 4, 2025
* Load master weights from checkpoint

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

* Change the default behavior to not load the main parameters from the checkpoint.

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

* Add tests to cover all the added code

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

* Apply isort and black reformatting

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

---------

Signed-off-by: kunlunl <[email protected]>
Signed-off-by: ko3n1g <[email protected]>
Co-authored-by: ko3n1g <[email protected]>
nasretdinovr pushed a commit to nasretdinovr/NeMo that referenced this pull request Aug 8, 2025
* Load master weights from checkpoint

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

* Change the default behavior to not load the main parameters from the checkpoint.

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

* Add tests to cover all the added code

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

* Apply isort and black reformatting

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

---------

Signed-off-by: kunlunl <[email protected]>
Signed-off-by: ko3n1g <[email protected]>
Co-authored-by: ko3n1g <[email protected]>
guyueh1 pushed a commit to guyueh1/NeMo that referenced this pull request Aug 25, 2025
* Load master weights from checkpoint

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

* Change the default behavior to not load the main parameters from the checkpoint.

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

* Add tests to cover all the added code

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

* Apply isort and black reformatting

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

---------

Signed-off-by: kunlunl <[email protected]>
Signed-off-by: ko3n1g <[email protected]>
Co-authored-by: ko3n1g <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to NeMo Core Run CICD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants