Skip to content

doc: fix documentation to provide working example. #1387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/using_tf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,19 @@ Training with ``MPI`` is configured by specifying following fields in ``distribu
command executed by SageMaker to launch distributed horovod training.


In the below example we create an estimator to launch Horovod distributed training with 2 processes on one host:
In the below example we create an estimator to launch Horovod distributed training with 4 processes on one host:

.. code:: python

from sagemaker.tensorflow import TensorFlow

tf_estimator = TensorFlow(entry_point='tf-train.py', role='SageMakerRole',
train_instance_count=1, train_instance_type='ml.p2.xlarge',
framework_version='1.12', py_version='py3',
train_instance_count=1, train_instance_type='ml.p3.8xlarge',
framework_version='2.1.0', py_version='py3',
distributions={
'mpi': {
'enabled': True,
'processes_per_host': 2,
'processes_per_host': 4,
'custom_mpi_options': '--NCCL_DEBUG INFO'
}
})
Expand Down