Skip to content

Commit

Permalink
Create model dir to prevent issues with no code experience in SageMaker
Browse files Browse the repository at this point in the history
  • Loading branch information
siddvenk committed Apr 28, 2023
1 parent 471fec7 commit acd6631
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion serving/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ FROM ubuntu:20.04 AS base
ARG djl_version=0.23.0~SNAPSHOT

COPY scripts scripts/
RUN mkdir -p /opt/djl/conf
RUN mkdir -p /opt/djl/conf && \
mkdir -p /opt/ml/model
COPY config.properties /opt/djl/conf/
RUN scripts/install_djl_serving.sh $djl_version && \
scripts/install_s5cmd.sh x64 && \
Expand Down
3 changes: 2 additions & 1 deletion serving/docker/aarch64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ CMD ["serve"]

COPY scripts scripts/
RUN mkdir -p /opt/djl/conf && \
mkdir -p /opt/djl/deps
mkdir -p /opt/djl/deps && \
mkdir -p /opt/ml/model
COPY config.properties /opt/djl/conf/

RUN scripts/install_djl_serving.sh $djl_version && \
Expand Down
3 changes: 2 additions & 1 deletion serving/docker/deepspeed.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ CMD ["serve"]
COPY scripts scripts/
RUN mkdir -p /opt/djl/conf && \
mkdir -p /opt/djl/deps && \
mkdir -p /opt/djl/partition
mkdir -p /opt/djl/partition && \
mkdir -p /opt/ml/model
COPY config.properties /opt/djl/conf/config.properties
COPY partition /opt/djl/partition

Expand Down
3 changes: 2 additions & 1 deletion serving/docker/fastertransformer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ CMD ["serve"]
COPY scripts scripts/
RUN mkdir -p /opt/djl/conf && \
mkdir -p /opt/djl/deps && \
mkdir -p /opt/djl/partition
mkdir -p /opt/djl/partition && \
mkdir -p /opt/ml/model
COPY config.properties /opt/djl/conf/config.properties
COPY partition /opt/djl/partition

Expand Down
3 changes: 2 additions & 1 deletion serving/docker/pytorch-cu118.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ ARG torch_version=2.0.0
ARG torch_vision_version=0.15.1
ARG python_version=3.9

RUN mkdir -p /opt/djl/conf
RUN mkdir -p /opt/djl/conf && \
mkdir -p /opt/ml/model
COPY config.properties /opt/djl/conf/
COPY dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh

Expand Down
3 changes: 2 additions & 1 deletion serving/docker/pytorch-inf1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ CMD ["serve"]

COPY scripts scripts/
RUN mkdir -p /opt/djl/conf && \
mkdir -p /opt/djl/deps
mkdir -p /opt/djl/deps && \
mkdir -p /opt/ml/model
COPY config.properties /opt/djl/conf/
RUN scripts/install_djl_serving.sh $djl_version && \
mkdir -p /opt/djl/bin && cp scripts/telemetry.sh /opt/djl/bin && \
Expand Down
3 changes: 2 additions & 1 deletion serving/docker/pytorch-inf2.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ CMD ["serve"]

COPY scripts scripts/
RUN mkdir -p /opt/djl/conf && \
mkdir -p /opt/djl/deps
mkdir -p /opt/djl/deps && \
mkdir -p /opt/ml/model
COPY config.properties /opt/djl/conf/
RUN mkdir -p /opt/djl/bin && cp scripts/telemetry.sh /opt/djl/bin && \
echo "${djl_version} inf2" > /opt/djl/bin/telemetry && \
Expand Down

0 comments on commit acd6631

Please sign in to comment.