[Deprecation][1/2] Remove items deprecated in v0.18 (#36470)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
|
||||
import inspect
|
||||
import logging
|
||||
|
||||
from vllm.config import VllmConfig
|
||||
@@ -67,16 +66,6 @@ def get_io_processor(
|
||||
f"Available plugins: {list(loadable_plugins.keys())}"
|
||||
)
|
||||
|
||||
activated_plugin_cls = loadable_plugins[model_plugin]
|
||||
activated_plugin_cls = resolve_obj_by_qualname(loadable_plugins[model_plugin])
|
||||
|
||||
activated_plugin_typ = resolve_obj_by_qualname(activated_plugin_cls)
|
||||
|
||||
# for backward compatibility, the plugin does not have a renderer argument
|
||||
if "renderer" not in inspect.signature(activated_plugin_typ.__init__).parameters:
|
||||
logger.warning(
|
||||
"The renderer argument will be required in v0.18, "
|
||||
"please update your IOProcessor plugin: %s",
|
||||
activated_plugin_cls,
|
||||
)
|
||||
return activated_plugin_typ(vllm_config)
|
||||
return activated_plugin_typ(vllm_config, renderer)
|
||||
return activated_plugin_cls(vllm_config, renderer)
|
||||
|
||||
Reference in New Issue
Block a user