提交 62e582e8 编写于 作者: H Helin Wang

polish wording and grammar.

上级 7c066f6e
...@@ -15,13 +15,13 @@ ways from which user can obtain a model: ...@@ -15,13 +15,13 @@ ways from which user can obtain a model:
### Trainer Saving Model vs. Pservers Saving Model ### Trainer Saving Model vs. Pservers Saving Model
Both trainers and pservers have access to the model. So the model can Both trainers and pservers have access to the model. So the model can
be saved from a trainer or pservers. We need to decide on where the be saved from a trainer or pservers. We need to decide where the model
model is saved from. is saved from.
#### Dense Update vs. Sparse Update #### Dense Update vs. Sparse Update
There are two types of model update methods: dense update and sparse There are two types of model update methods: dense update and sparse
update (when the parameter is configured to be sparse). update (when the model parameter is configured to be sparse).
- Dense update - Dense update
...@@ -48,15 +48,15 @@ filesystem, making the checkpoint shards visible to the merge program. ...@@ -48,15 +48,15 @@ filesystem, making the checkpoint shards visible to the merge program.
The benefit of letting one trainer to save the model is it does not The benefit of letting one trainer to save the model is it does not
require a distributed filesystem. And it's reusing the same save model require a distributed filesystem. And it's reusing the same save model
logic when the trainer is training locally - except when doing sparse logic when training locally - except when doing sparse update, the
update, the trainer needs to download the entire model during the trainer needs to download the entire model during the saving process.
saving process.
#### Conclusion #### Conclusion
Given trainer saving model does not require a distributed filesystem, Given trainer saving model does not require a distributed filesystem,
and is an intuitive extension to training locally, we decide to let and is an intuitive extension to trainer saving model when training
the trainer save the model. locally, we decide to let the trainer save the model when doing
distributed training.
### Convert Model from Checkpoint ### Convert Model from Checkpoint
...@@ -84,16 +84,16 @@ save the model. ...@@ -84,16 +84,16 @@ save the model.
Each trainer will be given the directory to save the model. The Each trainer will be given the directory to save the model. The
elected trainer will save the model to elected trainer will save the model to
`given-directory/trainerID`. Since the tainerID is unique, this would `given-directory/trainerID`. Since the trainer ID is unique, this
prevent concurrent save to the same file when multiple trainers are would prevent concurrent save to the same file when multiple trainers
elected to save the model when split-brain problem happens. are elected to save the model when split-brain problem happens.
### What Happens When Model Is Saving ### What Happens When Model Is Saving
It takes some time to save model, we need to define what will happen It takes some time to save model, we need to define what will happen
when save model is taking place. when save model is taking place.
When saving a dense model, the trainer uses the local model. Pservers When doing dense update, the trainer uses the local model. Pservers
does not need to pause model update. does not need to pause model update.
When doing sparse update. The trainer needs to download the entire When doing sparse update. The trainer needs to download the entire
...@@ -103,7 +103,7 @@ download finishes. Otherwise, the trainer gets a model that is ...@@ -103,7 +103,7 @@ download finishes. Otherwise, the trainer gets a model that is
"polluted": some part of the model is old, some part of the model is "polluted": some part of the model is old, some part of the model is
new. new.
It's unclear that the "polluted" model will be inferiod due to the It's unclear that the "polluted" model will be inferior due to the
stochastic nature of deep learning, and pausing the model update will stochastic nature of deep learning, and pausing the model update will
add more complexity to the system. Since supporting sparse update is a add more complexity to the system. Since supporting sparse update is a
TODO item. We defer the evaluation of pause the model update or not TODO item. We defer the evaluation of pause the model update or not
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册