Unverified Commit 3157aebb authored by Wentao Ye's avatar Wentao Ye Committed by GitHub
Browse files

[Log] Add Warning for Deprecation of DeepGEMM old version (#22194)


Signed-off-by: default avataryewentao256 <zhyanwentao@126.com>
parent 8a0ffd62
...@@ -14,6 +14,7 @@ from typing import Any, Callable, NoReturn ...@@ -14,6 +14,7 @@ from typing import Any, Callable, NoReturn
import torch import torch
import vllm.envs as envs import vllm.envs as envs
from vllm.logger import logger
from vllm.platforms import current_platform from vllm.platforms import current_platform
from vllm.utils import cdiv, has_deep_gemm from vllm.utils import cdiv, has_deep_gemm
...@@ -57,6 +58,14 @@ def _resolve_symbol(module, new: str, old: str) -> Callable[..., Any] | None: ...@@ -57,6 +58,14 @@ def _resolve_symbol(module, new: str, old: str) -> Callable[..., Any] | None:
if hasattr(module, new): if hasattr(module, new):
return getattr(module, new) return getattr(module, new)
if hasattr(module, old): if hasattr(module, old):
# TODO(wentao): deprecate old symbol in the future.
logger.warning_once(
"Found legacy DeepGEMM symbol `%s`. Please upgrade the `deep_gemm` "
"package so that `%s` is available. Support for the legacy symbol "
"will be removed in a future vLLM release.",
old,
new,
)
return getattr(module, old) return getattr(module, old)
return None return None
......
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