Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiDataModel fails at installing requirements.txt #105

Open
EliasWiegandt opened this issue Jul 23, 2021 · 0 comments
Open

MultiDataModel fails at installing requirements.txt #105

EliasWiegandt opened this issue Jul 23, 2021 · 0 comments

Comments

@EliasWiegandt
Copy link

EliasWiegandt commented Jul 23, 2021

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:

model.tar.gz/
| - ....
| - code/
  | - inference.py
  | - requirements.txt

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant