I've been using GAE for awhile without any issues. Only recent change is that I added Spacy along with a model I trained.
When I run locally with the dev_appserver, the app consumes about 153 MB. After deployment, I get memory exceeded errors. Even with the F4_1G instance, I exceed the memory:
Exceeded hard memory limit of 1228 MB with 1280 MB after servicing 0 requests total. Consider setting a larger instance class in app.yaml.
The deployment works if I import Spacy and don't load my model (the instance has about 200MB) so Spacy itself isn't the problem, but when I load my model with spacy.load() the memory then exceeds the limit. Note that this happens before I even use my Spacy model so just loading the model causes the problem.
My Spacy model is a tagger and parser that takes up 27 MB on disk. I can't understand why the memory requirements would be so much larger on app engine than on my Mac.
Looks like others have been able to run Spacy on app engine. Any idea what I could be doing wrong?