Skip to content

Commit 88884c8

Browse files
qyh111mag1c-h
authored andcommitted
add patch in dokerfile-npu
1 parent f2d4769 commit 88884c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker/Dockerfile-NPU

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ RUN export PLATFORM="ascend" && \
1414
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/`uname -i`-linux/devlib && \
1515
pip install -v -e /workspace/unified-cache-management --no-build-isolation
1616

17+
# Apply patch for vLLM
18+
RUN cd $(pip show vllm | grep Location | awk '{print $2}') \
19+
&& git apply /workspace/unified-cache-management/ucm/integration/vllm/patch/0.9.2/vllm-adapt.patch
20+
21+
# Apply patch for vLLM-ascend
22+
RUN cd $(pip show vllm-ascend | grep Location | awk '{print $2}') \
23+
&& git apply /workspace/unified-cache-management/ucm/integration/vllm/patch/0.9.2/vllm-ascend-adapt.patch
24+
1725
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)