-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[Feature] Split cross-entropy computation in SP #5959
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
Merged
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
c7a19e2
halfway
Edenzzzz 92b4891
fix cross-PP-stage position id length diff bug
Edenzzzz a9ed834
fix typo
Edenzzzz 20f2a73
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] edb9043
unified cross entropy func for all shardformer models
Edenzzzz bad530f
remove redundant lines
Edenzzzz 57746c0
add basic ring attn; debug cross entropy
Edenzzzz 1607ea0
fwd bwd logic complete
Edenzzzz 1796b80
fwd bwd logic complete; add experimental triton rescale
Edenzzzz 500454b
precision tests passed
Edenzzzz c1ea3ba
precision tests passed
Edenzzzz 4b8a412
fix typos and remove misc files
Edenzzzz 4f864b2
update softmax_lse shape by new interface
Edenzzzz 864dac6
change tester name
Edenzzzz 69bf303
remove buffer clone; support packed seq layout
Edenzzzz ec4fab7
add varlen tests
Edenzzzz cd9349e
fix typo
Edenzzzz 25d3e38
all tests passed
Edenzzzz 1234d99
add dkv_group; fix mask
Edenzzzz f6a8f12
remove debug statements
Edenzzzz c0b7e96
adapt chatglm, command-R, qwen
Edenzzzz 0eb6fdf
debug
Edenzzzz 2fae794
halfway
Edenzzzz 91bab84
fix cross-PP-stage position id length diff bug
Edenzzzz c5c14b6
fix typo
Edenzzzz a00c93b
fix typo
Edenzzzz ab9b784
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7d99bc0
unified cross entropy func for all shardformer models
Edenzzzz 423102a
remove redundant lines
Edenzzzz 91fb3c1
add basic ring attn; debug cross entropy
Edenzzzz c050293
fwd bwd logic complete
Edenzzzz 65b4b76
fwd bwd logic complete; add experimental triton rescale
Edenzzzz 5824ede
precision tests passed
Edenzzzz 0e72997
precision tests passed
Edenzzzz f5a1b99
fix typos and remove misc files
Edenzzzz 52331c9
add sp_mode to benchmark; fix varlen interface
Edenzzzz c70d03a
update softmax_lse shape by new interface
Edenzzzz 9c83343
add varlen tests
Edenzzzz cc6472a
fix typo
Edenzzzz ed4ad6d
all tests passed
Edenzzzz 36f691d
add dkv_group; fix mask
Edenzzzz 6b5d1bf
remove debug statements
Edenzzzz bdad28a
add comments
Edenzzzz 89343fd
q1 index only once
Edenzzzz 551aaec
remove events to simplify stream sync
Edenzzzz 43c0b65
simplify forward/backward logic
Edenzzzz fb4e905
2d ring forward passed
Edenzzzz 8bc062d
2d ring backward passed
Edenzzzz d844ded
fixes
Edenzzzz 8c01223
fix ring attn loss
Edenzzzz 7a7fb1f
2D ring backward + llama passed
Edenzzzz 78ed55d
merge
Edenzzzz 70b1f5d
update logger
Edenzzzz f91586f
fix typo
Edenzzzz 2ce53f1
rebase
Edenzzzz 5fed9da
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8ec9009
fix typo
Edenzzzz d0aeec9
remove typos
Edenzzzz de0afd1
fixes
Edenzzzz 2fb7db6
support GPT
Edenzzzz a374633
Merge branch 'main' into split_ce
Edenzzzz 63fd075
fix gpt2
Edenzzzz 17002b6
gpt ring attn + TP passed
Edenzzzz c6067fe
trim llama forward logic
Edenzzzz 051590d
GPT support sp + pp
Edenzzzz ce1184c
attempt to simplify code
Edenzzzz 8ad3d5b
Merge branch 'main' into split_ce
Edenzzzz 6d5fc3a
debug
Edenzzzz 4a32c68
fix all-reduce elapsed time
Edenzzzz 5365117
update gpt max seqlen to 32k
Edenzzzz d0107c3
merge with main
Edenzzzz 177142a
fix typos
Edenzzzz fc798f4
fix typos
Edenzzzz 04e1c1e
remove
Edenzzzz 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
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.
Uh oh!
There was an error while loading. Please reload this page.