batch-shipyard/recipes/Keras+Theano-GPU
Fred Park 05e9773741 Update recipes
- `remove_container_after_exit` is now defaulted enabled
- Move to CentOS-HPC 7.3 for ib recipes
2017-08-03 19:13:57 -07:00
..
config Update recipes 2017-08-03 19:13:57 -07:00
docker Add Keras+Theano recipes 2016-11-13 01:43:01 -08:00
README.md Allow CentOS 7.3 on NC/NV 2017-07-06 11:12:05 -07:00

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 of STANDARD_NC6, STANDARD_NC12, STANDARD_NC24, STANDARD_NV6, STANDARD_NV12, STANDARD_NV24. NC VM instances feature K80 GPUs for GPU compute acceleration while NV VM instances feature M60 GPUs for visualization workloads. Because Caffe is a GPU-accelerated compute application, it is best to choose NC VM instances.
  • vm_configuration is the VM configuration
    • platform_image specifies to use a platform image
      • publisher should be Canonical or OpenLogic.
      • offer should be UbuntuServer for Canonical or CentOS for OpenLogic.
      • sku should be 16.04-LTS for Ubuntu or 7.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 the alfpark/keras:gpu Docker image and to run the MNIST convolutional example, the command 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: