05e9773741
- `remove_container_after_exit` is now defaulted enabled - Move to CentOS-HPC 7.3 for ib recipes |
||
---|---|---|
.. | ||
config | ||
docker | ||
README.md |
README.md
Keras+Theano-GPU
This recipe shows how to run Keras with the Theano backend on GPUs using N-series Azure VM instances in an Azure Batch compute pool.
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 be one ofSTANDARD_NC6
,STANDARD_NC12
,STANDARD_NC24
,STANDARD_NV6
,STANDARD_NV12
,STANDARD_NV24
.NC
VM instances feature K80 GPUs for GPU compute acceleration whileNV
VM instances feature M60 GPUs for visualization workloads. Because Caffe is a GPU-accelerated compute application, it is best to chooseNC
VM instances.vm_configuration
is the VM configurationplatform_image
specifies to use a platform imagepublisher
should beCanonical
orOpenLogic
.offer
should beUbuntuServer
for Canonical orCentOS
for OpenLogic.sku
should be16.04-LTS
for Ubuntu or7.3
for CentOS.
Global Configuration
The global configuration should set the following properties:
docker_images
array must have a reference to a valid Keras+Theano GPU-enabled Docker image. alfpark/keras:gpu can be used for this recipe.
Jobs Configuration
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, e.g.,alfpark/keras:gpu
command
should contain the command to pass to the Docker run invocation. For thealfpark/keras:gpu
Docker image and to run the MNIST convolutional example, thecommand
would simply be:"python /keras/examples/mnist_cnn.py"
Dockerfile and supplementary files
The Dockerfile
for the Docker image can be found here.
You must agree to the following licenses prior to use: