Why do apps using pytorch get size errors when deployed on heroku?

When deploying an api using pytorch to heroku, I get Compiled slug size: XXX M is too large. What should I do?

Hi Yuhske,

Are you using the pytorch quantization API? How large is your model? Without further information it’ll be difficult to identify what the issue is. An alternative is to maybe solve this from the heroku side, e.g. I found some settings you might be able to try here: ruby on rails - Heroku: Compiled Slug Size is too large - Stack Overflow.