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
2111997f
Unverified
Commit
2111997f
authored
Apr 07, 2026
by
Andrey Talman
Committed by
GitHub
Apr 07, 2026
Browse files
[release 2.11] Update to torch 2.11 (#34644)
parent
5af684c3
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
4 deletions
+13
-4
requirements/xpu.txt
requirements/xpu.txt
+1
-1
tests/kernels/helion/test_pattern_matching.py
tests/kernels/helion/test_pattern_matching.py
+2
-0
tests/standalone_tests/python_only_compile.sh
tests/standalone_tests/python_only_compile.sh
+0
-1
vllm/distributed/parallel_state.py
vllm/distributed/parallel_state.py
+1
-0
vllm/model_executor/layers/fused_moe/runner/moe_runner_base.py
...model_executor/layers/fused_moe/runner/moe_runner_base.py
+8
-1
vllm/utils/torch_utils.py
vllm/utils/torch_utils.py
+1
-1
No files found.
requirements/xpu.txt
View file @
2111997f
...
@@ -11,7 +11,7 @@ jinja2>=3.1.6
...
@@ -11,7 +11,7 @@ jinja2>=3.1.6
datasets # for benchmark scripts
datasets # for benchmark scripts
numba == 0.61.2 # Required for N-gram speculative decoding
numba == 0.61.2 # Required for N-gram speculative decoding
--extra-index-url=https://download.pytorch.org/whl/xpu
--extra-index-url=https://download.pytorch.org/whl/xpu
torch==2.1
0
.0+xpu
torch==2.1
1
.0+xpu
torchaudio
torchaudio
torchvision
torchvision
...
...
tests/kernels/helion/test_pattern_matching.py
View file @
2111997f
...
@@ -67,6 +67,7 @@ class TestMakeFxHop:
...
@@ -67,6 +67,7 @@ class TestMakeFxHop:
def
setup_method
(
self
):
def
setup_method
(
self
):
helion_kernel_side_table
.
reset_table
()
helion_kernel_side_table
.
reset_table
()
@
pytest
.
mark
.
skip
(
reason
=
"SymInt proxy tracking issue with PyTorch 2.11+"
)
def
test_make_fx_symbolic
(
self
):
def
test_make_fx_symbolic
(
self
):
def
raw_add_scale
(
def
raw_add_scale
(
x
:
torch
.
Tensor
,
y
:
torch
.
Tensor
,
scale
:
float
x
:
torch
.
Tensor
,
y
:
torch
.
Tensor
,
scale
:
float
...
@@ -128,6 +129,7 @@ class TestMakeFxHop:
...
@@ -128,6 +129,7 @@ class TestMakeFxHop:
for
out_s
,
in_s
in
zip
(
val
.
shape
,
input_shape
):
for
out_s
,
in_s
in
zip
(
val
.
shape
,
input_shape
):
assert
out_s
==
in_s
assert
out_s
==
in_s
@
pytest
.
mark
.
skip
(
reason
=
"SymInt proxy tracking issue with PyTorch 2.11+"
)
def
test_pattern_matcher_replaces_with_helion_hop
(
self
):
def
test_pattern_matcher_replaces_with_helion_hop
(
self
):
def
raw_silu_mul
(
x
:
torch
.
Tensor
,
y
:
torch
.
Tensor
)
->
torch
.
Tensor
:
def
raw_silu_mul
(
x
:
torch
.
Tensor
,
y
:
torch
.
Tensor
)
->
torch
.
Tensor
:
M
,
N
=
x
.
size
()
M
,
N
=
x
.
size
()
...
...
tests/standalone_tests/python_only_compile.sh
View file @
2111997f
...
@@ -68,7 +68,6 @@ apt autoremove -y
...
@@ -68,7 +68,6 @@ apt autoremove -y
echo
'import os; os.system("touch /tmp/changed.file")'
>>
vllm/__init__.py
echo
'import os; os.system("touch /tmp/changed.file")'
>>
vllm/__init__.py
VLLM_PRECOMPILED_WHEEL_COMMIT
=
$merge_base_commit
VLLM_USE_PRECOMPILED
=
1 pip3
install
-vvv
-e
.
VLLM_PRECOMPILED_WHEEL_COMMIT
=
$merge_base_commit
VLLM_USE_PRECOMPILED
=
1 pip3
install
-vvv
-e
.
# Run the script
# Run the script
python3
-c
'import vllm'
python3
-c
'import vllm'
...
...
vllm/distributed/parallel_state.py
View file @
2111997f
...
@@ -1445,6 +1445,7 @@ def init_distributed_environment(
...
@@ -1445,6 +1445,7 @@ def init_distributed_environment(
# local rank not set, this usually happens in single-node
# local rank not set, this usually happens in single-node
# setting, where we can use rank as local rank
# setting, where we can use rank as local rank
local_rank
=
envs
.
LOCAL_RANK
if
distributed_init_method
==
"env://"
else
rank
local_rank
=
envs
.
LOCAL_RANK
if
distributed_init_method
==
"env://"
else
rank
global
_WORLD
,
_NODE_COUNT
,
_INNER_DP_WORLD
global
_WORLD
,
_NODE_COUNT
,
_INNER_DP_WORLD
if
enable_elastic_ep
:
if
enable_elastic_ep
:
_init_elastic_ep_world
(
config
,
local_rank
,
backend
,
rank
,
world_size
)
_init_elastic_ep_world
(
config
,
local_rank
,
backend
,
rank
,
world_size
)
...
...
vllm/model_executor/layers/fused_moe/runner/moe_runner_base.py
View file @
2111997f
...
@@ -65,8 +65,15 @@ else:
...
@@ -65,8 +65,15 @@ else:
_layer_name_type
=
ModuleName
if
HAS_OPAQUE_TYPE
else
str
_layer_name_type
=
ModuleName
if
HAS_OPAQUE_TYPE
else
str
@
torch
.
compiler
.
assume_constant_result
def
_resolve_layer_name
(
layer_name
:
str
|
ModuleName
)
->
str
:
def
_resolve_layer_name
(
layer_name
:
str
|
ModuleName
)
->
str
:
return
layer_name
.
value
if
isinstance
(
layer_name
,
ModuleName
)
else
layer_name
from
torch._library.fake_class_registry
import
FakeScriptObject
if
isinstance
(
layer_name
,
ModuleName
):
return
layer_name
.
value
elif
isinstance
(
layer_name
,
FakeScriptObject
):
return
layer_name
.
real_obj
.
value
return
layer_name
# Note: _moe_forward and _moe_forward_shared should not contain any
# Note: _moe_forward and _moe_forward_shared should not contain any
...
...
vllm/utils/torch_utils.py
View file @
2111997f
...
@@ -706,7 +706,7 @@ def is_torch_equal(target: str) -> bool:
...
@@ -706,7 +706,7 @@ def is_torch_equal(target: str) -> bool:
return
Version
(
importlib
.
metadata
.
version
(
"torch"
))
==
Version
(
target
)
return
Version
(
importlib
.
metadata
.
version
(
"torch"
))
==
Version
(
target
)
HAS_OPAQUE_TYPE
=
is_torch_equal_or_newer
(
"2.1
1
.0.dev"
)
HAS_OPAQUE_TYPE
=
is_torch_equal_or_newer
(
"2.1
2
.0.dev"
)
if
HAS_OPAQUE_TYPE
:
if
HAS_OPAQUE_TYPE
:
from
torch._opaque_base
import
OpaqueBase
from
torch._opaque_base
import
OpaqueBase
...
...
Prev
1
2
Next
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