-
Notifications
You must be signed in to change notification settings - Fork 824
[Pytorch] MOE Sequential Block #3350
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
vthumbe1503
wants to merge
138
commits into
NVIDIA:main
Choose a base branch
from
vthumbe1503:dispatch_combine_op
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.
Open
Changes from all commits
Commits
Show all changes
138 commits
Select commit
Hold shift + click to select a range
b1574f0
produce/consume extra output
vthumbe1503 63192ab
allow for fusions with producer/consumer being part of same fuser wit…
vthumbe1503 3b4b523
cleanup
vthumbe1503 de38ed8
minor cleanup
vthumbe1503 385b0d5
dispatch combine impl
vthumbe1503 ad3b044
fusible ops test
vthumbe1503 5fb0d3a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2ba4f6a
Merge remote-tracking branch 'nvidia_origin/main' into enable_extra_o…
vthumbe1503 3af2ecc
keep just ops infra changes
vthumbe1503 d7d6380
cleanup with residual tests
vthumbe1503 74f563a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 29d23f2
Merge branch 'main' into enable_extra_out_consumption
vthumbe1503 87e2b36
address review comment
vthumbe1503 80601dc
update to cleaner documentation
vthumbe1503 5070e34
address review comments
vthumbe1503 ae41ad3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f82cbed
some cleanup
vthumbe1503 5a4e1ec
update docs
vthumbe1503 0a479c7
pin channels through channel version
vthumbe1503 d679998
unecessary handling removal
vthumbe1503 8f7ba95
simplify
vthumbe1503 c62bb15
doc update + extra_grad = None case
vthumbe1503 a93b820
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 35b73b1
test cleanup
vthumbe1503 6801a6d
no need to check staleness in every forward call
vthumbe1503 6688e8a
remove redundant tests
vthumbe1503 12430c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b189550
revert from bad names
vthumbe1503 a4cc112
keep simple
vthumbe1503 7edaf89
Merge branch 'enable_extra_out_consumption' of github.com:vthumbe1503…
vthumbe1503 5ba6055
unecessary checks
vthumbe1503 76826dc
minor doc
vthumbe1503 827f8e9
Merge branch 'main' into enable_extra_out_consumption
vthumbe1503 60ca030
basic op and refrence implementation
vthumbe1503 8ec3a39
compare fused and unfused ops and they are matching
vthumbe1503 63a4ea3
fix lint
vthumbe1503 87c1cf6
Update transformer_engine/pytorch/ops/fuser.py
vthumbe1503 307ab15
Update docs/examples/op_fuser/op_fuser.rst
vthumbe1503 97a91cf
Update transformer_engine/pytorch/ops/fuser.py
vthumbe1503 6468a14
address review comments + extra output being configurable to be outpu…
vthumbe1503 2eb21ed
cleanup
vthumbe1503 1b0a4b1
Merge remote-tracking branch 'origin/enable_extra_out_consumption' in…
vthumbe1503 212a460
Restore ep_reference to its originally created content.
vthumbe1503 c7dacdf
Support BF16 grouped MLP in ep_reference and keep MOE extras internal.
vthumbe1503 00b48cf
update test to have internal extra_out
vthumbe1503 db24495
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3c37643
extra output grad can be None, equivalent to zero
vthumbe1503 e10a13b
fix merge conflict
vthumbe1503 5b555ce
revert commit for nccl
vthumbe1503 14d9ef9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 42c622e
more fix
vthumbe1503 1172c72
Merge branch 'dispatch_combine_op' of github.com:vthumbe1503/Transfor…
vthumbe1503 e40eb74
cudnn kernel
vthumbe1503 c7eceaa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fb8fc83
remove the previous artifact
vthumbe1503 76d7fdd
minor change
vthumbe1503 c946162
minor bug fix
vthumbe1503 80f6063
single_groupe_weight + remove copies
vthumbe1503 a779c6c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f197433
cpu init for megatron needs
vthumbe1503 075fc44
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cc01b97
untested commit for quantizer roles for dispatch/combine along with p…
vthumbe1503 609c9b4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 31407af
cleanups
vthumbe1503 1d5d2ed
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d13c17f
more cleanup
vthumbe1503 bfb7eec
Merge branch 'dispatch_combine_op' of github.com:vthumbe1503/Transfor…
vthumbe1503 8e18c46
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 895d1a1
refactor tests
vthumbe1503 a4279c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ffb4d62
some fix
vthumbe1503 d449da9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f888050
update fused kernel import issue and view issue in delay wgrad
vthumbe1503 290cb8d
Merge branch 'main' into dispatch_combine_op
vthumbe1503 b882b35
refactor based on ep.py + reduce cpu overheads
vthumbe1503 be9a0dc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f6c6306
limit the recv tokens per rank
vthumbe1503 38fd365
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fedcda0
address review comments + rework design for ops(epconfig + kwarg epbu…
vthumbe1503 a584be8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bf9dd3f
address review comments
vthumbe1503 0722ec6
Merge branch 'dispatch_combine_op' of github.com:vthumbe1503/Transfor…
vthumbe1503 1d1e11a
t_flat was a better name
vthumbe1503 5674825
simplify
vthumbe1503 6646ca3
clean cursor mess
vthumbe1503 62d9b06
restore comments
vthumbe1503 e8d1bb7
bf16 hardcoding for combine as well
vthumbe1503 cb4c57e
scale type should be autocast type if autocast enabled
vthumbe1503 b518f6e
Merge branch 'main' into dispatch_combine_op
vthumbe1503 ebed56a
update copyrights
vthumbe1503 3e9812b
Merge branch 'dispatch_combine_op' of github.com:vthumbe1503/Transfor…
vthumbe1503 a44091e
match the right syntax
vthumbe1503 4956554
Merge branch 'main' into dispatch_combine_op
vthumbe1503 ae6dc49
better changes
vthumbe1503 dc59ae3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f83257e
minor review comments pending
vthumbe1503 a18254c
Merge branch 'main' into dispatch_combine_op
vthumbe1503 dedc09f
changes for cuda graph capture support
vthumbe1503 b459479
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fc463d5
make workspace caller owned
vthumbe1503 16594bf
Merge branch 'dispatch_combine_op' of https://github.com/vthumbe1503/…
vthumbe1503 f71f038
skip cuda graph for unfused ops
vthumbe1503 e104a9c
i think i fixed tests
vthumbe1503 de81b7d
test update to take care of interleave
vthumbe1503 14d82e1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f5ae45b
better name
vthumbe1503 2ff83d4
ep_reference belongs in test
vthumbe1503 0d848b8
Merge branch 'dispatch_combine_op' of https://github.com/vthumbe1503/…
vthumbe1503 fc46af8
make dispatch combine accept ep buffer as op constructor arg
vthumbe1503 979476d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e5b924b
DType
vthumbe1503 fe5eb28
t p`Merge branch 'dispatch_combine_op' of https://github.com/vthumbe1…
vthumbe1503 df0f775
Merge branch 'main' into dispatch_combine_op
vthumbe1503 4a80618
lint fix
vthumbe1503 3b3881d
Merge branch 'dispatch_combine_op' of https://github.com/vthumbe1503/…
vthumbe1503 060fe86
add float implementation for DDP master weights
vthumbe1503 f5aa737
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 901d8e1
cudnn frees resources
vthumbe1503 3765678
Merge branch 'dispatch_combine_op' of https://github.com/vthumbe1503/…
vthumbe1503 e063653
ugly resource handling for now
vthumbe1503 a47b6d7
use single nvshmem based moe ep object for process lifetime
vthumbe1503 eb91740
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2cbe081
missing delcare for eager_fused_ops
vthumbe1503 2921f61
Merge branch 'dispatch_combine_op' of github.com:vthumbe1503/Transfor…
vthumbe1503 20d75c1
paged stashing
vthumbe1503 852fcd6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0ce47a7
allow for dequantize with both rowwise and colwise present using rowwise
vthumbe1503 cf4ee51
Merge branch 'dispatch_combine_op' of github.com:vthumbe1503/Transfor…
vthumbe1503 45764e5
add test
vthumbe1503 df61f3b
mode for cuda graphable backward
vthumbe1503 ecd6169
wgrad using untrasnposed data
vthumbe1503 b05205f
Merge branch 'dispatch_combine_op' of https://github.com/vthumbe1503/…
vthumbe1503 cb8ba4b
crap removal
vthumbe1503 13c572f
remove bad perf config
vthumbe1503 235fe67
Merge branch 'main' into dispatch_combine_op
vthumbe1503 0eca46b
fix merge conflict + simplify back mark_Grouped_tensor
vthumbe1503 b9e8756
paged stash active tokens
vthumbe1503 3f60f48
paged stash scales too
vthumbe1503 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.
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.
This newly supported path selects the rowwise data and scales when both grouped MXFP8 orientations are present, but the dequantization tests cover only each orientation separately and still state that
bothis invalid. Without abothcase that verifies the intended rowwise selection, this behavior can regress without detection.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!