-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[pure dp performance] Optimize fused allreduce in raw program #34509
Merged
Conversation
This file contains 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! |
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 2, 2021 07:21
9da8eb4
to
2f2ddb1
Compare
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 2, 2021 07:50
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
FeixLiu
force-pushed
the
allreduce_optim
branch
2 times, most recently
from
August 3, 2021 05:19
c54345a
to
ed8f7eb
Compare
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 3, 2021 05:27
ed8f7eb
to
c10ad6b
Compare
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 3, 2021 05:52
c10ad6b
to
59d652d
Compare
FeixLiu
force-pushed
the
allreduce_optim
branch
6 times, most recently
from
August 3, 2021 10:23
bd8cf8f
to
6c8b8ab
Compare
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 4, 2021 01:23
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
Show resolved
Hide resolved
python/paddle/distributed/fleet/meta_optimizers/raw_program_optimizer.py
Outdated
Show resolved
Hide resolved
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 4, 2021 06:31
8c04ed8
to
8ecd256
Compare
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 4, 2021 06:46
8ecd256
to
83a3098
Compare
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 4, 2021 08:17
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
FeixLiu
force-pushed
the
allreduce_optim
branch
2 times, most recently
from
August 5, 2021 01:40
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
FeixLiu
force-pushed
the
allreduce_optim
branch
2 times, most recently
from
August 10, 2021 06:49
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
FeixLiu
force-pushed
the
allreduce_optim
branch
from
August 11, 2021 02:57
11928ea
to
abbae2e
Compare
wangxicoding
approved these changes
Aug 11, 2021
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
FeixLiu
changed the title
Optimize fused allreduce in raw program
[pure dp performance] Optimize fused allreduce in raw program
Oct 11, 2021
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_tensor
before grad generation, so that thecopy_data
is not needed.Test
GPT model with dp=8
FP32 Loss curve
Max Diff: 0.038
FP16 Loss curve
Max Diff: 0.073