[Sharding]: update config DOC#32299
Merged
ForFishes merged 3 commits intoPaddlePaddle:developfrom Apr 20, 2021
Merged
Conversation
|
Thanks for your contribution! |
c003485 to
69cedad
Compare
aafb3d4 to
ba7ee5e
Compare
TCChenlong
reviewed
Apr 17, 2021
| This configuration will affect the communication speed in sharding training, | ||
| and should be an empirical value decided by your model size and network topology. | ||
| sharding_segment_strategy(string): strategy used to segment the program(forward & backward operations). two strategise are | ||
| available: "segment_broadcast_MB" and "segment_anchors". segment is a concept used in sharding to overlap computation and |
Contributor
There was a problem hiding this comment.
segment_broadcast_MB 和 segment_anchors 的概念需要介绍一下吧?
| segment_broadcast_MB(float): segment by the parameters broadcast volume. sharding will introduce parameter broadcast operations into program, and | ||
| after every segment_broadcast_MB size parameter being broadcasted, the program will be cutted into one segment. | ||
| This configuration will affect the communication speed in sharding training, and should be an empirical value decided by your model size and network topology. | ||
| Only enable sharding_segment_strategy = segment_broadcast_MB. when Default is 32.0 . |
| segment_anchors(list): list of anchors used to segment the program, which allows a finner control of program segmentation. | ||
| this strategy is experimental by now. Only enable sharding_segment_strategy = segment_anchors. | ||
|
|
||
| sharding_degree(int): specific the number of gpus within each sharding parallelism group; and sharding will be turn off if sharding_degree=1. Default is 8. |
Contributor
There was a problem hiding this comment.
sharding_degree(int) -> sharding_degree(int, optional) 下同
| segment_anchors(list): list of anchors used to segment the program, which allows a finner control of program segmentation. | ||
| this strategy is experimental by now. Only enable sharding_segment_strategy = segment_anchors. | ||
|
|
||
| sharding_degree(int): specific the number of gpus within each sharding parallelism group; and sharding will be turn off if sharding_degree=1. Default is 8. |
Contributor
There was a problem hiding this comment.
sharding_degree(int) -> sharding_degree(int, optional)
| **Detailed arguments for pipeline_configs** | ||
|
|
||
| **micro_batch**: the number of small batches in each user defined batch | ||
| **micro_batch_size**: the number of small batches in each user defined batch |
Contributor
|
还有一点需要注意,文档中不要出现用户作为主语的情况,一般省略主语即可 |
Contributor
Author
updated~ |
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
Others
PR changes
Docs
Describe
sharding: update config DOC
英文

中文
