Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.34 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.34 KB

Running Theano on AWS Lambda

You can run Theano in AWS Lambda via SCAR using the grycap/theano Docker image, based on the bitnami/minideb:jessie one.

Note that this image does not have a C++ compiler and, therefore, Theano will be unable to execute optimized C-implementations and will default to Python implementations. Thus, performance will be severely degraded. However, including a C++ compiler will make this image unable to run on AWS

Usage in AWS Lambda via SCAR

You can run a container out of this image on AWS Lambda via SCAR using the following procedure:

  1. Create the Lambda function
scar init -f scar-theano.yaml
  1. Execute the Lambda function with an script to compile and run the application
scar run -f scar-theano.yaml -s theano-hw.sh

The first invocation will take considerably longer than the subsequent ones, where the container will be cached. You can modify the script and perform another scar run.

You can also run multiple concurrent invocations of this Lambda function to perform highly-parallel event-driven processing. See the SCAR Programming Model.