Skip to content

Commit ced40f5

Browse files
authored
Upgrade MMS to v1.0.7 and reduce CUDA packages (#6)
1 parent 79fa1f8 commit ced40f5

File tree

4 files changed

+12
-24
lines changed

4 files changed

+12
-24
lines changed

docker/1.2.0/py2/Dockerfile.cpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ENV PATH /opt/conda/bin:$PATH
4343

4444
ARG PYTORCH_VERSION=1.2.0
4545
ARG TORCHVISION_VERSION=0.4.0
46-
ARG MMS_VERSION=1.0.5
46+
ARG MMS_VERSION=1.0.7
4747
RUN conda install -c conda-forge awscli==1.16.210 opencv==4.0.1 && \
4848
conda install -y scikit-learn==0.20.3 \
4949
pandas==0.24.2 \
@@ -53,7 +53,7 @@ RUN conda install -c conda-forge awscli==1.16.210 opencv==4.0.1 && \
5353
conda install pytorch==$PYTORCH_VERSION torchvision==$TORCHVISION_VERSION cpuonly -c pytorch && \
5454
conda clean -ya && \
5555
pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org && \
56-
pip install --pre -U mxnet-model-server
56+
pip install mxnet-model-server==$MMS_VERSION
5757

5858
RUN useradd -m model-server \
5959
&& mkdir -p /home/model-server/tmp \
@@ -75,4 +75,4 @@ ENV SAGEMAKER_SERVING_MODULE sagemaker_pytorch_serving_container.serving:main
7575
EXPOSE 8080 8081
7676
ENV TEMP=/home/model-server/tmp
7777
ENTRYPOINT ["python", "/usr/local/bin/dockerd-entrypoint.py"]
78-
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]
78+
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]

docker/1.2.0/py2/Dockerfile.gpu

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ RUN apt-get update && apt-get install -y --allow-downgrades --allow-change-held
66
build-essential \
77
ca-certificates \
88
cmake \
9-
cuda-command-line-tools-10-0 \
10-
cuda-cublas-10-0 \
11-
cuda-cufft-10-0 \
12-
cuda-curand-10-0 \
13-
cuda-cusolver-10-0 \
14-
cuda-cusparse-10-0 \
159
libgomp1 \
1610
libibverbs-dev \
1711
curl \
@@ -59,7 +53,7 @@ ENV PATH /opt/conda/bin:$PATH
5953

6054
ARG PYTORCH_VERSION=1.2.0
6155
ARG TORCHVISION_VERSION=0.4.0
62-
ARG MMS_VERSION=1.0.5
56+
ARG MMS_VERSION=1.0.7
6357
RUN conda install -c pytorch magma-cuda100 && \
6458
conda install -c conda-forge awscli==1.16.210 opencv==4.0.1 && \
6559
conda install -y scikit-learn==0.20.3 \
@@ -71,7 +65,7 @@ RUN conda install -c pytorch magma-cuda100 && \
7165
conda clean -ya && \
7266
/opt/conda/bin/conda config --set ssl_verify False && \
7367
pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org && \
74-
pip install --pre -U mxnet-model-server
68+
pip install mxnet-model-server==$MMS_VERSION
7569

7670
RUN useradd -m model-server \
7771
&& mkdir -p /home/model-server/tmp \
@@ -102,4 +96,4 @@ ENV SAGEMAKER_SERVING_MODULE sagemaker_pytorch_serving_container.serving:main
10296
EXPOSE 8080 8081
10397
ENV TEMP=/home/model-server/tmp
10498
ENTRYPOINT ["python", "/usr/local/bin/dockerd-entrypoint.py"]
105-
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]
99+
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]

docker/1.2.0/py3/Dockerfile.cpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ENV PATH /opt/conda/bin:$PATH
4343

4444
ARG PYTORCH_VERSION=1.2.0
4545
ARG TORCHVISION_VERSION=0.4.0
46-
ARG MMS_VERSION=1.0.5
46+
ARG MMS_VERSION=1.0.7
4747
RUN conda install -c conda-forge awscli==1.16.210 opencv==4.0.1 && \
4848
conda install -y scikit-learn==0.21.2 \
4949
pandas==0.25.0 \
@@ -54,7 +54,7 @@ RUN conda install -c conda-forge awscli==1.16.210 opencv==4.0.1 && \
5454
conda clean -ya && \
5555
pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org && \
5656
ln -s /opt/conda/bin/pip /usr/local/bin/pip3 && \
57-
pip install --pre -U mxnet-model-server
57+
pip install mxnet-model-server==$MMS_VERSION
5858

5959
RUN useradd -m model-server \
6060
&& mkdir -p /home/model-server/tmp \
@@ -76,4 +76,4 @@ ENV SAGEMAKER_SERVING_MODULE sagemaker_pytorch_serving_container.serving:main
7676
EXPOSE 8080 8081
7777
ENV TEMP=/home/model-server/tmp
7878
ENTRYPOINT ["python", "/usr/local/bin/dockerd-entrypoint.py"]
79-
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]
79+
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]

docker/1.2.0/py3/Dockerfile.gpu

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ RUN apt-get update && apt-get install -y --allow-downgrades --allow-change-held
66
build-essential \
77
ca-certificates \
88
cmake \
9-
cuda-command-line-tools-10-0 \
10-
cuda-cublas-10-0 \
11-
cuda-cufft-10-0 \
12-
cuda-curand-10-0 \
13-
cuda-cusolver-10-0 \
14-
cuda-cusparse-10-0 \
159
libgomp1 \
1610
libibverbs-dev \
1711
curl \
@@ -59,7 +53,7 @@ ENV PATH /opt/conda/bin:$PATH
5953

6054
ARG PYTORCH_VERSION=1.2.0
6155
ARG TORCHVISION_VERSION=0.4.0
62-
ARG MMS_VERSION=1.0.5
56+
ARG MMS_VERSION=1.0.7
6357
RUN conda install -c pytorch magma-cuda100 && \
6458
conda install -c conda-forge awscli==1.16.210 opencv==4.0.1 && \
6559
conda install -y scikit-learn==0.21.2 \
@@ -72,7 +66,7 @@ RUN conda install -c pytorch magma-cuda100 && \
7266
/opt/conda/bin/conda config --set ssl_verify False && \
7367
pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org && \
7468
ln -s /opt/conda/bin/pip /usr/local/bin/pip3 && \
75-
pip install --pre -U mxnet-model-server
69+
pip install mxnet-model-server==$MMS_VERSION
7670

7771
RUN useradd -m model-server \
7872
&& mkdir -p /home/model-server/tmp \
@@ -94,4 +88,4 @@ ENV SAGEMAKER_SERVING_MODULE sagemaker_pytorch_serving_container.serving:main
9488
EXPOSE 8080 8081
9589
ENV TEMP=/home/model-server/tmp
9690
ENTRYPOINT ["python", "/usr/local/bin/dockerd-entrypoint.py"]
97-
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]
91+
CMD ["mxnet-model-server", "--start", "--mms-config", "/home/model-server/config.properties"]

0 commit comments

Comments
 (0)