You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
It is expected that the requirements are installed.
Additional context
I first had the same issues as here, which is solved by the inference.py being be included in the model.tar.gz - but it also indicates that all files inside /opt/ml/model are removed when the image is being spun up. I suspect that requirements.txt is therefore also removed and first "recovered" again later, when the model.tar.gz is unpacked. This would explain why the requirements are never installed.
The text was updated successfully, but these errors were encountered:
Describe the bug
The packages in
requirements.txt
are not installed, when deploying a MultiDataModel with Sagemaker.To reproduce
Deploy a model to sagemaker that depends on
requirements.txt
installing specific packages, e.g. pandas.My architecture looks like this:
Expected behavior
It is expected that the requirements are installed.
Additional context
I first had the same issues as here, which is solved by the
inference.py
being be included in the model.tar.gz - but it also indicates that all files inside/opt/ml/model
are removed when the image is being spun up. I suspect thatrequirements.txt
is therefore also removed and first "recovered" again later, when the model.tar.gz is unpacked. This would explain why the requirements are never installed.The text was updated successfully, but these errors were encountered: