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

[huggingface] Add OSS licenses #5

Merged
merged 1 commit into from
May 31, 2023
Merged
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
13 changes: 13 additions & 0 deletions huggingface/pytorch/tgi/docker/0.6.0/py3/cu118/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
libssl-dev \
ca-certificates \
make \
unzip \
curl \
&& rm -rf /var/lib/apt/lists/*

# Copy conda with PyTorch installed
Expand Down Expand Up @@ -171,6 +173,17 @@ FROM base as sagemaker
COPY --chmod=775 sagemaker-entrypoint.sh entrypoint.sh
RUN sed -i '7 i export MODEL_ID="${HF_MODEL_ID}"' entrypoint.sh

RUN HOME_DIR=/root && \
pip install requests && \
curl -o ${HOME_DIR}/oss_compliance.zip https://aws-dlinfra-utilities.s3.amazonaws.com/oss_compliance.zip && \
unzip ${HOME_DIR}/oss_compliance.zip -d ${HOME_DIR}/ && \
cp ${HOME_DIR}/oss_compliance/test/testOSSCompliance /usr/local/bin/testOSSCompliance && \
chmod +x /usr/local/bin/testOSSCompliance && \
chmod +x ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh && \
${HOME_DIR}/oss_compliance/generate_oss_compliance.sh ${HOME_DIR} python && \
rm -rf ${HOME_DIR}/oss_compliance*
RUN curl -o /root/THIRD-PARTY-LICENSES https://publish.djl.ai/dlc-licenses/huggingface/tgi-0.6.0/THIRD-PARTY-LICENSES

ENTRYPOINT ["./entrypoint.sh"]

LABEL dlc_major_version="1"
Expand Down