Deep Learning AMI
Developer Guide

Recommended CPU Instances

Whether you're on a budget, learning about deep learning, or just want to run a prediction service, you have many affordable options in the CPU category. Some frameworks take advantage of Intel's MKL DNN, which will speed up training and inference on C5 (not available in all regions), C4, and C3 CPU instance types. It will also speed up inference on GPU instance types.

  • Amazon EC2 C5 Instances have up to 72 Intel vCPUs.

  • Amazon EC2 C4 Instances have up to 36 Intel vCPUs.

  • Check out EC2 Instance Types and look for Compute Optimized to see the different CPU instance options.


C5 instances (not available in all regions) excel at scientific modelling, batch processing, distributed analytics, high-performance computing (HPC), and machine/deep learning inference.


If you plan to use Caffe, you should choose a GPU instance instead. On the DLAMI, Caffe only works with with GPU support, and cannot be run in CPU mode.

Next Up

Pricing for the DLAMI