[Log] Update deepgemm log (#45857)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -328,7 +328,10 @@ class Config:
|
|||||||
if self.needs_deep_ep_v2() and not has_deep_ep_v2():
|
if self.needs_deep_ep_v2() and not has_deep_ep_v2():
|
||||||
return False, "Needs DeepEP v2, but DeepEP v2 not available."
|
return False, "Needs DeepEP v2, but DeepEP v2 not available."
|
||||||
if self.needs_deep_gemm() and not has_deep_gemm():
|
if self.needs_deep_gemm() and not has_deep_gemm():
|
||||||
return False, "Needs DeepGEMM, but DeepGEMM not available."
|
return (
|
||||||
|
False,
|
||||||
|
"Needs DeepGEMM, but the current vLLM environment does not provide it.",
|
||||||
|
)
|
||||||
if self.needs_aiter() and not has_aiter(): # noqa: SIM103
|
if self.needs_aiter() and not has_aiter(): # noqa: SIM103
|
||||||
return False, "Needs Aiter, but Aiter not available."
|
return False, "Needs Aiter, but Aiter not available."
|
||||||
if self.needs_mori() and not has_mori(): # noqa: SIM103
|
if self.needs_mori() and not has_mori(): # noqa: SIM103
|
||||||
|
|||||||
@@ -442,7 +442,8 @@ class SparseAttnIndexer(CustomOp):
|
|||||||
self.use_fp4_cache = use_fp4_cache
|
self.use_fp4_cache = use_fp4_cache
|
||||||
if current_platform.is_cuda() and not has_deep_gemm():
|
if current_platform.is_cuda() and not has_deep_gemm():
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"Sparse Attention Indexer CUDA op requires DeepGEMM to be installed."
|
"Sparse Attention Indexer CUDA op requires DeepGEMM support in "
|
||||||
|
"the current vLLM environment."
|
||||||
)
|
)
|
||||||
|
|
||||||
def forward_native(
|
def forward_native(
|
||||||
|
|||||||
@@ -120,8 +120,9 @@ def is_deep_gemm_e8m0_used() -> bool:
|
|||||||
def _missing(*_: Any, **__: Any) -> NoReturn:
|
def _missing(*_: Any, **__: Any) -> NoReturn:
|
||||||
"""Placeholder for unavailable DeepGEMM backend."""
|
"""Placeholder for unavailable DeepGEMM backend."""
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"DeepGEMM backend is not available or outdated. Please install or "
|
"DeepGEMM backend is unavailable in the current vLLM environment, "
|
||||||
"update the `deep_gemm` to a newer version to enable FP8 kernels."
|
"or the available DeepGEMM package does not provide the required APIs "
|
||||||
|
"for these kernels."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -156,7 +157,7 @@ def _import_deep_gemm():
|
|||||||
logger.debug_once("Imported deep_gemm module from site-packages")
|
logger.debug_once("Imported deep_gemm module from site-packages")
|
||||||
return module
|
return module
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.debug_once(
|
logger.info_once(
|
||||||
"deep_gemm not found in site-packages, "
|
"deep_gemm not found in site-packages, "
|
||||||
"trying vendored vllm.third_party.deep_gemm"
|
"trying vendored vllm.third_party.deep_gemm"
|
||||||
)
|
)
|
||||||
@@ -167,7 +168,7 @@ def _import_deep_gemm():
|
|||||||
logger.debug_once("Imported deep_gemm module from vllm.third_party.deep_gemm")
|
logger.debug_once("Imported deep_gemm module from vllm.third_party.deep_gemm")
|
||||||
return module
|
return module
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.debug_once("Vendored deep_gemm not found either")
|
logger.info_once("Vendored deep_gemm not found either")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# The vendored module may raise RuntimeError during _C.init()
|
# The vendored module may raise RuntimeError during _C.init()
|
||||||
# if JIT include files are missing (e.g. incomplete wheel).
|
# if JIT include files are missing (e.g. incomplete wheel).
|
||||||
|
|||||||
Reference in New Issue
Block a user