static support mp_layers#33700
Merged
wangxicoding merged 5 commits intoPaddlePaddle:developfrom Jun 25, 2021
Merged
Conversation
|
Thanks for your contribution! |
9bbc2bb to
018ab9e
Compare
JZ-LIANG
approved these changes
Jun 25, 2021
| # global group | ||
| global_rank = self.worker_index() | ||
| global_world_size = self.worker_num() | ||
| # NOTE(wangxi): see sharding_optimizer |
Contributor
There was a problem hiding this comment.
or we could explain the parallel2id mapping here again?
Contributor
There was a problem hiding this comment.
pre-assign ring ids
mp: 0
sharding: 1
pure-dp: 2
global: 3
pp: >= 20
if one parallelism is not enable: -1
and only support parallelism hierarchy: mp --> sharding --> pp --> dp
done
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
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
New features
PR changes
APIs
Describe
c_softmax_with_cross_entropy API support static graph.
mp_layers接口支持静态图,mp_layers实现动静统一。
python -m paddle.distributed.launch --gpus 0,1,2,3 test.py