Revert "[XPU][CPU] Enable the native path of DeepSeek" (#4367)

This commit is contained in:
Lianmin Zheng
2025-03-12 23:45:52 -07:00
committed by GitHub
parent 71046fcd71
commit 45de89719c
16 changed files with 221 additions and 499 deletions
@@ -14,7 +14,7 @@ from sglang.srt.layers.quantization.fp8_utils import (
cutlass_fp8_supported,
normalize_e4m3fn_to_e4m3fnuz,
)
from sglang.srt.utils import get_device_capability, is_hip
from sglang.srt.utils import is_hip
_is_hip = is_hip()
@@ -35,20 +35,7 @@ class W8A8Fp8Config(QuantizationConfig):
@classmethod
def get_min_capability(cls) -> int:
if hasattr(torch, "cuda") and torch.cuda.is_available():
return 89
# Vendors can update
return sys.maxsize
@classmethod
def get_availability(cls) -> bool:
major, minor = get_device_capability()
if hasattr(torch, "cuda") and torch.cuda.is_available():
return major * 10 + minor > 89
# Vendors can update
return False
return 89
@classmethod
def get_name(self) -> str: