Skip to content

Commit 35657bc

Browse files
scydasbigPYJ1151
andauthored
[CPU]Update CPU PyTorch to 2.9.0 (vllm-project#29589)
Signed-off-by: scyda <[email protected]> Co-authored-by: Li, Jiang <[email protected]>
1 parent be493e0 commit 35657bc

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

docker/Dockerfile.cpu

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ FROM base AS vllm-test-deps
119119

120120
WORKDIR /workspace/vllm
121121

122-
# TODO: Update to 2.9.0 when there is a new build for intel_extension_for_pytorch for that version
123122
RUN --mount=type=bind,src=requirements/test.in,target=requirements/test.in \
124123
cp requirements/test.in requirements/cpu-test.in && \
125124
sed -i '/mamba_ssm/d' requirements/cpu-test.in && \
@@ -132,9 +131,6 @@ RUN --mount=type=bind,src=requirements/test.in,target=requirements/test.in \
132131
esac; \
133132
}; \
134133
remove_packages_not_supported_on_aarch64 && \
135-
sed -i 's/^torch==.*/torch==2.8.0/g' requirements/cpu-test.in && \
136-
sed -i 's/torchaudio.*/torchaudio/g' requirements/cpu-test.in && \
137-
sed -i 's/torchvision.*/torchvision/g' requirements/cpu-test.in && \
138134
uv pip compile requirements/cpu-test.in -o requirements/cpu-test.txt --index-strategy unsafe-best-match --torch-backend cpu
139135

140136
RUN --mount=type=cache,target=/root/.cache/uv \

requirements/cpu-build.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ packaging>=24.2
44
setuptools>=77.0.3,<81.0.0
55
setuptools-scm>=8
66
--extra-index-url https://download.pytorch.org/whl/cpu
7-
torch==2.8.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
7+
torch==2.9.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
88
torch==2.9.0; platform_system == "Darwin"
9-
torch==2.8.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
9+
torch==2.9.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
1010
scons; platform_machine == "aarch64" # needed to build Arm Compute Library (ACL)
1111
wheel
1212
jinja2>=3.1.6

requirements/cpu.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ numba == 0.61.2; platform_machine != "s390x" # Required for N-gram speculative d
77
packaging>=24.2
88
setuptools>=77.0.3,<81.0.0
99
--extra-index-url https://download.pytorch.org/whl/cpu
10-
torch==2.8.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
10+
torch==2.9.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
1111
torch==2.9.0; platform_system == "Darwin"
12-
torch==2.8.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
12+
torch==2.9.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
1313

1414
# required for the image processor of minicpm-o-2_6, this must be updated alongside torch
1515
torchaudio; platform_machine != "ppc64le" and platform_machine != "s390x"
16-
torchaudio==2.8.0; platform_machine == "ppc64le"
16+
torchaudio==2.9.0; platform_machine == "ppc64le"
1717

1818
# required for the image processor of phi3v, this must be updated alongside torch
1919
torchvision; platform_machine != "ppc64le" and platform_machine != "s390x"
20-
torchvision==0.23.0; platform_machine == "ppc64le"
20+
torchvision==0.24.0; platform_machine == "ppc64le"
2121
datasets # for benchmark scripts
2222

2323
# Intel Extension for PyTorch, only for x86_64 CPUs

0 commit comments

Comments
 (0)