Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
b34e8775
Unverified
Commit
b34e8775
authored
Nov 28, 2025
by
Cyrus Leung
Committed by
GitHub
Nov 27, 2025
Browse files
Revert "[CPU]Update CPU PyTorch to 2.9.0 (#29589)" (#29647)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
f4b76056
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
docker/Dockerfile.cpu
docker/Dockerfile.cpu
+4
-0
requirements/cpu-build.txt
requirements/cpu-build.txt
+2
-2
requirements/cpu.txt
requirements/cpu.txt
+4
-4
vllm/model_executor/models/qwen3_vl.py
vllm/model_executor/models/qwen3_vl.py
+2
-2
No files found.
docker/Dockerfile.cpu
View file @
b34e8775
...
@@ -119,6 +119,7 @@ FROM base AS vllm-test-deps
...
@@ -119,6 +119,7 @@ FROM base AS vllm-test-deps
WORKDIR /workspace/vllm
WORKDIR /workspace/vllm
# TODO: Update to 2.9.0 when there is a new build for intel_extension_for_pytorch for that version
RUN --mount=type=bind,src=requirements/test.in,target=requirements/test.in \
RUN --mount=type=bind,src=requirements/test.in,target=requirements/test.in \
cp requirements/test.in requirements/cpu-test.in && \
cp requirements/test.in requirements/cpu-test.in && \
sed -i '/mamba_ssm/d' requirements/cpu-test.in && \
sed -i '/mamba_ssm/d' requirements/cpu-test.in && \
...
@@ -131,6 +132,9 @@ RUN --mount=type=bind,src=requirements/test.in,target=requirements/test.in \
...
@@ -131,6 +132,9 @@ RUN --mount=type=bind,src=requirements/test.in,target=requirements/test.in \
esac; \
esac; \
}; \
}; \
remove_packages_not_supported_on_aarch64 && \
remove_packages_not_supported_on_aarch64 && \
sed -i 's/^torch==.*/torch==2.8.0/g' requirements/cpu-test.in && \
sed -i 's/torchaudio.*/torchaudio/g' requirements/cpu-test.in && \
sed -i 's/torchvision.*/torchvision/g' requirements/cpu-test.in && \
uv pip compile requirements/cpu-test.in -o requirements/cpu-test.txt --index-strategy unsafe-best-match --torch-backend cpu
uv pip compile requirements/cpu-test.in -o requirements/cpu-test.txt --index-strategy unsafe-best-match --torch-backend cpu
RUN --mount=type=cache,target=/root/.cache/uv \
RUN --mount=type=cache,target=/root/.cache/uv \
...
...
requirements/cpu-build.txt
View file @
b34e8775
...
@@ -4,9 +4,9 @@ packaging>=24.2
...
@@ -4,9 +4,9 @@ packaging>=24.2
setuptools>=77.0.3,<81.0.0
setuptools>=77.0.3,<81.0.0
setuptools-scm>=8
setuptools-scm>=8
--extra-index-url https://download.pytorch.org/whl/cpu
--extra-index-url https://download.pytorch.org/whl/cpu
torch==2.
9
.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
torch==2.
8
.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
torch==2.9.0; platform_system == "Darwin"
torch==2.9.0; platform_system == "Darwin"
torch==2.
9
.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
torch==2.
8
.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
scons; platform_machine == "aarch64" # needed to build Arm Compute Library (ACL)
scons; platform_machine == "aarch64" # needed to build Arm Compute Library (ACL)
wheel
wheel
jinja2>=3.1.6
jinja2>=3.1.6
...
...
requirements/cpu.txt
View file @
b34e8775
...
@@ -7,17 +7,17 @@ numba == 0.61.2; platform_machine != "s390x" # Required for N-gram speculative d
...
@@ -7,17 +7,17 @@ numba == 0.61.2; platform_machine != "s390x" # Required for N-gram speculative d
packaging>=24.2
packaging>=24.2
setuptools>=77.0.3,<81.0.0
setuptools>=77.0.3,<81.0.0
--extra-index-url https://download.pytorch.org/whl/cpu
--extra-index-url https://download.pytorch.org/whl/cpu
torch==2.
9
.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
torch==2.
8
.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
torch==2.9.0; platform_system == "Darwin"
torch==2.9.0; platform_system == "Darwin"
torch==2.
9
.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
torch==2.
8
.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
# required for the image processor of minicpm-o-2_6, this must be updated alongside torch
# required for the image processor of minicpm-o-2_6, this must be updated alongside torch
torchaudio; platform_machine != "ppc64le" and platform_machine != "s390x"
torchaudio; platform_machine != "ppc64le" and platform_machine != "s390x"
torchaudio==2.
9
.0; platform_machine == "ppc64le"
torchaudio==2.
8
.0; platform_machine == "ppc64le"
# required for the image processor of phi3v, this must be updated alongside torch
# required for the image processor of phi3v, this must be updated alongside torch
torchvision; platform_machine != "ppc64le" and platform_machine != "s390x"
torchvision; platform_machine != "ppc64le" and platform_machine != "s390x"
torchvision==0.2
4
.0; platform_machine == "ppc64le"
torchvision==0.2
3
.0; platform_machine == "ppc64le"
datasets # for benchmark scripts
datasets # for benchmark scripts
# Intel Extension for PyTorch, only for x86_64 CPUs
# Intel Extension for PyTorch, only for x86_64 CPUs
...
...
vllm/model_executor/models/qwen3_vl.py
View file @
b34e8775
...
@@ -1123,14 +1123,14 @@ class Qwen3LLMModel(Qwen3Model):
...
@@ -1123,14 +1123,14 @@ class Qwen3LLMModel(Qwen3Model):
assert
intermediate_tensors
is
not
None
assert
intermediate_tensors
is
not
None
hidden_states
=
intermediate_tensors
[
"hidden_states"
]
hidden_states
=
intermediate_tensors
[
"hidden_states"
]
residual
=
intermediate_tensors
[
"residual"
]
residual
=
intermediate_tensors
[
"residual"
]
aux_hidden_states
=
[]
aux_hidden_states
=
[]
for
layer_idx
,
layer
in
islice
(
for
layer_idx
,
layer
in
islice
(
enumerate
(
self
.
layers
),
self
.
start_layer
,
self
.
end_layer
enumerate
(
self
.
layers
),
self
.
start_layer
,
self
.
end_layer
):
):
if
layer_idx
in
self
.
aux_hidden_state_layers
:
if
layer_idx
in
self
.
aux_hidden_state_layers
:
aux_hidden_states
.
append
(
hidden_states
+
residual
)
aux_hidden_states
.
append
(
hidden_states
+
residual
)
hidden_states
,
residual
=
layer
(
hidden_states
,
residual
=
layer
(
positions
,
positions
,
hidden_states
,
hidden_states
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment