Skip to content

Commit 0138a98

Browse files
committed
fix rebase
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
1 parent 13df801 commit 0138a98

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.buildkite/run-cpu-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ docker exec cpu-test bash -c "cd tests;
2121
pip install pytest Pillow protobuf
2222
bash ../.buildkite/download-images.sh
2323
cd ../
24-
pytest -v -s tests/models --ignore=tests/models/test_llava.py --ignore=tests/models/test_embedding.py"
24+
pytest -v -s tests/models --ignore=tests/models/test_llava.py --ignore=tests/models/test_embedding.py --ignore=tests/models/test_registry.py"

Dockerfile.cpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This vLLM Dockerfile is used to construct image that can build and run vLLM on x86 CPU platform.
22

3-
FROM ubuntu:22.04
3+
FROM ubuntu:22.04 AS cpu-test-1
44

55
RUN apt-get update -y \
66
&& apt-get install -y git wget vim numactl gcc-12 g++-12 python3 python3-pip \
@@ -9,6 +9,8 @@ RUN apt-get update -y \
99
RUN pip install --upgrade pip \
1010
&& pip install wheel packaging ninja setuptools>=49.4.0 numpy
1111

12+
FROM cpu-test-1 AS build
13+
1214
COPY ./ /workspace/vllm
1315

1416
WORKDIR /workspace/vllm

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ class HfRunner:
146146

147147
def wrap_device(self, input: any):
148148
if not is_cpu():
149-
return input.cuda()
149+
return input.to("cuda")
150150
else:
151-
return input.cpu()
151+
return input.to("cpu")
152152

153153
def __init__(
154154
self,

0 commit comments

Comments
 (0)