Repository navigation
Align per-rank fused FSDP collective payloads to 512 bytes - #369
Closed
zhangming700 wants to merge 2 commits into
Closed
zhangming700 wants to merge 2 commits into
zhangming700 wants to merge 2 commits into
Conversation
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.
Round each rank's fused AllGather and ReduceScatter payload up to 512 bytes in the collective dtype. Keep parameter offsets intact and consume the AllGather tail with an additional split output on the dim-0 fast path.
Validation
All 26 tests in
tests/ut/core/fully_shard/test_param_group.pypassed with CPU tensors and mocked collectives in the training image.Earlier eight-NPU Qwen3-30B-A3B training measurements (five runs per variant) used the implementation on Hyper-Parallel base
5b50a340. The original fusion baseline was collected separately.The aligned implementation reduced mean step time by 3.08% relative to original fusion. Its mean step time remained 3.93% higher than per-parameter communication. These measurements cover the combined alignment and copy-out change.
Training image packages included PyTorch 2.14.0+cpu, torch_npu 2.14.0, CANN 9.2.0, Python 3.12.15 and Hyper-Parallel 1.2.0.dev0.
Superseded by #371 targeting
master.