-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[pure dp performance] Optimize fused allreduce in raw program #34509
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
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
|
Thanks for your contribution! |
9da8eb4 to
2f2ddb1
Compare
2f2ddb1 to
0c63f62
Compare
wangxicoding
requested changes
Aug 2, 2021
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
c54345a to
ed8f7eb
Compare
ed8f7eb to
c10ad6b
Compare
c10ad6b to
59d652d
Compare
bd8cf8f to
6c8b8ab
Compare
6c8b8ab to
26158cc
Compare
wangxicoding
reviewed
Aug 4, 2021
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
8c04ed8 to
8ecd256
Compare
8ecd256 to
83a3098
Compare
83a3098 to
f4fa1a3
Compare
wangxicoding
requested changes
Aug 4, 2021
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
wangxicoding
reviewed
Aug 4, 2021
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
wangxicoding
reviewed
Aug 4, 2021
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
fce35ac to
fc3458f
Compare
wangxicoding
reviewed
Aug 5, 2021
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
c82093f to
11928ea
Compare
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
11928ea to
abbae2e
Compare
wangxicoding
approved these changes
Aug 11, 2021
Contributor
wangxicoding
left a comment
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.
LGTM
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.
PR types
Performance optimization
PR changes
Others
Describe
coalesce_tensorbefore grad generation, so that thecopy_datais not needed.Test
GPT model with dp=8
FP32 Loss curve

Max Diff: 0.038
FP16 Loss curve

Max Diff: 0.073