Explicitly point out where should we set the random seed (#3839)
* Explicitly point out where should we set the random seed * Update docs/source/multi_gpu.rst Co-authored-by: Jeff Yang <ydcjeff@outlook.com> Co-authored-by: Qinru Li <q4li@eng.ucsd.edu> Co-authored-by: William Falcon <waf2107@columbia.edu> Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
This commit is contained in:
parent
1f8ff7c48c
commit
a3503ce3fd
|
@ -260,7 +260,7 @@ Distributed Data Parallel
|
|||
|
||||
3. Each process inits the model.
|
||||
|
||||
.. note:: Make sure to set the random seed so that each model initializes with the same weights.
|
||||
.. note:: Make sure to set the random seed before the instantiation of a ``Trainer()`` so that each model initializes with the same weights.
|
||||
|
||||
4. Each process performs a full forward and backward pass in parallel.
|
||||
|
||||
|
|
Loading…
Reference in New Issue