Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
deepspeed
Commits
fafc62fe
"tests/vscode:/vscode.git/clone" did not exist on "5ffb73d4aeac9eaef8366d7b21872d64009bd1c7"
Unverified
Commit
fafc62fe
authored
Feb 27, 2020
by
Jeff Rasley
Committed by
GitHub
Feb 27, 2020
Browse files
MPI compatibility doc update (#111)
* add text about mpirun
parent
7e813283
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
README.md
README.md
+20
-0
No files found.
README.md
View file @
fafc62fe
...
...
@@ -367,6 +367,26 @@ deepspeed --include="worker-2:0,1" \
--deepspeed
--deepspeed_config
ds_config.json
```
### MPI Compatibility
As described above, DeepSpeed provides its own parallel launcher to help launch
multi-node/multi-gpu training jobs. If you prefer to launch your training job
using MPI (e.g., mpirun), we provide support for this. It should be noted that
DeepSpeed will still use the torch distributed NCCL backend and
*not*
the MPI
backend. To launch your training job with mpirun + DeepSpeed you simply pass us
an additional flag
`--deepspeed_mpi`
. DeepSpeed will then use
[
mpi4py
](
https://pypi.org/project/mpi4py/
)
to discover the MPI environment (e.g.,
rank, world size) and properly initialize torch distributed for training. In this
case you will explicitly invoke
`python`
to launch your model script instead of using
the
`deepspeed`
launcher, here is an example:
```
bash
mpirun <mpi-args> python
\
<client_entry.py> <client args>
\
--deepspeed_mpi
--deepspeed
--deepspeed_config
ds_config.json
```
If you want to use this feature of DeepSpeed, please ensure that mpi4py is
installed via
`pip install mpi4py`
.
## Resource Configuration (single-node)
In the case that we are only running on a single node (with one or more GPUs)
DeepSpeed
*does not*
require a hostfile as described above. If a hostfile is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment