-
Couldn't load subscription status.
- Fork 533
Enable SWA with CP for THD input format #2220
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
Open
sudhakarsingh27
wants to merge
16
commits into
NVIDIA:main
Choose a base branch
from
sudhakarsingh27:enable_thd_cp_swa
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+265
−44
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e00c0e0
Add support for THD+CP+SWA through A2A comms
sudhakarsingh27 c0a57c5
Merge branch 'main' of github.com:NVIDIA/TransformerEngine into enabl…
sudhakarsingh27 8eb54e3
unblock the `padding`+`THD`+`CP(A2A)` with SWA case in A2A forward
sudhakarsingh27 4987420
add proper support for thd
sudhakarsingh27 85ccb47
merge main
sudhakarsingh27 f01b1fb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9be74cb
bug fix
sudhakarsingh27 9ad800b
Merge branch 'enable_thd_cp_swa' of github.com:sudhakarsingh27/Transf…
sudhakarsingh27 e444453
Merge branch 'main' into enable_thd_cp_swa
sudhakarsingh27 09f49ef
enable thd+cp tests as essential
sudhakarsingh27 cebff60
Merge branch 'enable_thd_cp_swa' of github.com:sudhakarsingh27/Transf…
sudhakarsingh27 ceacd25
Merge branch 'main' into enable_thd_cp_swa
sudhakarsingh27 7c8c25d
add cp+thd+a2a test to essential
sudhakarsingh27 f021105
Merge branch 'main' into enable_thd_cp_swa
sudhakarsingh27 5f722d8
fix comments from greptile
sudhakarsingh27 f57ac0c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 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
Some comments aren't visible on the classic Files Changed page.
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
Oops, something went wrong.
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.
logic: The skip at line 229 contradicts the PR's stated goal of enabling THD+CP with A2A. This should be removed or updated.
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.
It doesn't, since A2A+P2P is different than A2A only
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.
You're right – A2A and A2A+P2P are different communication patterns. The skip at line 229 is specifically for
all_gather, not for A2A, so there's no contradiction with the PR's goal of enabling THD+CP with A2A.Looking at the code:
cp_comm_type == "all_gather"cp_comm_type == "a2a+p2p"These are two separate conditions. The PR enables THD with A2A (plain
"a2a"), which is not blocked by either of these skips. So the logic is actually correct and consistent with the PR's objective.My apologies for the confusion in my original comment!