the deployment to Amazon Sagemaker seems to be broken.
When creating a Sagemaker instance from the Cloudformation Stack, the environment comes with package versions that are not compatible with the current sagemaker package.
e.g. requests=2.22.0 but sagemaker needs <=2.20.0.
I have downgraded the necessary packages, but now when trying to build the model as explained in the documentation, the deployment fails, as
load_learner cannot be found, although fastai is installed.
algo-1-k8580_1 | Successfully built serve algo-1-k8580_1 | Installing collected packages: serve algo-1-k8580_1 | Successfully installed serve-1.0.0 algo-1-k8580_1 | You are using pip version 18.1, however version 19.2.1 is available. algo-1-k8580_1 | You should consider upgrading via the 'pip install --upgrade pip' command. algo-1-k8580_1 | [2019-07-25 07:47:45 +0000]  [ERROR] Error handling request /ping algo-1-k8580_1 | Traceback (most recent call last): algo-1-k8580_1 | File "/usr/local/lib/python3.6/dist-packages/sagemaker_containers/_functions.py", line 85, in wrapper algo-1-k8580_1 | return fn(*args, **kwargs) algo-1-k8580_1 | File "/usr/local/lib/python3.6/dist-packages/serve.py", line 14, in model_fn algo-1-k8580_1 | learn = load_learner(model_dir, fname='resnet50.pkl') algo-1-k8580_1 | NameError: name 'load_learner' is not defined
I can’t figure out how to solve it. Any ideas?