Unverified Commit 2111997f authored by Andrey Talman's avatar Andrey Talman Committed by GitHub
Browse files

[release 2.11] Update to torch 2.11 (#34644)

parent 5af684c3
......@@ -11,7 +11,7 @@ jinja2>=3.1.6
datasets # for benchmark scripts
numba == 0.61.2 # Required for N-gram speculative decoding
--extra-index-url=https://download.pytorch.org/whl/xpu
torch==2.10.0+xpu
torch==2.11.0+xpu
torchaudio
torchvision
......
......@@ -67,6 +67,7 @@ class TestMakeFxHop:
def setup_method(self):
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 raw_add_scale(
x: torch.Tensor, y: torch.Tensor, scale: float
......@@ -128,6 +129,7 @@ class TestMakeFxHop:
for out_s, in_s in zip(val.shape, input_shape):
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 raw_silu_mul(x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
M, N = x.size()
......
......@@ -68,7 +68,6 @@ apt autoremove -y
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 .
# Run the script
python3 -c 'import vllm'
......
......@@ -1445,6 +1445,7 @@ def init_distributed_environment(
# local rank not set, this usually happens in single-node
# setting, where we can use rank as local rank
local_rank = envs.LOCAL_RANK if distributed_init_method == "env://" else rank
global _WORLD, _NODE_COUNT, _INNER_DP_WORLD
if enable_elastic_ep:
_init_elastic_ep_world(config, local_rank, backend, rank, world_size)
......
......@@ -65,8 +65,15 @@ else:
_layer_name_type = ModuleName if HAS_OPAQUE_TYPE else str
@torch.compiler.assume_constant_result
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
......
......@@ -706,7 +706,7 @@ def is_torch_equal(target: str) -> bool:
return Version(importlib.metadata.version("torch")) == Version(target)
HAS_OPAQUE_TYPE = is_torch_equal_or_newer("2.11.0.dev")
HAS_OPAQUE_TYPE = is_torch_equal_or_newer("2.12.0.dev")
if HAS_OPAQUE_TYPE:
from torch._opaque_base import OpaqueBase
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment