-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass model directory as input to torchserve (#118)
* update torchserve * remove repackaging fn * update assert check * update torchserve in general dockerfile * test with dlc dockerfiles * uninstall auto confirmation * uninstall auto confirmation * run only gpu tests * run all integ tests * set default service handler in ts config file * test * test * revert passing handler service to ts config * Revert "revert passing handler service to ts config" This reverts commit d62f5ff. * add pytest logs * build/push dockerfile * pass handler fn * skip unit test * add logging to sm tests * test * test * test * fix flake8 * fix unit test * test gpu sm generic * skip sm integration tests with generic image * test generic image * enable all tests
- Loading branch information
Showing
6 changed files
with
38 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
ARG region | ||
FROM 763104351884.dkr.ecr.$region.amazonaws.com/pytorch-inference:1.10.2-cpu-py38-ubuntu20.04-sagemaker | ||
|
||
RUN pip uninstall torchserve -y && \ | ||
pip install torchserve-nightly==2022.3.23.post2 | ||
|
||
COPY dist/sagemaker_pytorch_inference-*.tar.gz /sagemaker_pytorch_inference.tar.gz | ||
RUN pip install --upgrade --no-cache-dir /sagemaker_pytorch_inference.tar.gz && \ | ||
rm /sagemaker_pytorch_inference.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
ARG region | ||
FROM 763104351884.dkr.ecr.$region.amazonaws.com/pytorch-inference:1.10.2-gpu-py38-cu113-ubuntu20.04-sagemaker | ||
|
||
RUN pip uninstall torchserve -y && \ | ||
pip install torchserve-nightly==2022.3.23.post2 | ||
|
||
COPY dist/sagemaker_pytorch_inference-*.tar.gz /sagemaker_pytorch_inference.tar.gz | ||
RUN pip install --upgrade --no-cache-dir /sagemaker_pytorch_inference.tar.gz && \ | ||
rm /sagemaker_pytorch_inference.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters