Repository navigation
fix: load HF model only on rank 0 - #544
Merged
Merged
Conversation
Signed-off-by: Parth Chadha <[email protected]>
terrykong
reviewed
Jun 24, 2025
parthchadha
force-pushed
the
pchadha/large-model-state-dict-load
branch
from
June 24, 2025 17:42
aae142f to
ebaeb99
Compare
terrykong
reviewed
Jun 24, 2025
Signed-off-by: Parth Chadha <[email protected]>
parthchadha
force-pushed
the
pchadha/large-model-state-dict-load
branch
from
June 24, 2025 18:11
ebaeb99 to
fcec2db
Compare
terrykong
previously approved these changes
Jun 24, 2025
parthchadha
enabled auto-merge
June 24, 2025 18:42
parthchadha
added this pull request to the merge queue
Jun 24, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jun 24, 2025
parthchadha
added this pull request to the merge queue
Jun 25, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jun 25, 2025
Signed-off-by: Parth Chadha <[email protected]>
SahilJain314
previously approved these changes
Jul 1, 2025
parthchadha
added this pull request to the merge queue
Jul 1, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 1, 2025
parthchadha
added this pull request to the merge queue
Jul 1, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 2, 2025
Signed-off-by: Parth Chadha <[email protected]>
parthchadha
enabled auto-merge
July 2, 2025 05:47
SahilJain314
previously approved these changes
Jul 2, 2025
parthchadha
added this pull request to the merge queue
Jul 2, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 2, 2025
Signed-off-by: Parth Chadha <[email protected]>
parthchadha
enabled auto-merge
July 2, 2025 14:04
SahilJain314
approved these changes
Jul 2, 2025
parthchadha
added this pull request to the merge queue
Jul 2, 2025
xxman-google
pushed a commit
to xxman-google/NeMo-RL
that referenced
this pull request
Jul 2, 2025
Signed-off-by: Parth Chadha <[email protected]>
therealnaveenkamal
pushed a commit
to therealnaveenkamal/RL
that referenced
this pull request
Jul 7, 2025
Signed-off-by: Parth Chadha <[email protected]>
YzjiaoNvd
pushed a commit
to YzjiaoNvd/NeMo-RL
that referenced
this pull request
Jul 14, 2025
Signed-off-by: Parth Chadha <[email protected]>
jialei777
pushed a commit
to jialei777/nemo-rl
that referenced
this pull request
Jul 23, 2025
Signed-off-by: Parth Chadha <[email protected]> Signed-off-by: Jialei Chen <[email protected]>
KiddoZhu
pushed a commit
that referenced
this pull request
Jul 28, 2025
Signed-off-by: Parth Chadha <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do ?
Loads model only on rank 0 and then uses fsdp2
set_model_state_dictAPI to load the weights on other ranks (after the model has been parallelized).Note that the current PR still leads to GPU OOM for 70B model on 1 node with dtensor, will fix in a separate PR.
Issues
closes #279
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information