title: How to deploy large python packages with AWS Lambda?
body: <p>I need some advice. </p>
  
  <p>I trained an image classifier using Tensorflow and wanted to deploy it to AWS Lambda using <a href="https://serverless.com/" rel="nofollow noreferrer">serverless</a>. The directory includes the model, some python modules including tensorflow and numpy, and python code. The size of the complete folder before unzipping is 340 MB, which gets rejected by AWS lambda with an error message saying <code>"The unzipped state must be smaller than 262144000 bytes"</code>.</p>
  
  <p>How should I approach this? Can I not deploy packages like these on AWS Lambda?</p>
  
  <p>Note: In the requirements.txt file, there are 2 modules listed including numpy and tensorflow. (Tensorflow is a big module)</p>