@@ -15,27 +15,19 @@ RUN apt-get update && apt-get install -y \
1515WORKDIR /workspace/tpu_inference
1616COPY . .
1717RUN export TPU_INFERENCE_VERSION=$(pip index versions tpu-inference --pre 2>/dev/null | grep -oE "[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+" | head -n 1) && \
18- echo -n "$TPU_INFERENCE_VERSION" > /tmp/tpu_inference_version && \
19- echo "Installing tpu-inference version: $TPU_INFERENCE_VERSION"
18+ echo -n "${TPU_INFERENCE_VERSION}" > /tmp/tpu_inference_version
2019
2120# Clone vLLM
22- WORKDIR /workspace/vllm_build
21+ WORKDIR /workspace/vllm
2322ARG VLLM_REPO=https://github.com/vllm-project/vllm.git
24- RUN git clone $VLLM_REPO /workspace/vllm_build
23+ RUN git clone $VLLM_REPO /workspace/vllm
2524RUN pip install build
2625RUN export TPU_INFERENCE_VERSION=$(cat /tmp/tpu_inference_version) && \
27- echo "Using tpu-inference version: ${TPU_INFERENCE_VERSION}" && \
2826 sed -i "s/^tpu-inference==.*/tpu-inference==${TPU_INFERENCE_VERSION}/" requirements/tpu.txt && \
29- echo "Starting build.sh" && \
3027 bash tools/vllm-tpu/build.sh ${TPU_INFERENCE_VERSION}
3128
3229# Install vllm-tpu from wheel
33- RUN echo "pip installing vllm-tpu" && \
34- pip install --no-cache-dir dist/*.whl
35- # RUN export TPU_INFERENCE_VERSION=$(cat /tmp/tpu_inference_version) && \
36- # export PIP_VERSION=$(echo "$TPU_INFERENCE_VERSION" | sed 's/^v//') && \
37- # echo "Installing vllm-tpu version: $PIP_VERSION" && \
38- # python3 -m pip install -v --no-cache-dir "vllm-tpu==$PIP_VERSION"
30+ RUN pip install --no-cache-dir dist/*.whl
3931
4032# Install test dependencies
4133RUN python3 -m pip install -e tests/vllm_test_utils
@@ -46,8 +38,7 @@ RUN python3 -m pip install --no-cache-dir \
4638 pytest-cov \
4739 tblib
4840
49- # Preventing shadowing
50- # WORKDIR /workspace
51- # RUN mv /workspace/vllm /workspace/vllm_backup
41+ # Set environment variable to use site-packages
42+ ENV FORCE_USE_SITE_PACKAGES=1
5243
5344CMD ["/bin/bash"]
0 commit comments