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
{{ message }}
Repository navigation
Add support for specifying env/requirements for sagemaker.mxnet.MXNet #284
This feature is already in the backlog and will be available later this year. In the meanwhile you can install the modules yourself (example extracted from #289):
What I really appreciate about sagemaker is its clean APIs that contribute to good coding habits, as well as the rich set of examples. I wish to see things in their proper places. Having pip install inside the codes is a bit of a stretch.
Would it just be a one-line code change in the backend?
Btw, one place where this idea fails in during inference with multiple processes. In that case, all parallel processes try to install at the same time.
Sorry not to update here with the completion of #446. As of now, you can now include a requirements.txt file in the same directory as the entry script, and it will be installed - but only if using our MXNet 1.3 images.
Sorry not to update here with the completion of #446. As of now, you can now include a requirements.txt file in the same directory as the entry script, and it will be installed - but only if using our MXNet 1.3 images.
Can you confirm this has been implemented? This functionality doesn't appear to be present in the code and doesn't work for me.
Sorry not to update here with the completion of #446. As of now, you can now include a requirements.txt file in the same directory as the entry script, and it will be installed - but only if using our MXNet 1.3 images.
Can you confirm this has been implemented? This functionality doesn't appear to be present in the code and doesn't work for me.
@kirkanderson It does work with MXNet 1.3 images (framework_version='1.3.0'). Be sure to specify the "source_dir" parameter. It should point to the source dir that contains the 'requirements.txt' file. I have verified that it works.
Activity
mvsusp commentedon Jul 14, 2018
Hi @YashalShakti,
This feature is already in the backlog and will be available later this year. In the meanwhile you can install the modules yourself (example extracted from #289):
Thanks for using SageMaker!
Best,
Márcio
yifeim commentedon Oct 24, 2018
Hope people still have this in their plans?
What I really appreciate about sagemaker is its clean APIs that contribute to good coding habits, as well as the rich set of examples. I wish to see things in their proper places. Having pip install inside the codes is a bit of a stretch.
Would it just be a one-line code change in the backend?
Thanks.
yifeim commentedon Oct 24, 2018
Btw, one place where this idea fails in during inference with multiple processes. In that case, all parallel processes try to install at the same time.
laurenyu commentedon Nov 21, 2018
Sorry not to update here with the completion of #446. As of now, you can now include a
requirements.txtfile in the same directory as the entry script, and it will be installed - but only if using our MXNet 1.3 images.kirkanderson commentedon Mar 5, 2019
Can you confirm this has been implemented? This functionality doesn't appear to be present in the code and doesn't work for me.
YashalKanungo commentedon May 19, 2019
@kirkanderson It does work with MXNet 1.3 images (framework_version='1.3.0'). Be sure to specify the "source_dir" parameter. It should point to the source dir that contains the 'requirements.txt' file. I have verified that it works.
yifeim commentedon May 21, 2019
Yes. This has been a very useful feature. Another notable convenience feature is hyperparameter in environmental variables. Thanks to everyone!
fix: fix tests due to latest server-side validations (aws#284)
fix: fix tests due to latest server-side validations (#284)
fix: fix tests due to latest server-side validations (aws#284)