Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create model dir to prevent issues with no code experience in SageMaker #675

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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