05e9773741
- `remove_container_after_exit` is now defaulted enabled - Move to CentOS-HPC 7.3 for ib recipes |
||
---|---|---|
.. | ||
config | ||
docker | ||
README.md |
README.md
CNTK-GPU-Infiniband-IntelMPI
This recipe shows how to run CNTK on GPUs across Infiniband/RDMA enabled Azure VMs via Intel MPI.
Configuration
Please see refer to this set of sample configuration files for this recipe.
Pool Configuration
The pool configuration should enable the following properties:
vm_size
must beSTANDARD_NC24R
inter_node_communication_enabled
must be set totrue
max_tasks_per_node
must be set to 1 or omittedpublisher
should beOpenLogic
offer
should beCentOS-HPC
sku
should be7.3
Global Configuration
The global configuration should set the following properties:
docker_images
array must have a reference to a valid CNTK GPU-enabled Docker image that can be run with Intel MPI. Images denoted withgpu
andintelmpi
tags found in alfpark/cntk are compatible with Azure VMs with GPUs and RDMA. Images denoted withrefdata
tag suffixes found in alfpark/cntk can be used for this recipe which contains reference data for MNIST and CIFAR-10 examples. If you do not need this reference data then you can use the images without therefdata
suffix on the image tag. For this example,alfpark/cntk:2.1-gpu-1bitsgd-py36-cuda8-cudnn6-intelmpi-refdata
can be used.
MPI Jobs Configuration (MultiNode)
The jobs configuration should set the following properties within the tasks
array which should have a task definition containing:
image
should be the name of the Docker image for this container invocation. For this example, this should bealfpark/cntk:2.1-gpu-1bitsgd-py36-cuda8-cudnn6-intelmpi-refdata
. Please note that thedocker_images
in the Global Configuration should match this image name.command
should contain the command to pass to the Docker run invocation. For this example, we will run the ResNet-20 Distributed training on CIFAR-10 example in thealfpark/cntk:2.1-gpu-1bitsgd-py35-cuda8-cudnn6-refdata
Docker image. The applicationcommand
to run would be:"/cntk/run_cntk.sh -s /cntk/Examples/Image/Classification/ResNet/Python/TrainResNet_CIFAR10_Distributed.py -- --network resnet20 -q 1 -a 0 --datadir /cntk/Examples/Image/DataSets/CIFAR-10 --outputdir $AZ_BATCH_TASK_WORKING_DIR/output"
run_cntk.sh
has two parameters-s
for the Python script to run-w
for the working directory (not required for this example to run)--
parameters specified after this are given verbatim to the Python script
infiniband
must be set totrue
gpu
must be set totrue
. This enables invoking thenvidia-docker
wrapper.multi_instance
property must be definednum_instances
should be set topool_specification_vm_count_dedicated
,pool_specification_vm_count_low_priority
,pool_current_dedicated
, orpool_current_low_priority
coordination_command
should be unset ornull
resource_files
should be unset or the array can be empty
Dockerfile and supplementary files
Supplementary files can be found here.
You must agree to the following licenses prior to use: