-
Notifications
You must be signed in to change notification settings - Fork 4.6k
DeepCompile ZeRO-3: robust allgather for uneven shards; fix profiling… #7489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tohtana
merged 22 commits into
deepspeedai:master
from
juyterman1000:fix/dc-zero3-allgather-uneven-shards
Sep 22, 2025
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2e6f1b8
DeepCompile ZeRO-3: robust allgather for uneven shards; fix profiling…
adalakoti90 24ceb0b
DeepCompile ZeRO-3: remove size-allgather; enforce uniform shard size…
adalakoti90 94e3dd6
Z3: allgatherParam pre-allocates padded buffer and returns a sliced v…
adalakoti90 ffa2aba
Z3: use .contiguous() for NCCL allgather send buffer; add comment
adalakoti90 04f9bd4
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 80ff735
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 6ccf869
Fix compilation error and add test for uneven shard assertion
adalakoti90 04e7617
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 daa3e73
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 4320c5a
Fix allgather lvalue reference error
adalakoti90 0c13f9e
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 d038200
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 9ce693c
Fix ZeRO-3 DeepCompile to handle padded parameters correctly - Update…
adalakoti90 a01d899
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 9e6ea01
Merge branch 'fix/dc-zero3-allgather-uneven-shards' of github.com:juy…
adalakoti90 4f322d4
Z3 registration: compute padded-per-rank from ds_shape (total_numel) …
adalakoti90 05a13ed
Z3 allgatherParam: derive padded_numel via padded_per_rank from ds_shape
adalakoti90 c8f11bb
Merge remote-tracking branch 'upstream/master' into fix/dc-zero3-allg…
adalakoti90 c844010
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 ea3ad68
Merge branch 'master' into fix/dc-zero3-allgather-uneven-shards
juyterman1000 f3f7cf5
z3: fix registration allgather output tensor shape (ProcessGroup::all…
adalakoti90 09c1be3
fix formatting
tohtana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure when
isValid(ds_id)
is false whilehasGatheredParam(ds_id)
is true. They are both set at the end oflaunchAllGather()
, and releasing a gathered param will unset the valid flag inunregisterGatheredParam()
.