batch-shipyard/recipes/Caffe-GPU
Fred Park 7f2200a31d
Update recipes to refer to platform image docs
- Resolves #186
2018-04-18 12:35:26 -07:00
..
config Update recipes SSH username 2017-11-13 09:25:20 -08:00
docker Update all recipes to use YAML (#122) 2017-10-03 10:04:03 -07:00
README.md Update recipes to refer to platform image docs 2018-04-18 12:35:26 -07:00

README.md

Caffe-GPU

This recipe shows how to run Caffe 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 a GPU enabled VM size. Because Caffe is a GPU-accelerated compute application, you should choose a GPU compute accelerated VM instance size.
  • vm_configuration is the VM configuration. Please select an appropriate platform_image with GPU as supported by Batch Shipyard.

Global Configuration

The global configuration should set the following properties:

  • docker_images array must have a reference to a valid Caffe GPU-enabled Docker image. Although you can use the official BVLC/caffe Docker images, for this recipe the alfpark/caffe:gpu contains all of the required files and scripts to run the MNIST convolutional example.

Jobs Configuration

The jobs configuration should set the following properties within the tasks array which should have a task definition containing:

  • docker_image should be the name of the Docker image for this container invocation, e.g., alfpark/caffe:gpu
  • command should contain the command to pass to the Docker run invocation. For the alfpark/caffe:gpu Docker image and to run the MNIST convolutional example on all available GPUs, we are using a run_mnist.sh helper script. Thus, the command would simply be: "/caffe/run_mnist.sh -gpu all"
  • gpu can be set to true, however, it is implicitly enabled by Batch Shipyard when executing on a GPU-enabled compute pool.

Dockerfile and supplementary files

The Dockerfile for the Docker image can be found here.

You must agree to the Caffe License prior to use.