Skip to content

Extra lib directory when adding dependencies for PyTorchModel #1832

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

Open
setu4993 opened this issue Aug 14, 2020 · 1 comment
Open

Extra lib directory when adding dependencies for PyTorchModel #1832

setu4993 opened this issue Aug 14, 2020 · 1 comment
Assignees

Comments

@setu4993
Copy link

SDK Version: 2.3.0
PyTorch Framework version: 1.5
Python version: 3

When trying to deploy create a PyTorchModel object with dependencies, there's an extra intermediate lib directory being created.

Expected:

>>> opt/ml/code
>>>     |------ train.py
>>>     |------ common
>>>     |------ virtual-env

What's happening:

>>> opt/ml/code
>>>     |------ train.py
>>>     |------lib/
>>>                |------ common
>>>                |------ virtual-env

I found this line that causes this. Based on this, I think it should only occur for multi-model servers, but in my case it is happening while trying to use a single model.

@setu4993
Copy link
Author

@metrizable : I think this should be tagged as a bug since documentation points to the expected being what users should expect.

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

No branches or pull requests

4 participants