mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-25 03:35:02 +08:00
[Log] Add Warning for Deprecation of DeepGEMM old version (#22194)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
8a0ffd6285
commit
3157aebb63
@ -14,6 +14,7 @@ from typing import Any, Callable, NoReturn
|
||||
import torch
|
||||
|
||||
import vllm.envs as envs
|
||||
from vllm.logger import logger
|
||||
from vllm.platforms import current_platform
|
||||
from vllm.utils import cdiv, has_deep_gemm
|
||||
|
||||
@ -57,6 +58,14 @@ def _resolve_symbol(module, new: str, old: str) -> Callable[..., Any] | None:
|
||||
if hasattr(module, new):
|
||||
return getattr(module, new)
|
||||
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 None
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user