title: Heroku: slug size too large after installing Pytorch
body: <p>I've been getting the slug size too large warning (<code>Compiled slug size: 789.8M is too large (max is 500M)</code>) from Heroku and I can't figure out why, as my model size (cnn.pth below) is fairly small and my file directory is only 1.1mb in total: <a href="https://i.stack.imgur.com/1YJoW.png" rel="noreferrer">screenshot of directory.</a></p>
  
  <p>It seems like the size increase is caused by running <code>pipenv install torch</code>, as the slug size was 89.1mb before installing <code>torch</code> and 798.8mb after. </p>
  
  <p>My Pipfile currently has these packages installed:</p>
  
  <pre><code>[packages]
  flask = "*"
  flask-sqlalchemy = "*"
  psycopg2 = "*"
  psycopg2-binary = "*"
  requests = "*"
  numpy = "*"
  gunicorn = "*"
  pillow = "*"
  torch = "*"
  </code></pre>
  
  <p>Is there any workaround for this?</p>
  
  <p>Edit: I'm running Mac OSX 10.10.5, using <code>Flask</code> and <code>pipenv</code>. </p>