Caffe

Caffe is a deep learning framework developed by the Berkeley Vision and Learning Center and by community contributors. Caffe employs a BSD 2-Clause License.

In the sections below, we provide example notebooks to demonstrate how to install Caffe on Databricks using Init Scripts and how to run example Caffe programs. See Integrating Deep Learning Libraries with Apache Spark for an example of integrating a deep learning library with Spark.

Note

This guide is not a comprehensive guide on Caffe. Please also refer to the Caffe website.

Install Caffe using an init script

Databricks recommends using Init Scripts to install Caffe to make it available on all cluster nodes. The example notebook below installs an init script that builds and installs Caffe from source with GPU support.

Use Caffe on a single node

To test and migrate single-machine Caffe workflows, you can start with a driver-only cluster on Databricks by setting the number of workers to zero. Though Apache Spark is not functional under this setting, it is a cost-effective way to run single-machine Caffe workflows.