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 8d8db5a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 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
1 change: 1 addition & 0 deletions serving/docker/pytorch-cu118.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ COPY scripts scripts/
RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh && \
scripts/install_djl_serving.sh $djl_version && \
mkdir -p /opt/djl/bin && cp scripts/telemetry.sh /opt/djl/bin && \
mkdir -p /opt/ml/model && \
echo "${djl_version} pytorchgpu" > /opt/djl/bin/telemetry && \
scripts/install_djl_serving.sh $djl_version ${torch_version} && \
scripts/install_python.sh ${python_version} && \
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 8d8db5a

Please sign in to comment.