Skip to content

Instantly share code, notes, and snippets.

@shashankprasanna
Created March 14, 2020 00:17
Show Gist options
  • Save shashankprasanna/7880d6de03abc88d5bc518a8d2a572a0 to your computer and use it in GitHub Desktop.
Save shashankprasanna/7880d6de03abc88d5bc518a8d2a572a0 to your computer and use it in GitHub Desktop.
from sagemaker.tensorflow import TensorFlow
hvd_estimator = TensorFlow(entry_point = 'cifar10-tf-horovod-sagemaker.py',
source_dir = 'code',
output_path = output_path + '/',
code_location = output_path,
role = role,
train_instance_count = hvd_instance_count,
train_instance_type = hvd_instance_type,
train_volume_size = 50,
framework_version = '1.15',
py_version = 'py3',
script_mode = True,
metric_definitions = metric_definitions,
hyperparameters = hyperparameters,
distributions = {'mpi': {
'enabled' : True,
'processes_per_host': hvd_processes_per_host,
'custom_mpi_options': '-verbose --NCCL_DEBUG=INFO -x OMPI_MCA_btl_vader_single_copy_mechanism=none'
}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment