Skip to content

Commit f9e7148

Browse files
authored
[Benchmark] Finish documented v0.11.0 deprecation of --endpoint-type (#26007)
Signed-off-by: Nathan Scott <[email protected]>
1 parent 2518230 commit f9e7148

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

vllm/benchmarks/serve.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@
5252
and (shutil.which("gnuplot") is not None))
5353

5454

55-
# TODO: Remove this in v0.11.0
56-
class DeprecatedEndpointTypeAction(argparse.Action):
57-
"""Argparse action for the deprecated --endpoint-type flag.
58-
"""
59-
60-
def __call__(self, _, namespace, values, option_string=None):
61-
warnings.warn(
62-
"'--endpoint-type' is deprecated and will be removed in v0.11.0. "
63-
"Please use '--backend' instead or remove this argument if you "
64-
"have already set it.",
65-
stacklevel=1,
66-
)
67-
setattr(namespace, self.dest, values)
68-
69-
7055
class TaskType(Enum):
7156
GENERATION = "generation"
7257
EMBEDDING = "embedding"
@@ -883,15 +868,6 @@ def add_cli_args(parser: argparse.ArgumentParser):
883868
choices=list(ASYNC_REQUEST_FUNCS.keys()),
884869
help="The type of backend or endpoint to use for the benchmark."
885870
)
886-
parser.add_argument(
887-
"--endpoint-type",
888-
type=str,
889-
default=None,
890-
choices=list(ASYNC_REQUEST_FUNCS.keys()),
891-
action=DeprecatedEndpointTypeAction,
892-
help="'--endpoint-type' is deprecated and will be removed in v0.11.0. "
893-
"Please use '--backend' instead.",
894-
)
895871
parser.add_argument(
896872
"--base-url",
897873
type=str,

0 commit comments

Comments
 (0)