Revert "bugfix: prioritize init_npu_backend to fix various initialization bugs" (#19343)

This commit is contained in:
Even Zhou
2026-02-25 23:04:30 +08:00
committed by GitHub
parent c7c4a1cbbd
commit 2fb239450e
2 changed files with 6 additions and 6 deletions

View File

@@ -194,6 +194,11 @@ _is_npu = is_npu()
_is_cpu_amx_available = cpu_has_amx_support()
_is_cpu_arm64 = is_host_cpu_arm64()
if _is_npu:
from sglang.srt.hardware_backend.npu.utils import init_npu_backend
init_npu_backend()
MLA_ATTENTION_BACKENDS = [
"aiter",
"flashinfer",

View File

@@ -891,12 +891,7 @@ class ServerArgs:
def _handle_npu_backends(self):
if self.device == "npu":
from sglang.srt.hardware_backend.npu.utils import (
init_npu_backend,
set_default_server_args,
)
init_npu_backend()
from sglang.srt.hardware_backend.npu.utils import set_default_server_args
set_default_server_args(self)