Skip to content

Commit 8ebaa86

Browse files
sanity check ec2
1 parent 417981f commit 8ebaa86

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

vllm/x86_64/gpu/Dockerfile

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,7 @@ COPY bash_telemetry.sh /usr/local/bin/bash_telemetry.sh
1919

2020
RUN chmod +x /usr/local/bin/deep_learning_container.py && \
2121
chmod +x /usr/local/bin/bash_telemetry.sh && \
22-
echo 'source /usr/local/bin/bash_telemetry.sh' >> /etc/bash.bashrc
23-
24-
# ====================== ec2 =========================================
25-
FROM base AS vllm-ec2
26-
27-
ARG EFA_VERSION="1.43.3"
28-
29-
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/amazon/ofi-nccl/lib/x86_64-linux-gnu:/opt/amazon/openmpi/lib:/opt/amazon/efa/lib:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}" \
30-
PATH="/opt/amazon/openmpi/bin:/opt/amazon/efa/bin:/usr/local/cuda/bin:${PATH}"
31-
32-
# Install EFA
33-
COPY install_efa.sh install_efa.sh
34-
RUN bash install_efa.sh ${EFA_VERSION} && \
35-
rm install_efa.sh && \
22+
echo 'source /usr/local/bin/bash_telemetry.sh' >> /etc/bash.bashrc && \
3623
# OSS compliance and software update
3724
apt-get update && \
3825
apt-get upgrade -y && \
@@ -54,11 +41,21 @@ RUN bash install_efa.sh ${EFA_VERSION} && \
5441
rm -rf /var/lib/apt/lists/* && \
5542
rm -rf /root/.cache | true
5643

44+
# ====================== ec2 =========================================
45+
FROM base AS vllm-ec2
46+
47+
ARG EFA_VERSION="1.43.3"
48+
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/amazon/ofi-nccl/lib/x86_64-linux-gnu:/opt/amazon/openmpi/lib:/opt/amazon/efa/lib:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}" \
49+
PATH="/opt/amazon/openmpi/bin:/opt/amazon/efa/bin:/usr/local/cuda/bin:${PATH}"
5750

51+
# Install EFA
52+
COPY install_efa.sh install_efa.sh
5853
COPY dockerd_entrypoint.sh /usr/local/bin/dockerd_entrypoint.sh
59-
RUN chmod +x /usr/local/bin/dockerd_entrypoint.sh
6054

61-
RUN mkdir -p /tmp/nvjpeg \
55+
RUN bash install_efa.sh ${EFA_VERSION} && \
56+
rm install_efa.sh && \
57+
chmod +x /usr/local/bin/dockerd_entrypoint.sh && \
58+
mkdir -p /tmp/nvjpeg \
6259
&& cd /tmp/nvjpeg \
6360
&& wget https://developer.download.nvidia.com/compute/cuda/redist/libnvjpeg/linux-x86_64/libnvjpeg-linux-x86_64-12.4.0.76-archive.tar.xz \
6461
&& tar -xvf libnvjpeg-linux-x86_64-12.4.0.76-archive.tar.xz \
@@ -73,7 +70,6 @@ RUN mkdir -p /tmp/nvjpeg \
7370

7471
ENTRYPOINT ["/usr/local/bin/dockerd_entrypoint.sh"]
7572
# ====================== sagemaker =========================================
76-
7773
FROM base AS vllm-sagemaker
7874

7975
COPY sagemaker_entrypoint.sh /usr/local/bin/sagemaker_entrypoint.sh

0 commit comments

Comments
 (0)