Skip to content

fix: Add torch-memory-saver to the mcore extra deps - #3602

Merged
yuki-97 merged 1 commit into
NVIDIA-NeMo:mainfrom
tdene:tde/tms_mcore_dep
Aug 17, 2026
Merged

yuki-97 merged 1 commit into
NVIDIA-NeMo:mainfrom
tdene:tde/tms_mcore_dep

Conversation

@tdene

@tdene tdene commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What does this PR do ?

A lot of the RL flow around colocated MCore relies heavily on TMS. There are fallbacks in case TMS is not installed, but they are all very bad.

This PR adds TMS to the container to allow us to avoid all these non-TMS fallbacks.

Issues

List issues that this PR closes (syntax):

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this

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 run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

Additional Information

  • ...

@tdene
tdene requested a review from a team as a code owner August 12, 2026 13:28
@copy-pr-bot

copy-pr-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@tdene
tdene force-pushed the tde/tms_mcore_dep branch from 2ef76f2 to efa3abf Compare August 12, 2026 13:30
@tdene

tdene commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test efa3abf

@tdene tdene added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Aug 12, 2026
@tdene
tdene force-pushed the tde/tms_mcore_dep branch from efa3abf to d6268e7 Compare August 12, 2026 21:47
@tdene

tdene commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d6268e7

@tdene
tdene force-pushed the tde/tms_mcore_dep branch from d6268e7 to 7f16057 Compare August 13, 2026 05:15
@tdene

tdene commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 7f16057

@tdene
tdene force-pushed the tde/tms_mcore_dep branch from 7f16057 to 9b7f1c6 Compare August 13, 2026 18:27
@tdene
tdene requested review from a team as code owners August 13, 2026 18:27
@tdene

tdene commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 9b7f1c6

shanmugamr1992
shanmugamr1992 previously approved these changes Aug 13, 2026
@tdene

tdene commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 39e6348

@tdene

tdene commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 2e4e9e6

@tdene
tdene force-pushed the tde/tms_mcore_dep branch from 39e6348 to 2e4e9e6 Compare August 14, 2026 10:45
@yuki-97
yuki-97 merged commit f9b5072 into NVIDIA-NeMo:main Aug 17, 2026
142 of 144 checks passed
yfw added a commit that referenced this pull request Aug 17, 2026
Resolves the uv.lock conflict by regenerating rather than hand-merging.

main added torch-memory-saver to the mcore extra (#3602), which collided with
this branch's lockfile rewrite from the Megatron-Bridge 8c46dc42 bump. Both
sides touch the same regions, so a textual merge is not meaningful for a
generated file.

Resolution: took main's uv.lock as the base, then re-ran `uv lock` against the
merged pyproject.toml with the submodule at 8c46dc42. Verified:
  - torch-memory-saver>=0.0.9.post1 present under the mcore extra
  - megatron-bridge metadata resolves wandb>=0.25.0, i.e. the bumped submodule
  - `uv lock --check` passes (549 packages)

pyproject.toml and all other files auto-merged with no conflicts; submodules
remain at Megatron-Bridge 8c46dc42 / Megatron-LM 14346b65.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
@tdene tdene mentioned this pull request Aug 17, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants