mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-11 00:55:01 +08:00
[Misc] Ensure out-of-tree quantization method recognize by cli args (#14328)
Signed-off-by: liuyanyi <wolfsonliu@163.com>
This commit is contained in:
parent
212007b168
commit
a21076ed3a
@ -1478,15 +1478,15 @@ class AsyncEngineArgs(EngineArgs):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def add_cli_args(parser: FlexibleArgumentParser,
|
def add_cli_args(parser: FlexibleArgumentParser,
|
||||||
async_args_only: bool = False) -> FlexibleArgumentParser:
|
async_args_only: bool = False) -> FlexibleArgumentParser:
|
||||||
|
# Initialize plugin to update the parser, for example, The plugin may
|
||||||
|
# adding a new kind of quantization method to --quantization argument or
|
||||||
|
# a new device to --device argument.
|
||||||
|
load_general_plugins()
|
||||||
if not async_args_only:
|
if not async_args_only:
|
||||||
parser = EngineArgs.add_cli_args(parser)
|
parser = EngineArgs.add_cli_args(parser)
|
||||||
parser.add_argument('--disable-log-requests',
|
parser.add_argument('--disable-log-requests',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Disable logging requests.')
|
help='Disable logging requests.')
|
||||||
# Initialize plugin to update the parser, for example, The plugin may
|
|
||||||
# adding a new kind of quantization method to --quantization argument or
|
|
||||||
# a new device to --device argument.
|
|
||||||
load_general_plugins()
|
|
||||||
from vllm.platforms import current_platform
|
from vllm.platforms import current_platform
|
||||||
current_platform.pre_register_and_update(parser)
|
current_platform.pre_register_and_update(parser)
|
||||||
return parser
|
return parser
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user