Skip to content

Fix the load checkpointing issue -- onelogger callback gets called multiple time in some case.#14945

Merged
chtruong814 merged 4 commits intomainfrom
chore/modelpt-signoff-2025-10-17
Oct 17, 2025
Merged

Fix the load checkpointing issue -- onelogger callback gets called multiple time in some case.#14945
chtruong814 merged 4 commits intomainfrom
chore/modelpt-signoff-2025-10-17

Conversation

@liquor233
Copy link
Collaborator

@liquor233 liquor233 commented Oct 17, 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 ?

Fix issues of in modelPT the OneLogger callback is called twice, and in not enabled rank, OneLogger emit too many warning messages.

Collection: [Note which collection this PR will affect]

  • core/classes/modelPT.py

Changelog

  • Remove duplicate callbackgroup call in modelPT restore_from func.
  • Upgrade version of onelogger to use a version which is less verbose.

Usage

  • n/a
# 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)

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>
Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>
@chtruong814
Copy link
Collaborator

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>
Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>
@github-actions
Copy link
Contributor

[🤖]: Hi @liquor233 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully.

So it might be time to merge this PR or get some approvals.

//cc @chtruong814 @ko3n1g @pablo-garay @thomasdhc

@chtruong814 chtruong814 added the r2.5.0 Cherry-pick label for the 2.5.0 release label Oct 17, 2025
@chtruong814 chtruong814 merged commit 3394df4 into main Oct 17, 2025
254 of 255 checks passed
@chtruong814 chtruong814 deleted the chore/modelpt-signoff-2025-10-17 branch October 17, 2025 15:46
chtruong814 pushed a commit that referenced this pull request Oct 17, 2025
…ltiple time in some case. (#14945)

* Update modelPT.py

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>

* Update one_logger_callback.py

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>

* fix the test for error handling

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>

* update the dependency version

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>

---------

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>
Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
chtruong814 added a commit that referenced this pull request Oct 17, 2025
…ltiple time in some case. (#14945) (#14948)

* Update modelPT.py



* Update one_logger_callback.py



* fix the test for error handling



* update the dependency version



---------

Signed-off-by: Jiashang Hu <jiashangh@nvidia.com>
Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
Co-authored-by: liquor233 <jiashangh@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to NeMo Core r2.5.0 Cherry-pick label for the 2.5.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants