[XPU] upgrade torch 2.8 on for XPU (#22300)

Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Kunshang Ji
2025-08-09 08:03:45 +08:00
committed by GitHub
parent 311d875614
commit 81c57f60a2
4 changed files with 15 additions and 24 deletions

View File

@@ -4,8 +4,6 @@
import logging
from typing import Any, Callable
import torch
import vllm.envs as envs
logger = logging.getLogger(__name__)
@@ -68,13 +66,6 @@ def load_general_plugins():
return
plugins_loaded = True
# some platform-specific configurations
from vllm.platforms import current_platform
if current_platform.is_xpu():
# see https://github.com/pytorch/pytorch/blob/43c5f59/torch/_dynamo/config.py#L158
torch._dynamo.config.disable = True
plugins = load_plugins_by_group(group=DEFAULT_PLUGINS_GROUP)
# general plugins, we only need to execute the loaded functions
for func in plugins.values():